红联Linux门户
Linux帮助

HPDL360安装Gentoo遇到棘手问题终于解决

发布时间:2008-02-01 20:47:07来源:红联作者:qtsmy
问题一:gentoo安装到最后一步出错,GRUB无法安装完成

解决办法:使用LIVECD进入命令行模式

引用:
mount -t ext3 /dev/cciss/c0d0p3 /mnt/gentoo

mount -t ext3 /dev/cciss/c0d0p1 /mnt/gentoo/boot

mount -t proc none /mnt/gentoo/proc 这个不挂载的话emerge grub的时候会报错:touch: setting times of `/var/tmp/portage/xf86bigfontproto-1.1.2/.unpacked': Function not implemented

chroot /mnt/gentoo /bin/bash

echo "(hd0) /dev/cciss/c0d0" > /boot/grub/device.map

grub --device-map=/boot/grub/device.map

grub > root (hd0,0)

grub > setup (hd0)
grub > quit
emerge grub


问题二:安装完GRBU重起后出错:

引用:
VFS: Mounted root (ext3 filesystem).

VFS: Cannot open root device "cciss/c0d0p3" or 68:03

Please append a correct "root=" boot option

Kernel panic: VFS: unable to mount root fs on 68:03(原因是RAID卡驱动不认,需要重新编译内核)


解决方法:使用LIVECD,进入命令行模式

引用:
passwd root

ifconfig eth0 192.168.100.1 netmask 255.255.255.0

route add default gw 192.168.1.100.254

/etc/init.d/sshd star


从别的机器ssh登入后:

引用:
mount -t ext3 /dev/cciss/c2d0p3 /mnt/gentoo

mount -t ext3 /dev/cciss/c2d0p1 /mnt/gentoo/boot

mount -t proc none /mnt/gentoo/proc

chroot /mnt/gentoo /bin/bash

cd /usr/src/

scp root@192.168.100.X:/usr/portage/distfiles/linux-2.6.21.tar.bz2 ./

tar jxvf linux-2.6.21.tar.bz2

cd linux-2.6.21
scp -P 12598 root@192.168.1.X:/usr/src/linux-2.6.21-gentoo-r4/.config ./#自选编译参数也行

make menuconfig 根据lspci列出的硬件芯片用/查找相应驱动并添加到内核中

Device Drivers -> Block devices -> Compaq SMART2 support

Compaq Smart Array 5xxx support

make menuconfig

make

make modules_install

cp arch/i386/boot/bzImage /boot/gentoo

exit

vi /mnt/gentoo/boot/grub/grub.conf 修改grub.conf文件为:

timeout 4

default 0

fallback 1

title= gentoo-2.6.21

root (hd0,0)

kernel /gentoo root=/dev/cciss/c2d0p3

exit

umount /mnt/gentoo/boot /mnt/gentoo/proc /mnt/gentoo


问题三:在升级同步portage最后一个包的时候出错/usr/lib/portage/bin/ebuild.sh: No such file or directory 导致大部分的命令不能使用,没有办法继续,重装试了好几次才发现是/etc/make.conf中的CPU参数有问题,因为服务器不能使用新参数nocona

即:CFLAGS="-march=nocona -O2 -pipe" 改为CFLAGS="-march=pentium4 -O2 -pipe"就OK,好象nocona是支持Core 2 Duo/Solo双核的CPU,之前HPDL320都用nocona没问题,这次忘了改了!弄了一整天才搞定。
文章评论

共有 0 条评论