error 17:cannot mount selected partition

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
hungry1526
帖子: 65
注册时间: 2007-08-31 15:31

error 17:cannot mount selected partition

#1

帖子 hungry1526 » 2007-12-18 23:40

我重装了WIN

grub>root (hd0,3)
grub>root (hd0)
修复了GRUB

但是重启以后显示
error 17:cannot mount selected partition
怎么回事?


我的UBUNTU装在hd3下的
也通过 sudo fdisk -l查看过了 确认过了。。。。
怎么办啊?论坛里面我也找过了很多了。。。WHO CAN HELP ME????????????????????
头像
yaoms
帖子: 4952
注册时间: 2007-10-19 14:51
来自: 深圳

Re: error 17:cannot mount selected partition

#2

帖子 yaoms » 2007-12-19 0:12

hungry1526 写了: grub>root (hd0,3)
grub>root (hd0)
修复了GRUB?
这也叫修复了??相当于什么都没作。。
应该这样:

代码: 全选

#用 
grub>root (hd0,3) 
grub>setup (hd0) 
修复了GRUB
Nothing 有事请发邮件到 yms541 AT gmail.com
alias 爱慕颇雷尔='mplayer'
hungry1526
帖子: 65
注册时间: 2007-08-31 15:31

#3

帖子 hungry1526 » 2007-12-19 10:16

我打错了。。。
sudo grub
进入GRUB命令
然后
grub>root (hd0,3)
grub>setup (hd0)

对吧
接着终端提示successful 和done
接着我重启 发现GRUB回来了
但是点进去就出现了ERROR17



my menu.lst is as follows:

/////////////////////////////////////////////////////////////////////////////////////
## ## End Default Options ##

title Ubuntu 7.10, kernel 2.6.22-14-generic
root (hd0,2)
kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=d7d6abb1-b26c-4c9f-bf2d-d1fb368bef8a ro quiet splash
initrd /boot/initrd.img-2.6.22-14-generic
quiet

title Ubuntu 7.10, kernel 2.6.22-14-generic (recovery mode)
root (hd0,2)
kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=d7d6abb1-b26c-4c9f-bf2d-d1fb368bef8a ro single
initrd /boot/initrd.img-2.6.22-14-generic

title Ubuntu 7.10, memtest86+
root (hd0,2)
kernel /boot/memtest86+.bin
quiet

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:
root


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title Microsoft Windows XP Professional
root (hd0,0)
savedefault
makeactive
chainloader +1
头像
u194252
帖子: 402
注册时间: 2007-08-04 11:06

#4

帖子 u194252 » 2007-12-19 10:33

会不会是这样?
root (hd0,2) 而不是root (hd0,3)
图片
hungry1526
帖子: 65
注册时间: 2007-08-31 15:31

#5

帖子 hungry1526 » 2007-12-19 10:34

thank u and let me try again
hungry1526
帖子: 65
注册时间: 2007-08-31 15:31

#6

帖子 hungry1526 » 2007-12-19 10:42

ubuntu@ubuntu:~$ sudo fdisk -l

Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x6e6b6e6b

Device Boot Start End Blocks Id System
/dev/sda1 * 1 1416 11373988+ c W95 FAT32 (LBA)
/dev/sda2 1417 8694 58460535 f W95 Ext'd (LBA)
/dev/sda3 8695 8756 498015 82 Linux swap / Solaris
/dev/sda4 8757 9729 7815622+ 83 Linux
/dev/sda5 1417 6144 37977628+ 7 HPFS/NTFS
/dev/sda6 6145 8694 20482843+ 7 HPFS/NTFS



///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////


grub> root (hd0,
Possible partitions are:
Partition num: 0, Filesystem type is fat, partition type 0xc
Partition num: 2, Filesystem type unknown, partition type 0x82
Partition num: 3, Filesystem type is ext2fs, partition type 0x83
Partition num: 4, Filesystem type unknown, partition type 0x7
Partition num: 5, Filesystem type unknown, partition type 0x7

grub> root (hd0,3)

grub> setup (hd0)
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
Checking if "/boot/grub/e2fs_stage1_5" exists... yes
Running "embed /boot/grub/e2fs_stage1_5 (hd0)"... 17 sectors are embedded.
succeeded
Running "install /boot/grub/stage1 (hd0) (hd0)1+17 p (hd0,3)/boot/grub/stage2
/boot/grub/menu.lst"... succeeded
Done.

grub>

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////


## ## End Default Options ##

title Ubuntu 7.10, kernel 2.6.22-14-generic
root (hd0,2)
kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=d7d6abb1-b26c-4c9f-bf2d-d1fb368bef8a ro quiet splash
initrd /boot/initrd.img-2.6.22-14-generic
quiet

title Ubuntu 7.10, kernel 2.6.22-14-generic (recovery mode)
root (hd0,2)
kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=d7d6abb1-b26c-4c9f-bf2d-d1fb368bef8a ro single
initrd /boot/initrd.img-2.6.22-14-generic

title Ubuntu 7.10, memtest86+
root (hd0,2)
kernel /boot/memtest86+.bin
quiet

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:
root


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title Microsoft Windows XP Professional
root (hd0,0)
savedefault
makeactive
chainloader +1

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////


thank you very much and quite appreciate your help!

these are my all configurations and i restart again,error 17 still remains~~~~~

how can i find the lost ubuntu?
hungry1526
帖子: 65
注册时间: 2007-08-31 15:31

#7

帖子 hungry1526 » 2007-12-19 13:10

sos!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
头像
milujite
帖子: 644
注册时间: 2007-01-01 22:14
联系:

#8

帖子 milujite » 2007-12-19 13:17

u194252 写了:会不会是这样?
root (hd0,2) 而不是root (hd0,3)
完全可能。grub里算的和机器里算出来的会差个1
hungry1526
帖子: 65
注册时间: 2007-08-31 15:31

#9

帖子 hungry1526 » 2007-12-19 14:55

milujite 写了:
u194252 写了:会不会是这样?
root (hd0,2) 而不是root (hd0,3)
完全可能。grub里算的和机器里算出来的会差个1
but how to change it?
when i attempt to change the menu.lst it say that i don't have the permission to change....
??????????
头像
yaoms
帖子: 4952
注册时间: 2007-10-19 14:51
来自: 深圳

#10

帖子 yaoms » 2007-12-19 14:57

hungry1526 写了:
milujite 写了:
u194252 写了:会不会是这样?
root (hd0,2) 而不是root (hd0,3)
完全可能。grub里算的和机器里算出来的会差个1
but how to change it?
when i attempt to change the menu.lst it say that i don't have the permission to change....
??????????
sudo gedit /boot/grub/menu.lst
Nothing 有事请发邮件到 yms541 AT gmail.com
alias 爱慕颇雷尔='mplayer'
头像
u194252
帖子: 402
注册时间: 2007-08-04 11:06

#11

帖子 u194252 » 2007-12-19 16:38

祝你好运,但愿改成
(hd0,2)就能好

貌似menu。lst就是这样的
图片
hungry1526
帖子: 65
注册时间: 2007-08-31 15:31

#12

帖子 hungry1526 » 2007-12-19 18:56

yaoms 写了:
hungry1526 写了:
milujite 写了:
u194252 写了:会不会是这样?
root (hd0,2) 而不是root (hd0,3)
完全可能。grub里算的和机器里算出来的会差个1
but how to change it?
when i attempt to change the menu.lst it say that i don't have the permission to change....
??????????
sudo gedit /boot/grub/menu.lst

can't save with live cd.
my real partition is in the another partition and sudo command cannot visit it.....


how can i~~~~?
hungry1526
帖子: 65
注册时间: 2007-08-31 15:31

#13

帖子 hungry1526 » 2007-12-19 19:16

进livecd终端以后如何修改我的linux分区里的menu.lst信息?
我输入
sudo gedit /boot/grub/menu.lst
打开的是一片空白,然后保存时候提示说无法找到文件夹
就是说 根本就没有访问过menu.lst

有什么命令可以在LIVECD终端下修改别的分区的menu.lst的内容吗?

直接修改我试过了 说我不是ROOT用户无法修改
头像
yaoms
帖子: 4952
注册时间: 2007-10-19 14:51
来自: 深圳

#14

帖子 yaoms » 2007-12-19 20:22

hungry1526 写了:进livecd终端以后如何修改我的linux分区里的menu.lst信息?
我输入
sudo gedit /boot/grub/menu.lst
打开的是一片空白,然后保存时候提示说无法找到文件夹
就是说 根本就没有访问过menu.lst

有什么命令可以在LIVECD终端下修改别的分区的menu.lst的内容吗?

直接修改我试过了 说我不是ROOT用户无法修改

嗨,还以为你知道在哪呢。。。

menu.lst在你的硬盘上,而你使用liveCD启动后的 /分区并不是挂载的硬盘上的那个分区。。
你要改menu.lst就要先把硬盘挂载某个目录。。。。例如/mnt/ubuntu_root

然后修改 sudo gedit /mnt/ubuntu_root/boot/grub/menu.lst
。。。。。。。
Nothing 有事请发邮件到 yms541 AT gmail.com
alias 爱慕颇雷尔='mplayer'
hungry1526
帖子: 65
注册时间: 2007-08-31 15:31

#15

帖子 hungry1526 » 2007-12-20 1:07

yaoms 写了:
hungry1526 写了:进livecd终端以后如何修改我的linux分区里的menu.lst信息?
我输入
sudo gedit /boot/grub/menu.lst
打开的是一片空白,然后保存时候提示说无法找到文件夹
就是说 根本就没有访问过menu.lst

有什么命令可以在LIVECD终端下修改别的分区的menu.lst的内容吗?

直接修改我试过了 说我不是ROOT用户无法修改

嗨,还以为你知道在哪呢。。。

menu.lst在你的硬盘上,而你使用liveCD启动后的 /分区并不是挂载的硬盘上的那个分区。。
你要改menu.lst就要先把硬盘挂载某个目录。。。。例如/mnt/ubuntu_root

然后修改 sudo gedit /mnt/ubuntu_root/boot/grub/menu.lst
。。。。。。。


非常感谢!!!我的搞定了哈哈多谢阿!!!太开心了!!!
回复