分页: 1 / 1

Ubuntu 用root(hdX,Y) root=/dev/hdMN无法启动

发表于 : 2009-07-25 20:58
wanderer11
Ubuntu 用root(hdX,Y) root=/dev/hdMN无法启动

标题改了很久,不知道怎么改好! :em20
听说Ubuntu从6.04后,硬盘分区已用uuid替代了原来的/dev/hdmn的方式。前面两天把原来的fedora换成了Ubuntu,因为没有修改windows的NTLDR默认启动配置,所以在menu.lst加上configfile (hdx,y)/boot/grub/menu.lst。但是现在应为我把硬盘有两个分区进行了调整,Ubuntu不能启动了。在grub>里面

kernel (hd0,4)/boot/kernel2....... ro quiet splash #root=/dev/hda5
initrd (hd0,4)/boot/initrd......
boot

依然启动不了电脑,不晓得Ubuntu弄个uuid干什么,这会搞爽了......

在这里想问问各位大侠:
1:Ubuntu在硬盘分区识别这儿是不是只能用 root=uuid=&%……&¥&%*
2:可以像fedora里面用root=(hdx,y)来指定“/”分区, kernel (hd0,4)/boot/vmlinuz...... root=/dev/hda5 ro quiet splash 启动吗?
3:在grub>下,有什么方法查询硬盘uuid?
4:这种情况下是不是只有用livecd ,在光盘运行系统的情况下用ls -al /dev/disk/by-uuid查询硬盘uuid?



申明:本人不才,刚接触linux几天,实属菜鸟中的菜鸟,所以诚请各位大侠指点迷津......

Re: Ubuntu 用root(hdX,Y) root=/dev/hdMN无法启动

发表于 : 2009-07-25 21:03
smallapple
1.不是
2.可以

Re: Ubuntu 用root(hdX,Y) root=/dev/hdMN无法启动

发表于 : 2009-07-25 21:06
wanderer11
smallapple 写了:1.不是
2.可以
首先谢谢了;
老大,您回答的够简约-简单的哈!

我想晓得的是具体的方法:
1:不是。
.....................
........................
2 :可以。
.........................
.......................


希望大侠指点

Re: Ubuntu 用root(hdX,Y) root=/dev/hdMN无法启动

发表于 : 2009-07-25 21:09
smallapple
你的grub是grub4dos吗?
分区进行调整,(hd0,4)和/dev/sda5是不是变了?
先在grub>下
find /boot/grub/stage1
看看

Re: Ubuntu 用root(hdX,Y) root=/dev/hdMN无法启动

发表于 : 2009-07-25 21:19
wanderer11
smallapple 写了:你的grub是grub4dos吗?
分区进行调整,(hd0,4)和/dev/sda5是不是变了?
先在grub>下
find /boot/grub/stage1
看看
是用的grub4dos,stage什么意思啊?boot没有stage1啊?


我这样用的
title ..........
root (hd04)
kernel /boot/vmlinuz...... ro quiet splash #root=/dev/hda5(这句不晓得什么意思,应为在fedora里面要不要都没有影响)
initrd /boot/initrd.......


这是Ubuntu 下menu.lst的一段启动:
title Ubuntu 9.04, kernel 2.6.28-11-generic
uuid 73a313d5-9b0b-479c-9bc6-3258d4be3bae
kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=2107f020-dbe0-42fe-8021-85644adfd918 ro quiet splash
initrd /boot/initrd.img-2.6.28-11-generic

Re: Ubuntu 用root(hdX,Y) root=/dev/hdMN无法启动

发表于 : 2009-07-25 21:24
smallapple
:em20
title ..........
root (hd0,4)
kernel /boot/vmlinuz...... ro quiet splash root=/dev/sda5
initrd /boot/initrd.......
root前面不能有#号,是(hd0,4)不是(hd04),ubuntu现在改用sda不是hda
title Ubuntu 9.04, kernel 2.6.28-11-generic
uuid 73a313d5-9b0b-479c-9bc6-3258d4be3bae
kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=2107f020-dbe0-42fe-8021-85644adfd918 ro quiet splash
initrd /boot/initrd.img-2.6.28-11-generic
如果安装后再调 整的分区,uuid己经变了

Re: Ubuntu 用root(hdX,Y) root=/dev/hdMN无法启动

发表于 : 2009-07-25 21:31
wanderer11
smallapple 写了::em20
title ..........
root (hd0,4)
kernel /boot/vmlinuz...... ro quiet splash root=/dev/hda5
initrd /boot/initrd.......
root前面不能有#号,是(hd0,4)不是(hd04)
title Ubuntu 9.04, kernel 2.6.28-11-generic
uuid 73a313d5-9b0b-479c-9bc6-3258d4be3bae
kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=2107f020-dbe0-42fe-8021-85644adfd918 ro quiet splash
initrd /boot/initrd.img-2.6.28-11-generic




空格#,这样后面的root/dev/hda5就可以不写入了。我试验,要用它的时候就去掉#,本来我是没有加这句的

分区动了uuid是更变了,我的意思是可以在grub4dos的grub>下查询得到硬盘分区的uuid吗?

用像fedora那样 root(hd0,4)的形式,你说可以启动!你给我说说怎么写啥!
我都把我 写的给你看了!那#我只是为了说明,有的时候用的有的时候没用后面的句子而已!~



如果安装后再调 整的分区,uuid己经变了

Re: Ubuntu 用root(hdX,Y) root=/dev/hdMN无法启动

发表于 : 2009-07-25 21:37
smallapple
title Ubuntu Karmic
root (hd0,6)
kernel /vmlinuz root=/dev/sda7 noresume ro quiet splash
initrd /initrd.img

至于你是 (hd0,?)和sda?自己找 :em06

Re: Ubuntu 用root(hdX,Y) root=/dev/hdMN无法启动

发表于 : 2009-07-26 18:10
wanderer11
smallapple 写了:title Ubuntu Karmic
root (hd0,6)
kernel /vmlinuz root=/dev/sda7 noresume ro quiet splash
initrd /initrd.img

至于你是 (hd0,?)和sda?自己找 :em06

按照你的方法弄了,在后面添加了 norseume 还是不行

Re: Ubuntu 用root(hdX,Y) root=/dev/hdMN无法启动

发表于 : 2009-07-26 18:46
smallapple
你的kernel没指定root=/dev/sda?
怎支加载 / 分区?
看起来你是 /boot单独分区的吧? 知不知道 / 分区在第几分区? 如果是sda6就在kernel这一行加上 root=/dev/sda6

Re: Ubuntu 用root(hdX,Y) root=/dev/hdMN无法启动

发表于 : 2009-07-27 9:09
wanderer11
smallapple 写了:你的kernel没指定root=/dev/sda?
怎支加载 / 分区?
看起来你是 /boot单独分区的吧? 知不知道 / 分区在第几分区? 如果是sda6就在kernel这一行加上 root=/dev/sda6

加载我也试过了,一样的不行:
title ……(*……&*
kernel (hd0,4)/vmlinuz...... root=/dev/hda6 ro quiet splash
initrd (hd0,4)/initrd.......


一样不行

非要把root=/dev/hda6 换成root=uuid=^(^(&^( 才可以

Re: Ubuntu 用root(hdX,Y) root=/dev/hdMN无法启动

发表于 : 2009-07-27 9:21
wanderer11
smallapple 写了:你的kernel没指定root=/dev/sda?
怎支加载 / 分区?
看起来你是 /boot单独分区的吧? 知不知道 / 分区在第几分区? 如果是sda6就在kernel这一行加上 root=/dev/sda6

老大,谢谢你,从你的sda?...我才发现我犯了一个低级的错误! :em06

因为实验,在虚拟机下弄的!建虚拟硬盘的时候我选择的是scsi格式的硬盘(sata、scsi硬盘linux下设备名都是/dev/sdmn),所以没有注意到,错误地将root=/dev/sda6---------root=dev/hda6



现在已经over啦,其实都一样的。只是我犯了一个低级错误罢了!


麻烦大家了