救急!!XP重装后重新用Grub引导出现的Error 17问题[已解决]
- jsnet
- 帖子: 35
- 注册时间: 2007-11-01 21:12
救急!!XP重装后重新用Grub引导出现的Error 17问题[已解决]
我前两天用Ghost重装XP后grub一直是正常的,我就没注意,正常进入XP,后来装个驱动重启后就Grub损坏,我用rescue 重新引导Grub,我的ubuntu是装在D盘的,我就
root (hd0,1)
setup (hdo)
reboot
再进入ubuntu后就提示error 17:无法挂载所选分区(can't mount selected partion),我就到Grub启动菜单中选ubuntu 8.10 按"e",发现里面的是这样的:
root (hd0,2)
ke.....root=/dev/sda3....
我也记不清了,我就再按“e”,把root (hd0,2)改成root (hd0,1)然后b,再之后出来ubuntu进度条接着又进入了另一个命令行,是mi..命令行什么我也忘了,刚开始玩8.10时就问题不断,实在是不想重装啊!我本人技术又比较菜,grub中菜单的root项,还有下面的那项...sda3...项路径有什么错误。所以希望各位大哥大姐能帮个忙!!!感谢再三...
root (hd0,1)
setup (hdo)
reboot
再进入ubuntu后就提示error 17:无法挂载所选分区(can't mount selected partion),我就到Grub启动菜单中选ubuntu 8.10 按"e",发现里面的是这样的:
root (hd0,2)
ke.....root=/dev/sda3....
我也记不清了,我就再按“e”,把root (hd0,2)改成root (hd0,1)然后b,再之后出来ubuntu进度条接着又进入了另一个命令行,是mi..命令行什么我也忘了,刚开始玩8.10时就问题不断,实在是不想重装啊!我本人技术又比较菜,grub中菜单的root项,还有下面的那项...sda3...项路径有什么错误。所以希望各位大哥大姐能帮个忙!!!感谢再三...
上次由 jsnet 在 2009-02-26 15:55,总共编辑 1 次。
- 32idea
- 帖子: 1251
- 注册时间: 2006-12-15 9:32
- 系统: linux
Re: 救急!!XP重装后重新用Grub引导出现的Error 17问题
d盘是windows的概念,如果是逻辑分区的话,应该是root(0,4)(也就是sda5);如果是主分区的话,而且是建立在逻辑分区之后,一般应该是root(0,2)(也就是sda3),需说明的是,这时root(0,1)sda2实际就是被你的一组逻辑分区组合占用了,也就是sda5\sda6等等逻辑分区共同占用组成了一个主分区份额。
所以你新建grub时应该是root(0,2),如果不好问题没解决,你可以把用blkid这个命令输出的结果和menu.lst贴出来,方便坛友给你提供建议
修复新建grub时,你应该用这个命令来确定你的系统位置,这样就不太会出问题
所以你新建grub时应该是root(0,2),如果不好问题没解决,你可以把用blkid这个命令输出的结果和menu.lst贴出来,方便坛友给你提供建议
修复新建grub时,你应该用
代码: 全选
find /boot/grub/stage1
- jsnet
- 帖子: 35
- 注册时间: 2007-11-01 21:12
Re: 救急!!XP重装后重新用Grub引导出现的Error 17问题
不行啊!我用root()时只有1是能正常显示系统分区情况,不过是ext2类型,我分的时候明明是ext3而且是主分区的,2和其他的数字显示错误的类型,还有就是我不怎么会进入终端输命令,我用8.10安装盘时按F4,不过没发现怎么进入终端命令行啊,希望能讲解下!谢谢!我重新引导Grub时还是用Red Hat 然后用rescue,也只有root(hd0,1)能正常修复,你说的find /boot/grub/stage1我也试过,不过在这个命令在命令行下好像显示不能用啊!也不能编辑menu.lst,我是没有办法了,希望你能说说具体的方法,并能讲下步骤....
- 32idea
- 帖子: 1251
- 注册时间: 2006-12-15 9:32
- 系统: linux
Re: 救急!!XP重装后重新用Grub引导出现的Error 17问题
find /boot/grub/stage1这个命令,是指你用ubuntu的livcd光盘启动电脑,进入桌面后,启动终端,然后新建或恢复grub的操作,不是在启动菜单里按 e编辑使用。
本坛里讲如何新建修复grub 的帖子一大把,你参考一下,
本坛里讲如何新建修复grub 的帖子一大把,你参考一下,
- jsnet
- 帖子: 35
- 注册时间: 2007-11-01 21:12
Re: 救急!!XP重装后重新用Grub引导出现的Error 17问题
哦!不过没有Livecd啊!只有安装盘,那怎么弄呢?再说当时申请盘的时候也只有两张啊!一个32位一个64位的,没有livecd啊?不过还是很谢谢你
- 32idea
- 帖子: 1251
- 注册时间: 2006-12-15 9:32
- 系统: linux
Re: 救急!!XP重装后重新用Grub引导出现的Error 17问题
你申请的盘本身就是所谓的“livecd”,可以用它从光盘启动并进入一个ubuntu的系统环境,然后对你硬盘的系统进行修复维护。
-
- 帖子: 3681
- 注册时间: 2008-05-03 23:42
Re: 救急!!XP重装后重新用Grub引导出现的Error 17问题
我就到Grub启动菜单中选ubuntu 8.10 按"e",发现里面的是这样的:
root (hd0,2)
ke.....root=/dev/sda3....
root (hd0,1)
ke.....root=/dev/sda2....
- jsnet
- 帖子: 35
- 注册时间: 2007-11-01 21:12
Re: 救急!!XP重装后重新用Grub引导出现的Error 17问题
谢谢了!我还是很久以前申请过的,后来又自己刻了一张8.10的,我挨个看选项也没发现怎么进入ubuntu桌面的,不就是按F4的吗?
- 32idea
- 帖子: 1251
- 注册时间: 2006-12-15 9:32
- 系统: linux
Re: 救急!!XP重装后重新用Grub引导出现的Error 17问题
到这个网址看看(http://hi.baidu.com/%B6%AD%C9%CFƷ/blog/ ... 2bbdc.html),有图,到第四步就进入到了ubuntu桌面,这就是livecd的系统,和你安到硬盘的差不多,你可以用这个系统来进行grub的修复。5)以后的步骤就不用看了,那是教怎么安装ubuntu的
- jsnet
- 帖子: 35
- 注册时间: 2007-11-01 21:12
Re: 救急!!XP重装后重新用Grub引导出现的Error 17问题
谢谢了!争取不重装系统把问题解决,再次感谢...
- jsnet
- 帖子: 35
- 注册时间: 2007-11-01 21:12
Re: 救急!!XP重装后重新用Grub引导出现的Error 17问题
改了的,麻烦看对不对,xiexie
# menu.lst - See: grub(8), info grub, update-grub(8)
# grub-install(8), grub-floppy(8),
# grub-md5-crypt, /usr/share/doc/grub
# and /usr/share/doc/grub-doc/.
## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not use 'savedefault' or your
# array will desync and will not let you boot your system.
default 0
## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 10
## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
#hiddenmenu
# Pretty colours
#color cyan/blue white/blue
## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line) and entries protected by the
# command 'lock'
# e.g. password topsecret
# password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret
#
# examples
#
# title Windows 95/98/NT/2000
# root (hd0,0)
# makeactive
# chainloader +1
#
# title Linux
# root (hd0,1)
# kernel /vmlinuz root=/dev/hda2 ro
#
#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST
### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below
## DO NOT UNCOMMENT THEM, Just edit them to your needs
## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
## kopt_2_6_8=root=/dev/hdc1 ro
## kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=/dev/sda2 ro locale=zh_CN
## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,1)
## should update-grub create alternative automagic boot options
## e.g. alternative=true
## alternative=false
# alternative=true
## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
## lockalternative=false
# lockalternative=false
## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash
## should update-grub lock old automagic boot options
## e.g. lockold=false
## lockold=true
# lockold=false
## Xen hypervisor options to use with the default Xen boot option
# xenhopt=
## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0
## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(recovery) single
# altoptions=(recovery mode) single
## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
## howmany=7
# howmany=all
## should update-grub create memtest86 boot option
## e.g. memtest86=true
## memtest86=false
# memtest86=true
## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false
## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false
## ## End Default Options ##
title Ubuntu 8.10, kernel 2.6.27-12-generic
root (hd0,1)
kernel /boot/vmlinuz-2.6.27-12-generic root=/dev/sda2 ro locale=zh_CN quiet splash
initrd /boot/initrd.img-2.6.27-12-generic
quiet
title Ubuntu 8.10, kernel 2.6.27-12-generic (recovery mode)
root (hd0,1)
kernel /boot/vmlinuz-2.6.27-12-generic root=/dev/sda2 ro locale=zh_CN single
initrd /boot/initrd.img-2.6.27-12-generic
title Ubuntu 8.10, kernel 2.6.27-11-generic
root (hd0,1)
kernel /boot/vmlinuz-2.6.27-11-generic root=/dev/sda2 ro locale=zh_CN quiet splash
initrd /boot/initrd.img-2.6.27-11-generic
quiet
title Ubuntu 8.10, kernel 2.6.27-11-generic (recovery mode)
root (hd0,1)
kernel /boot/vmlinuz-2.6.27-11-generic root=/dev/sda2 ro locale=zh_CN single
initrd /boot/initrd.img-2.6.27-11-generic
title Ubuntu 8.10, kernel 2.6.27-7-generic
root (hd0,1)
kernel /boot/vmlinuz-2.6.27-7-generic root=/dev/sda2 ro locale=zh_CN quiet splash
initrd /boot/initrd.img-2.6.27-7-generic
quiet
title Ubuntu 8.10, kernel 2.6.27-7-generic (recovery mode)
root (hd0,1)
kernel /boot/vmlinuz-2.6.27-7-generic root=/dev/sda2 ro locale=zh_CN single
initrd /boot/initrd.img-2.6.27-7-generic
title Ubuntu 8.10, memtest86+
root (hd0,1)
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 Windows XP3 (loader)
root (hd0,0)
savedefault
makeactive
chainloader +1
# menu.lst - See: grub(8), info grub, update-grub(8)
# grub-install(8), grub-floppy(8),
# grub-md5-crypt, /usr/share/doc/grub
# and /usr/share/doc/grub-doc/.
## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not use 'savedefault' or your
# array will desync and will not let you boot your system.
default 0
## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 10
## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
#hiddenmenu
# Pretty colours
#color cyan/blue white/blue
## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line) and entries protected by the
# command 'lock'
# e.g. password topsecret
# password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret
#
# examples
#
# title Windows 95/98/NT/2000
# root (hd0,0)
# makeactive
# chainloader +1
#
# title Linux
# root (hd0,1)
# kernel /vmlinuz root=/dev/hda2 ro
#
#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST
### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below
## DO NOT UNCOMMENT THEM, Just edit them to your needs
## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
## kopt_2_6_8=root=/dev/hdc1 ro
## kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=/dev/sda2 ro locale=zh_CN
## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,1)
## should update-grub create alternative automagic boot options
## e.g. alternative=true
## alternative=false
# alternative=true
## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
## lockalternative=false
# lockalternative=false
## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash
## should update-grub lock old automagic boot options
## e.g. lockold=false
## lockold=true
# lockold=false
## Xen hypervisor options to use with the default Xen boot option
# xenhopt=
## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0
## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(recovery) single
# altoptions=(recovery mode) single
## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
## howmany=7
# howmany=all
## should update-grub create memtest86 boot option
## e.g. memtest86=true
## memtest86=false
# memtest86=true
## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false
## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false
## ## End Default Options ##
title Ubuntu 8.10, kernel 2.6.27-12-generic
root (hd0,1)
kernel /boot/vmlinuz-2.6.27-12-generic root=/dev/sda2 ro locale=zh_CN quiet splash
initrd /boot/initrd.img-2.6.27-12-generic
quiet
title Ubuntu 8.10, kernel 2.6.27-12-generic (recovery mode)
root (hd0,1)
kernel /boot/vmlinuz-2.6.27-12-generic root=/dev/sda2 ro locale=zh_CN single
initrd /boot/initrd.img-2.6.27-12-generic
title Ubuntu 8.10, kernel 2.6.27-11-generic
root (hd0,1)
kernel /boot/vmlinuz-2.6.27-11-generic root=/dev/sda2 ro locale=zh_CN quiet splash
initrd /boot/initrd.img-2.6.27-11-generic
quiet
title Ubuntu 8.10, kernel 2.6.27-11-generic (recovery mode)
root (hd0,1)
kernel /boot/vmlinuz-2.6.27-11-generic root=/dev/sda2 ro locale=zh_CN single
initrd /boot/initrd.img-2.6.27-11-generic
title Ubuntu 8.10, kernel 2.6.27-7-generic
root (hd0,1)
kernel /boot/vmlinuz-2.6.27-7-generic root=/dev/sda2 ro locale=zh_CN quiet splash
initrd /boot/initrd.img-2.6.27-7-generic
quiet
title Ubuntu 8.10, kernel 2.6.27-7-generic (recovery mode)
root (hd0,1)
kernel /boot/vmlinuz-2.6.27-7-generic root=/dev/sda2 ro locale=zh_CN single
initrd /boot/initrd.img-2.6.27-7-generic
title Ubuntu 8.10, memtest86+
root (hd0,1)
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 Windows XP3 (loader)
root (hd0,0)
savedefault
makeactive
chainloader +1
- 速腾1994
- 论坛版主
- 帖子: 17379
- 注册时间: 2008-11-01 20:43
- 系统: Arch+gnome
Re: 救急!!XP重装后重新用Grub引导出现的Error 17问题
郁闷jsnet 写了:哦!不过没有Livecd啊!只有安装盘,那怎么弄呢?再说当时申请盘的时候也只有两张啊!一个32位一个64位的,没有livecd啊?不过还是很谢谢你