在使用usb软驱或usb模拟软件安装raid1时,如果是自定义硬盘分区,很有可能在安装时,硬盘被认为是sdb,而usb东东被认为是sda。这种情况下,安装完毕后,在重启系统时,就可能出现grub无法启动Linux的情况。
详细的错误不再细说了,如想启动开系统,可以在启动选择菜单中,按“e”,可以编辑启动命令,此时可以把启动命令“root (hd1,0)”改为“root”或“root (hd0,0)”,回车,按“b”即可成功启动了。
但是,再次启动时,仍然提示无法正常启动,还需要象上面一样重做一遍。这样显然是不行的,万一掉个电什么的,服务器无法自动正常启动。
查了一下intel主板的帮助说这种情况下的解决办法如下:
引用网址:
http://www.intel.com/support/motherboards/server/sb/CS-025446.htm
During SuSE* Linux Enterprise Server installation, if a USB floppy drive is used to load mass storage driver, SuSE* Linux Enterprise Server may not able to boot after basic installation.
The following message appears:
resume device /dev/sdb1 not found (ignoring)
waiting for device /dev/sdb2 to appear..............................not found -- exiting to /bin/sh
$
This is because during installation, the USB floppy device was recognized as sda, and the mass storage was recognized as sdb. After reboot, mass storage is now recognized as sda, but SuSE* Linux still tries to load system files from sdb. To solve this issue, the grub menu list file and the fstab file needs to be modified.
At $ prompt, type the following command to mount file system on mass storage:
mount /dev/sda2 /tmp
(1) Edit the grub menu list file to change all entries with sdb to sda:
/tmp/bin/vi /tmp/boot/grub/menu.lst
(2) Next edit the fstab file to change all entries with sdb to sda and remove lines with floppy:
/tmp/bin/vi /tmp/etc/fstab
(3) Press Crtl-Alt-Del to reboot the server. SuSE* Linux should be able to find root file system and continue installation.
Operating System:
SUSE Linux Enterprise Server 10*
上面写的大体明白怎么回事了,但是与我的实际情况不符,因为sda2已经被我分区占用了。
明白怎么回事,就可以找到另外的解决办法,就是先通过手工改启动命令正常启动系统(本文一开始说的方法),找到/boot/grub/menu.lst文件,用gedit编辑一下,把其中的hd(1,0)全改为hd(0,0),保存,重启服务器,服务器很顺利的完全正常启动了。
全文完。