精华区 [关闭][返回]

当前位置:网易精华区>>讨论区精华>>电脑技术>>● FreeBSD>>系统管理>>系统设置与技巧>>系统相关之howto>>系统相关的 : IDE + SCSI HD开机的问题

主题:系统相关的 : IDE + SCSI HD开机的问题
发信人: neal()
整理人: hahalee(1999-04-22 02:53:26), 站内信件

        如果你有 IDE + SCSI HD, 把 FreeBSD 灌在 sd0, 开机一定会有困扰, 
        (或是你把 freebsd 装在 "非第一颗" 硬碟上) 
 
        要手动打 hd(1,a)/kernel, 否则会 unable to mount root 而 kernel 
        panic. (这个 hd(N,a)/kernel 的 N 是看你装在第几颗上, 也可打 
sd(N,a) 
        指 SCSI HD, wd(N,a) 指 IDE HD) 
 
        解决的办法.... 
 
        1) 用现成的 binary 
        ftp://ftp.edu.tw/OS/FreeBSD/packages/jdli/collect/2.2-960210-MDEC.tgz
 
        ftp://freebsd.csie.nctu.edu.tw/pub/jdli/collect/2.2-960210-MDEC.tgz
 
           cd /; zcat 2.2-960210-MDEC.tgz | tar --unlink -xvf - 
           disklabel -B sd0   (或是 wd1, 你的 root hd) 
 
        2) 把 SCSI device ID 写死 
           1. Remove the IDE disk from the BIOS config (or 
physically remove 
              the disk if your BIOS runs on an automatic 
transmission) 
           2. Boot your system.  Since the SCSI disk is the only one 
              available, it will boot correctly. 
           3. Look at the man page for 'sd'.  You will want to put a 
line 
              like:   "disk sd1 target 6 lun 0" 
              in your kernel config, and rebuild and install the kernel. 
           4. Turn on IDE disk again. 
 
        3) 自己来 (需要安装 kernel source) 
           1. cd /sys/i386/boot/biosboot。 
           2. 修改 Makefile,找到 BOOT_HD_BIAS,看一下他的说明,然後
把 
              『#CFLAGS+= -DBOOT_HD_BIAS=1』的『#』拿掉。 
           3. 如果你安装在 SCSI 硬碟上,把『1』改成你的 IDE 硬碟个数;如果你 
              安装在 IDE 硬碟上,把『1』改成装 FreeBSD 硬碟以前的 IDE 硬碟 
              个数,例如你装在 IDE3(前面有 IDE1、IDE2),那就改成『2』。 
           4. make depend all install clean 
           5. disklabel -B sd0 (或是 wd1、sd1 等等,你安装 FreeBSD 的硬
碟) 
           6. sync; sync; sync; reboot 试试看 
 
       [PS] 
           如果你用 2.2-CURRENT,你可以不须要编译 boot block,请试试 
           nextboot -b /dev/rsd0 '1:sd(0,a)/kernel' 
 

--
※ 来源:.网易 BBS bbs.netease.com.[FROM: dmx320.resnet.ust.hk]

[关闭][返回]