[求助]如何将GRUB.CFG的内容改写成GRUB能用的menu.lst

启动讨论 grub/grub2/syslinux/grub4dos/Lilo
回复
hhxs1987
帖子: 5
注册时间: 2007-01-26 4:15

[求助]如何将GRUB.CFG的内容改写成GRUB能用的menu.lst

#1

帖子 hhxs1987 » 2009-09-06 12:10

刚下的090905的daililive的cd,发现启动的项目又变了,还是GRUB2引导,但是不能用WUBI安装了,谁能将下面的内容转成能用grub引导的,在此先谢过了。

menuentry "Normal mode" {
search -s /ubuntu/install/boot/vmlinuz
linux /ubuntu/install/boot/vmlinuz debian-installer/custom-installation=/ubuntu/install/custom-installation iso-scan/filename=/ubuntu/install/installation.iso automatic-ubiquity noprompt quiet splash boot=casper ro debian-installer/locale=zh_CN.UTF-8 console-setup/layoutcode=cn console-setup/variantcode= --
initrd /ubuntu/install/boot/initrd.lz
}
头像
smallapple
论坛版主
帖子: 7868
注册时间: 2009-03-28 15:12

Re: [求助]如何将GRUB.CFG的内容改写成GRUB能用的menu.lst

#2

帖子 smallapple » 2009-09-06 12:33

title Normal mode
find --set-root /ubuntu/install/boot/vmlinuz
kernel /ubuntu/install/boot/vmlinuz debian-installer/custom-installation=/ubuntu/install/custom-installation iso-scan/filename=/ubuntu/install/installation.iso automatic-ubiquity noprompt quiet splash boot=casper ro debian-installer/locale=zh_CN.UTF-8 console-setup/layoutcode=cn console-setup/variantcode= --
initrd /ubuntu/install/boot/initrd.lz
hhxs1987
帖子: 5
注册时间: 2007-01-26 4:15

Re: [求助]如何将GRUB.CFG的内容改写成GRUB能用的menu.lst

#3

帖子 hhxs1987 » 2009-09-06 12:54

已经装上了,但还是不能启动,还得麻烦你将下面这段改下。那个uuid好像必须得写,原先我自己改的就进去过一次,重启后就提示目录不可写。ROOT用户也不行,不知道什么原因。

menuentry "Ubuntu, Linux 2.6.31-9-generic" {
set quiet=1
insmod ntfs
set root=(hd0,1)
search --no-floppy --fs-uuid --set 12ecbcd5ecbcb3f7
linux /vmlinuz-2.6.31-9-generic root=/host/ubuntu/disks/root.disk ro quiet splash
initrd /initrd.img-2.6.31-9-generic
}
头像
smallapple
论坛版主
帖子: 7868
注册时间: 2009-03-28 15:12

Re: [求助]如何将GRUB.CFG的内容改写成GRUB能用的menu.lst

#4

帖子 smallapple » 2009-09-06 13:11

title Ubuntu, Linux 2.6.31-9-generic
root (hd0,0)
kernel /vmlinuz-2.6.31-9-generic root=/host/ubuntu/disks/root.disk ro quiet splash
initrd /initrd.img-2.6.31-9-generic

按理root (hd0,0)和 uuid 12ecbcd5ecbcb3f7 保留一个就可以了
上次由 smallapple 在 2009-09-06 15:50,总共编辑 1 次。
hhxs1987
帖子: 5
注册时间: 2007-01-26 4:15

Re: [求助]如何将GRUB.CFG的内容改写成GRUB能用的menu.lst

#5

帖子 hhxs1987 » 2009-09-06 13:22

(hd0,1)时提示无法mount分区,改成(hd0,0)时提示C盘是NTFS格式的,然后是error code21 ,找不到分区,还是无法启动。哪里出问题了?
头像
smallapple
论坛版主
帖子: 7868
注册时间: 2009-03-28 15:12

Re: [求助]如何将GRUB.CFG的内容改写成GRUB能用的menu.lst

#6

帖子 smallapple » 2009-09-06 15:53

sorry,
grub.cfg改成menu.lst应为(hd0,0)。
先找找
实际上ubuntu是不是安装在C盘的?还是在其他盘?
vmlinuz-2.6.31-9-generic是在根目录下还是在文件夹内?
hhxs1987
帖子: 5
注册时间: 2007-01-26 4:15

Re: [求助]如何将GRUB.CFG的内容改写成GRUB能用的menu.lst

#7

帖子 hhxs1987 » 2009-09-09 19:39

是我没说清楚,我用的是WUBI安装的。这几天天天下的最新的daili-live的cd装,不用改写menu.lst,直接用的WUBI已经可以正常装了,但是装完后不能引导ubuntu的启动。说是"you need to load linux kernel first",需要先载入内核。不知道如何操作了。一直麻烦你,不好意思。
上次由 hhxs1987 在 2009-09-09 21:43,总共编辑 1 次。
头像
smallapple
论坛版主
帖子: 7868
注册时间: 2009-03-28 15:12

Re: [求助]如何将GRUB.CFG的内容改写成GRUB能用的menu.lst

#8

帖子 smallapple » 2009-09-09 20:06

you need load linux kernel first
不能加载内核,也就是红色部分路径可能不对
title Ubuntu, Linux 2.6.31-9-generic
root (hd0,0)
kernel /vmlinuz-2.6.31-9-generic root=/host/ubuntu/disks/root.disk ro quiet splash
initrd /initrd.img-2.6.31-9-generic
可以用windows下的文件搜索功能找到 vmlinuz-2.6.31-9-generic 的位置,根据所处位置来修改
root (hd0,?)
kernel /???/???/vmlinuz-2.6.31-9-generic
initrd /??? /???/initrd.img-2.6.31-9-generic
hhxs1987
帖子: 5
注册时间: 2007-01-26 4:15

Re: [求助]如何将GRUB.CFG的内容改写成GRUB能用的menu.lst

#9

帖子 hhxs1987 » 2009-09-09 21:42

网上有人说利用livecd 运行 sudo fdisk -lu 这个命令,这个命令是作什么用的?因为怕把分区表重写了,没敢运行。
如果不行的话只好等过几天正式版出了再装了,这几天天天倒腾来倒腾去的。
头像
smallapple
论坛版主
帖子: 7868
注册时间: 2009-03-28 15:12

Re: [求助]如何将GRUB.CFG的内容改写成GRUB能用的menu.lst

#10

帖子 smallapple » 2009-09-09 21:46

那是用来看分区信息的。不会写分区表
我有点迷糊。你现在是wubi安装的,还是用CD安装的?
回复