grub2 基础教程(续)
-
- 帖子: 42
- 注册时间: 2006-04-18 9:18
Re: grub2 基础教程(续)
Hi, smallapple
最新正式版及其使用手册都可以在这里找到:http://grub.enbug.org/FrontPage
最新正式版及其使用手册都可以在这里找到:http://grub.enbug.org/FrontPage
- smallapple
- 论坛版主
- 帖子: 7868
- 注册时间: 2009-03-28 15:12
Re: grub2 基础教程(续)
3Q!fatality 写了:Hi, smallapple
最新正式版及其使用手册都可以在这里找到:http://grub.enbug.org/FrontPage
-
- 帖子: 42
- 注册时间: 2006-04-18 9:18
Re: grub2配置文件详解及部分命令用法介绍
按达人bean的提法,这点需要修正:smallapple 写了:
3. grub2 引导软盘img镜像启动
比如要加载(hd1,1)根目录下的 a.img 镜像,先把 memdisk 从 memdisk.gz 中解压出来,用法是:
linux (hd1,1)/memdisk #镜像文件超过2.88M要加上 c=* h=* s=*
initrd (hd1,1)/a.img
boot
现在有bug,加载memdisk会自动重启,beta2还没修正。
现在linux命令是跳过实模式初始化代码,直接引导32位模式的。
而memdisk是利用实模式代码来操作的,如果需要处理16位代码的话,应使用linux16/initrd16命令。
linux16 (hd1,1)/memdisk #镜像文件超过2.88M要加上 c=* h=* s=*
initrd16 (hd1,1)/a.img
boot
但还是有bug,引导img镜像会导致死机。英文好的同去,不妨去官网反应一下。必竟,引导img镜像,是一项非常有用的功能。
- 睡皮打滚要啊
- 帖子: 141
- 注册时间: 2009-03-09 19:07
Re: grub2 基础教程(续)
问个很傻的问题,30_os_prober这个文件是不是只能在终端里重命名(具体怎么做),因为我找到这个文件右键rename是灰的 

- smallapple
- 论坛版主
- 帖子: 7868
- 注册时间: 2009-03-28 15:12
Re: grub2 基础教程(续)
cd /etc/grub.d/
sudo mv 30_os-prober 07_os-prober
或
sudo nautilus /etc/grub.d
打开后右键重命名
sudo mv 30_os-prober 07_os-prober
或
sudo nautilus /etc/grub.d
打开后右键重命名
- 睡皮打滚要啊
- 帖子: 141
- 注册时间: 2009-03-09 19:07
Re: grub2 基础教程(续)
搞定了
谢谢

-
- 帖子: 4
- 注册时间: 2009-10-31 12:27
Re: grub2 基础教程(续)
mark
正在下载live cd 也许能用上
正在下载live cd 也许能用上
-
- 帖子: 15
- 注册时间: 2009-09-13 0:16
Re: grub2 基础教程(续)
请问我在安装完ubuntu9.10之后vista就找不到了,grub-update之后也没有,那到底是应该直接将
menuentry "Windows Vista (loader) (on /dev/sda1)" {
insmod ntfs
set root=(hd0,1)
search --no-floppy --fs-uuid --set fada29cbda2984cb
chainloader +1
}
加进去呢,还是把在
### BEGIN /etc/grub.d/30_os-prober 中的这一段
if keystatus; then
if keystatus --shift; then
set timeout=-1
else
set timeout=0
fi
else
if sleep$verbose --interruptible 3 ; then
set timeout=0
fi
fi
删除或修改三处set timeout=<大于0>
另外修改之后保存会出现“您试图将文件保存至只读磁盘。请检查键入的位置是否正确,然后重试。”的警告改如何解决呢,期待你的答复,刚刚完全弄好ubuntu,vista就不见了,都郁闷死了,找了一整天了,
。
希望你能帮我解决,先谢谢了
menuentry "Windows Vista (loader) (on /dev/sda1)" {
insmod ntfs
set root=(hd0,1)
search --no-floppy --fs-uuid --set fada29cbda2984cb
chainloader +1
}
加进去呢,还是把在
### BEGIN /etc/grub.d/30_os-prober 中的这一段
if keystatus; then
if keystatus --shift; then
set timeout=-1
else
set timeout=0
fi
else
if sleep$verbose --interruptible 3 ; then
set timeout=0
fi
fi
删除或修改三处set timeout=<大于0>
另外修改之后保存会出现“您试图将文件保存至只读磁盘。请检查键入的位置是否正确,然后重试。”的警告改如何解决呢,期待你的答复,刚刚完全弄好ubuntu,vista就不见了,都郁闷死了,找了一整天了,

希望你能帮我解决,先谢谢了
- smallapple
- 论坛版主
- 帖子: 7868
- 注册时间: 2009-03-28 15:12
-
- 帖子: 42
- 注册时间: 2006-04-18 9:18
Re: grub2 基础教程(续)
关于不能引导软盘镜像的问题,已经有人找到变通办法了
> Hello
> J. Bakshi wrote:
> > Hello list,
> >
> > Finally I got success booting hdt.c32 module ( hdt = hardware
> > detection tool) with the latest floppy image released by hdt team.
> > hdt.c32 is a syslinux module. As per their suggestion the following
> > config works for me from usb stick.
> >
> > menuentry HDT {
> > linux16 /memdisk
> > initrd16 /<hdt_floppy_image>
> > }
> >
> > Though it would be nice to see grub's power to directly load
> > syslinux module like this one
> >
> >
> I would be happy to have syslinux com32 glue level. Are you willing to
> code one?
> Hello
> J. Bakshi wrote:
> > Hello list,
> >
> > Finally I got success booting hdt.c32 module ( hdt = hardware
> > detection tool) with the latest floppy image released by hdt team.
> > hdt.c32 is a syslinux module. As per their suggestion the following
> > config works for me from usb stick.
> >
> > menuentry HDT {
> > linux16 /memdisk
> > initrd16 /<hdt_floppy_image>
> > }
> >
> > Though it would be nice to see grub's power to directly load
> > syslinux module like this one

> >
> >
> I would be happy to have syslinux com32 glue level. Are you willing to
> code one?
-
- 帖子: 15
- 注册时间: 2009-09-13 0:16
Re: grub2 基础教程(续)
是光盘安装的
-
- 帖子: 15
- 注册时间: 2009-09-13 0:16
Re: grub2 基础教程(续)
文件都挺正常的,不过好像多了一个复制boot的文件夹
- smallapple
- 论坛版主
- 帖子: 7868
- 注册时间: 2009-03-28 15:12
Re: grub2 基础教程(续)
光盘安装没道理不认vista的。
sudo gedit /etc/grub.d/30_os-prober
把 timeout 改成大于 0
再
sudo gedit /etc/grub.d/40_custom
加上
完了再
sudo update-grub
再重启看看

sudo gedit /etc/grub.d/30_os-prober
把 timeout 改成大于 0
再
sudo gedit /etc/grub.d/40_custom
加上
代码: 全选
menuentry "Windows Vista (loader) (on /dev/sda1)" {
insmod ntfs
set root=(hd0,1)
search --no-floppy --fs-uuid --set fada29cbda2984cb
chainloader +1
}
sudo update-grub
再重启看看
- ubuntua
- 帖子: 542
- 注册时间: 2009-10-04 11:23
-
- 帖子: 15
- 注册时间: 2009-09-13 0:16
Re: grub2 基础教程(续)
有很多timeout应该是哪一个啊