如题,因为我发现在我的机子上启动时硬盘为 hd0,U盘为 hd1。
而在公司的机子上硬盘为 hd1,U盘为 hd0。
于是
......
fontfile (hd?,0)/boot/grub/fonts
splashimage=(hd?,0)/boot/grub/xpm/xp2008.xpm.gz
......
title Ubuntu 简体中文版
root (hd?,0)
......
这样编写的 menu.lst 不能在不同的机子上正常工作!
如何表示 GRUB 所在磁盘及分区而不用显式地给出 (hd0,0) 这样硬性的表示?
-
- 帖子: 6
- 注册时间: 2008-11-23 0:32
-
- 帖子: 3681
- 注册时间: 2008-05-03 23:42
Re: 如何表示 GRUB 所在磁盘及分区而不用显式地给出 (hd0,0) 这样硬性的表示?
不写就是了
......
fontfile /boot/grub/fonts
splashimage /boot/grub/xpm/xp2008.xpm.gz
......
title Ubuntu 简体中文版
# root (hd?,0) 删除此行
......
不写就隐含地指定 当前menu.lst 所在分区
......
fontfile /boot/grub/fonts
splashimage /boot/grub/xpm/xp2008.xpm.gz
......
title Ubuntu 简体中文版
# root (hd?,0) 删除此行
......
不写就隐含地指定 当前menu.lst 所在分区
-
- 帖子: 6
- 注册时间: 2008-11-23 0:32
Re: 如何表示 GRUB 所在磁盘及分区而不用显式地给出 (hd0,0) 这样硬性的表示?
好,我 try try。
谢谢先!!
谢谢先!!
- HuntXu
- 帖子: 5776
- 注册时间: 2007-09-29 3:09
Re: 如何表示 GRUB 所在磁盘及分区而不用显式地给出 (hd0,0) 这样硬性的表示?
试试find *** --set-root
HUNT Unfortunately No Talent...
-
- 帖子: 6
- 注册时间: 2008-11-23 0:32
Re: 如何表示 GRUB 所在磁盘及分区而不用显式地给出 (hd0,0) 这样硬性的表示?
多谢 billbear 和 HuntXu 两位