分页: 1 / 1

Splash image就是搞不好。

发表于 : 2005-08-02 18:09
arvan
大家好。

一直想弄splash image,可是就是不行。以下是硬盘信息

/dev/hdb5 /
tmpfs 128404 0 128404 0% /dev/shm
/dev/hdb1 4546016 39612 4275472 1% /boot
/dev 14421344 1990840 11697944 15% /.dev
none 5120 2812 2308 55% /dev

MENU.LST内容如下:
# menu.lst - See: grub(8), info grub, update-grub(8)
# grub-install(8), grub-floppy(8),
# grub-md5-crypt, /usr/share/doc/grub
# and /usr/share/doc/grub-doc/.
splashimage /boot/grub/images/ubuntu.xpm.gz root=/dev/hdb5

default 0

timeout 10

title Ubuntu, kernel 2.6.10-5-386
root (hd0,0)
kernel /vmlinuz-2.6.10-5-386 root=/dev/hdb5 vga=791 ro quiet
initrd /initrd.img-2.6.10-5-386
savedefault
boot

title Ubuntu, kernel 2.6.10-5-386 (recovery mode)
root (hd0,0)
kernel /vmlinuz-2.6.10-5-386 root=/dev/hdb5 ro single
initrd /initrd.img-2.6.10-5-386
savedefault
boot

title Ubuntu, kernel memtest86+
root (hd0,0)
kernel /memtest86+.bin
savedefault
boot

请问,哪里有问题???ubuntu.xpm.gz已经使用convert生成了。

发表于 : 2005-08-02 18:19
yongyi
/dev/hdb1 4546016 39612 4275472 1% /boot
你的/boot 在 hdb1,PS:你两个硬盘以上吧?你的硬盘信息好乱,不知有没看错了。

代码: 全选

splashimage /boot/grub/images/ubuntu.xpm.gz root=/dev/hdb5 
改成:

代码: 全选

splashimage (hd1,0)/grub/images/ubuntu.xpm.gz

发表于 : 2005-08-02 19:07
hualala
yongyi 写了:
PS:你两个硬盘以上吧?你的硬盘信息好乱,不知有没看错了
这可不一定!
我的机子上只有一个硬盘,可是在debian或者ubuntu上显示的都是hdb
看起来楼主的情况和我差不多

教你一招,包管有效。
在终端里这样做:
sudo grub
然后会出来grub>的提示符
输入root (hd
然后按tab键让grub给你补全,如果grub自动补全成
root (hd0,
那么你的情况和我一样,只有一个硬盘,menu.lst里就应该填hd0
不然可能会出来几个选项让你选
那应该就是hd1了,自己填上,就是root (hd1,


这时再按tab,就会出来你的分区列表,类似这样的 :
grub> root (hd0,
Possible partitions are:
Partition num: 4, Filesystem type is fat, partition type 0xb
Partition num: 5, Filesystem type unknown, partition type 0x82
Partition num: 6, Filesystem type is reiserfs, partition type 0x83

按照你的boot分区的类型如果能能分辨出哪个数字代表的是boot分区最好
在你的menu.lst里分区号按这个数字写就对了
不然就一个个试吧
肯定在列表里面的

发表于 : 2005-08-02 19:27
yongyi
楼上的,我打了?(问号) :P
那可能跟你的硬盘所接接口有关。