昨天 freebsd8.0 releases 正式发布,新版本增加了 8.0-RELEASE-i386-memstick.img 文件,在8.0-RC 的版本中就有了。整个安装过程中遇到了一些问题,与大家一起分享。

1、IBM ThinkPad X32 安装FreeBSD的问题

IBM ThinkPad X32 笔记本确实好用,但也有变态的地方。比如 BIOS 的设置基本没用,要通过操作系统来修改属性。这几天一直在 IBM ThinkPad X32 笔记本上装 FreeBSD 但是一直失败,安装程序在预装时,检测到硬盘就死机:

md0:preloaded image </boot> 4423680 bytes at 0xc0d7f830
ad0:152627MB <HTS541616J9AT00> at ata0-master UDM100

基本就在死在上面的位置,解决方法:

在Windows XP下安装ThinkPad Configuration
ThinkVantage->ThinkPad Configuration->Device Bay 设置为Disable

是扩展坞的问题,关闭扩展坞居然在BIOS里找不到设置的项目?所谓人无完人,机无完机!

2、Writing FreeBSD memstick.img to a USB drive in Windows

去下载dd for windows

E:\>dd --list
rawwrite dd for windows version 0.5.
Written by John Newbigin <jn@it.swin.edu.au>
This program is covered by the GPL.  See copying.txt for details
Win32 Available Volume Information
\\.\Volume{ab8f5a50-d757-11de-8c1b-806d6172696f}\
  link to \\?\Device\HarddiskVolume1
  fixed media
  Mounted on \\.\c:

\\.\Volume{ab8f5a51-d757-11de-8c1b-806d6172696f}\
  link to \\?\Device\HarddiskVolume3
  fixed media
  Mounted on \\.\d:

\\.\Volume{ab8f5a52-d757-11de-8c1b-806d6172696f}\
  link to \\?\Device\HarddiskVolume4
  fixed media
  Mounted on \\.\e:

\\.\Volume{64acdc22-d831-11de-8c23-08002700405e}\
  link to \\?\Device\Harddisk1\DP(1)0-0+10
  removeable media
  Mounted on \\.\f:


NT Block Device Objects
\\?\Device\Harddisk0\Partition0
  link to \\?\Device\Harddisk0\DR0
  Fixed hard disk media. Block size = 512
  size is 40007761920 bytes
\\?\Device\Harddisk0\Partition1
  link to \\?\Device\HarddiskVolume1
\\?\Device\Harddisk0\Partition2
  link to \\?\Device\HarddiskVolume2
  Fixed hard disk media. Block size = 512
  size is 10001940480 bytes
\\?\Device\Harddisk0\Partition3
  link to \\?\Device\HarddiskVolume3
\\?\Device\Harddisk0\Partition4
  link to \\?\Device\HarddiskVolume4
\\?\Device\Harddisk1\Partition0
  link to \\?\Device\Harddisk1\DR15
  Removable media other than floppy. Block size = 512
  size is 1999633920 bytes
\\?\Device\Harddisk1\Partition1
  link to \\?\Device\Harddisk1\DP(1)0-0+10
  Removable media other than floppy. Block size = 512
  size is 1999601664 bytes

Virtual input devices
 /dev/zero   (null data)
 /dev/random (pseudo-random data)
 -           (standard input)

Virtual output devices
 -           (standard output)

E:\>dd if=8.0-RELEASE-i386-memstick.img of=\\?\Device\Harddisk1\Partition0 bs=10240 --progress
rawwrite dd for windows version 0.5.
Written by John Newbigin <jn@it.swin.edu.au>
This program is covered by the GPL.  See copying.txt for details
923,207,680
90157+0 records in
90157+0 records out

E:\>dd --help
rawwrite dd for windows version 0.5.
Written by John Newbigin <jn@it.swin.edu.au>
This program is covered by the GPL.  See copying.txt for details
dd [bs=SIZE] [count=BLOCKS] [if=FILE] [of=FILE] [seek=BLOCKS] [skip=BLOCKS] [--s
ize] [--list] [--progress]
SIZE and BLOCKS may have one of the following suffix:
 k = 1024
 M = 1048576
 G = 1073741824
default block size (bs) is 512 bytes
skip specifies the starting offset of the input file (if)
seek specifies the starting offset of the output file (of)

E:\>

Linux直接:

wget ftp://ftp.freebsdchina.org/pub/FreeBSD/ISO-IMAGES-i386/8.0/8.0-RC1-i386-memstick.img
dd if=8.0-RC1-i386-memstick.img of=/dev/da0 bs=10240 conv=sync

dd if=8.0-RELEASE-i386-memstick.img of=\\?\Device\Harddisk1\Partition0 bs=10240 –progress
要根据你的实际情况更改,if=8.0-RELEASE-i386-memstick.img of=\\?\Device\Harddisk1\Partition0 bs=10240 别反了,反了就是把U盘的内容保存为镜像文件。

3、用U盘启动安装FreeBSD8.0

主板要支持USB-HDD启动,不然就没戏。启动过程比较长,2~3分钟的样子,然后就进入sysinstall,不多说,基本和FreeBSD7.0安装差不多,就是 Media 选择安装媒介时选USB,U盘启动安装FreeBSD8.0可能还不成熟,我第二次时居然没有找到USB设备。

4、选择了 Standand 从FreeBSD启动,无法 MBR 启动 WinXP怎么办

当时情况特殊,因为不小心在BIOS里 LOAD DEFAULT SETUP 打开了扩展坞,真变态,BIOS里禁用不了却可以打开。所以,WInXP 和 FreeBSD 都进不去了。只好用 Win98启动盘启动进入纯DOS(注意是纯DOS),用A:\>fdisk /mbr,然后重启,移除FreeBSD Boot Manager,如果提示找不到操作系统,还是用A:\>fdisk 进去设置启动分区。具体查询DOS的fdisk命令。

可以进WinXP了,关闭扩展坞,然后用U盘启动进入sysinstall,Configuration -> FDisk 选择你想boot的分区,按’S’激活,然后按’W’存盘,sysinstall会问你安装哪个bootmanager,选择Bootmgr 就可以了,然后Exit Installation,Reboot,就可以了。

5、如何恢复U盘

用 UltraISO 9.0 以上的版本,硬盘写入或者格式化就可以恢复U盘。不多说了,简单的问题。

6、FreeBSD8.0 比 7 要大很多,要注意安装空间的配置

好了,基本的安装就结束了,明天再试试KDE怎么样,有什么变化!

4 Comments

  • netstree

    “基本就在死在上面的位置,解决方法:
    在Windows XP下安装ThinkPad Configuration
    ThinkVantage->ThinkPad Configuration->Device Bay 设置为Disable”

    X31安装启动freebsd总是检测到硬盘就死机,原来如此!!
    解决了我一个大问题。
    谢谢谢谢,再谢谢!!

  • Joseph

    请问下 memstick 这个版本中的 memstick 是什么意思?

  • 王炜

    用于U盘或硬盘安装的img文件

  • sun

    朋友我是这样做的:dd if=H:\Freebsd\8.0amd64memstick.img of=\\?\Device\Harddisk9\Partition1 bs=10240 –progress
    当从U盘启动的时候有的U盘显示乱码,有的U盘直接就重启了,能指点一二吗?

Leave a Reply