LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 2524|回复: 9

求助:双系统grub引导被删除了,如何恢复opensuse的引导

[复制链接]
发表于 2010-8-20 12:05:53 | 显示全部楼层 |阅读模式
用diskgen弄分区表的时候不小心把grub弄没了,现在只能进xp。
尝试过用grubfordos+从opensuse中提取的menu.lst引导,但是提示找不到文件。这是从linux根目录 /boot/grub里提取的menu.lst:

# Modified by YaST2. Last modification on 五  8月  6 15:57:38 CST 2010
# THIS FILE WILL BE PARTIALLY OVERWRITTEN by perl-Bootloader
# Configure custom boot parameters for updated kernels in /etc/sysconfig/bootloader

default 2
timeout 8
gfxmenu (hd0,8)/boot/message
##YaST - activate

###Don't change this comment - YaST2 identifier: Original name: linux###
title Desktop -- openSUSE 11.3 - 2.6.34-12
    root (hd0,8)
    kernel /boot/vmlinuz-2.6.34-12-desktop root=/dev/disk/by-id/ata-WDC_WD3200AAJS-00L7A0_WD-WMAV2Y473944-part9 resume=/dev/disk/by-id/ata-WDC_WD3200AAJS-00L7A0_WD-WMAV2Y473944-part8 splash=silent quiet showopts vga=791
    initrd /boot/initrd-2.6.34-12-desktop

###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- openSUSE 11.3 - 2.6.34-12
    root (hd0,8)
    kernel /boot/vmlinuz-2.6.34-12-desktop root=/dev/disk/by-id/ata-WDC_WD3200AAJS-00L7A0_WD-WMAV2Y473944-part9 showopts apm=off noresume nosmp maxcpus=0 edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 nomodeset x11failsafe vga=791
    initrd /boot/initrd-2.6.34-12-desktop

###Don't change this comment - YaST2 identifier: Original name: windows###
title Windows
    rootnoverify (hd0,0)
    chainloader +1

也试过用安装文件恢复grub,但是出现与grubfordos 一样的问题,说找不到文件(我用的iso硬盘安装)。求助各位看看有什么办法可以恢复opensuse系统。

另外实际在grubfordos中可以看到“/"应该在(hd0,7),hd(0,8)是/home (linux分区是swap+"/"+/home),和menu.lst不一样,不知道怎么回事
发表于 2010-8-20 12:48:52 | 显示全部楼层
可以用安装光盘启动后选择安装,之后会有选项选择是全新安装还是更新,选更新即可。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-8-20 13:03:18 | 显示全部楼层
这个已经我试过了,的确修复了grub引导界面,但是还是提示找不到文件,也就是/boot/vmlinuz-2.6.32-12-desktop.但是显然文件是存在的。我用r-linux查看过
回复 支持 反对

使用道具 举报

发表于 2010-8-20 13:10:48 | 显示全部楼层
呃~
楼主的 /boot 到底在哪个分区啊?你说修复了grub引导界面是什么意思?
如果 /boot 是在 (hd0,7) ,为什么 gfxmenu (hd0,8)/boot/message 会没问题呢?
如果只是 menu.lst 错了的话,修改一下不就行了吗?
嗯~
是不是由于楼主用diskgen修改分区表,导致openSUSE所在分区的编号发生了变化?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-8-20 13:26:13 | 显示全部楼层
看来应该是diskgen弄得了。原来我的xp有4个盘c,d,e(software),f(backup),
装suse的部分是从e盘分出去的,在e、f之间。
记得安装opensuse时将格式化好的3个分区跟在了f盘后,也就是hd0,6(backup),hd0,7 swap,hd0,8 "/",hd0,9 /home,
结果diskgen调整为hd0,5(software),hd0,6 swap,hd0,7 "/",hd0,8 /home ,hd0,9 (backup).
当时打开diskgen是要备份分区表的,结果它提示不规则的分区顺序,当时也没多想就点了修改。没想到搞成了这样
还是不了解惹得祸啊。
看来不得不重装了。
回复 支持 反对

使用道具 举报

发表于 2010-8-20 16:33:06 | 显示全部楼层
<a href="http://www.ghdministyler.com"><strong>ghd</strong></a>
<a href="http://www.ghdministyler.com"><strong>ghd hair straightener</strong></a>
<a href="http://www.ghdministyler.com">ghd straighteners</a>
<a href="http://www.ghdministyler.com">hair straighteners</a>
<a href="http://www.ghdministyler.com">ghd mini styler</a>
<a href="http://www.ghdministyler.com">cheap ghd</a>
<a href="http://www.ghdministyler.com">ghd cheap</a>
<a href="http://www.ghdministyler.com">cheap ghds</a>
<a href="http://www.ghdministyler.com">ghd sale</a>
<a href="http://www.ghdministyler.com">ghd hair</a>
<a href="http://www.ghdministyler.com">ghd iv</a>
<a href="http://www.ghdministyler.com">ghd styler</a>
<a href="http://www.ghdministyler.com">ghd iv styler</a>
<a href="http://www.ghdministyler.com">ghd hair straighteners</a>
<a href="http://www.ghdministyler.com">cheap ghd straightener</a>
<a href="http://www.ghdministyler.com">cheap ghd straighteners</a>
<a href="http://www.ghdministyler.com">ghd straighteners cheap</a>
<a href="http://www.ghdministyler.com">ghd hair straighteners cheap</a>
<a href="http://www.ghdministyler.com">ghd hair straightener cheap</a>
<a href="http://www.ghdministyler.com">discount ghd</a>
<a href="http://www.ghdministyler.com">discount ghd straighteners</a>
<a href="http://www.ghdministyler.com">discount ghd hair straighteners</a>
<a href="http://www.ghdministyler.com">ghd straightener</a>
<a href="http://www.ghdministyler.com">ghd mk4</a>
<a href="http://www.ghdministyler.com">ghd mk4 styler</a>
<a href="http://www.ghdministyler.com/ghd-blue-straightener-p-16.html">GHD Blue</a>
<a href="http://www.ghdministyler.com/ghd-blue-straightener-p-16.html">GHD Blue Straightener</a>
<a href="http://www.ghdministyler.com/ghd-blue-straightener-p-16.html">GHD Blue Hair Straightener</a>
<a href="http://www.ghdministyler.com/ghd-green-straightener-p-15.html">GHD Green</a>
<a href="http://www.ghdministyler.com/ghd-green-straightener-p-15.html">GHD Green Straightener</a>
<a href="http://www.ghdministyler.com/ghd-green-straightener-p-15.html">GHD Green Hair Straightener</a>
<a href="http://www.ghdministyler.com/ghd-purple-straightener-p-4.html">GHD Purple</a>
<a href="http://www.ghdministyler.com/ghd-purple-straightener-p-4.html">GHD Purple Straightener</a>
<a href="http://www.ghdministyler.com/ghd-purple-straightener-p-4.html">ghd purple hair straightener</a>
<a href="http://www.ghdministyler.com/ghd-red-straightener-p-2.html">ghd red</a>
<a href="http://www.ghdministyler.com/ghd-red-straightener-p-2.html">ghd red straightener</a>
<a href="http://www.ghdministyler.com/ghd-red-straightener-p-2.html">ghd red hair straightener</a>
<a href="http://www.ghdministyler.com/ghd-benefit-styler-p-19.html">ghd benefit styler</a>
<a href="http://www.ghdministyler.com/ghd-benefit-styler-p-19.html">ghd benefit</a>
<a href="http://www.ghdministyler.com/ghd-benefit-styler-p-19.html">benefit ghd iv styler</a>
<a href="http://www.ghdministyler.com/ghd-benefit-styler-p-19.html">ghd benefit straightener</a>
<a href="http://www.ghdministyler.com/ghd-benefit-styler-p-19.html">ghd benefit limited edition</a>
<a href="http://www.ghdministyler.com/ghd-benefit-styler-p-19.html">ghd benefit hair straightener</a>
<a href="http://www.ghdministyler.com/ghd-black-straightener-p-18.html">GHD Black</a>
<a href="http://www.ghdministyler.com/ghd-black-straightener-p-18.html">GHD Black Straightener</a>
<a href="http://www.ghdministyler.com/ghd-black-straightener-p-18.html">GHD Black Hair Straightener</a>
<a href="http://www.ghdministyler.com/ghd-black-white-straightener-p-17.html">GHD Black White Straightener</a>
<a href="http://www.ghdministyler.com/ghd-black-white-straightener-p-17.html">GHD Black Hair Straightener</a>
<a href="http://www.ghdministyler.com/ghd-black-white-straightener-p-17.html">GHD White Straighteners</a>
<a href="http://www.ghdministyler.com/ghd-iv-dark-styler-p-14.html">dark ghd</a>
<a href="http://www.ghdministyler.com/ghd-iv-dark-styler-p-14.html">ghd iv dark styler</a>
<a href="http://www.ghdministyler.com/ghd-iv-dark-styler-p-14.html">dark ghd iv styler</a>
<a href="http://www.ghdministyler.com/ghd-iv-dark-styler-p-14.html">ghd iv dark straightener</a>
<a href="http://www.ghdministyler.com/ghd-iv-deeppink-styler-p-13.html">GHD DeepPink</a>
<a href="http://www.ghdministyler.com/ghd-iv-deeppink-styler-p-13.html">GHD IV DeepPink Styler</a>
<a href="http://www.ghdministyler.com/ghd-iv-kiss-pink-styler-p-12.html">ghd kiss</a>
<a href="http://www.ghdministyler.com/ghd-iv-kiss-pink-styler-p-12.html">ghd iv kiss styler</a>
<a href="http://www.ghdministyler.com/ghd-iv-kiss-pink-styler-p-12.html">pink ghd iv kiss styler</a>
<a href="http://www.ghdministyler.com/ghd-iv-kiss-pink-styler-p-12.html">ghd kiss straighteners</a>
<a href="http://www.ghdministyler.com/ghd-iv-kiss-pink-styler-p-12.html">pink kiss ghd hair straightener</a>
<a href="http://www.ghdministyler.com/ghd-iv-kiss-pink-styler-p-12.html">ghd kiss pink hair straightener</a>
<a href="http://www.ghdministyler.com/ghd-iv-kiss-pink-styler-p-12.html">ghd iv kiss pink styler</a>
<a href="http://www.ghdministyler.com/ghd-iv-kiss-pink-styler-p-12.html">cheap ghd iv kiss styler</a>
<a href="http://www.ghdministyler.com/ghd-iv-mini-styler-p-11.html">ghd iv mini styler</a>
<a href="http://www.ghdministyler.com/ghd-iv-mini-styler-p-11.html">ghd mini hair straightener</a>
<a href="http://www.ghdministyler.com/ghd-iv-pink-styler-p-10.html">pink ghd</a>
<a href="http://www.ghdministyler.com/ghd-iv-pink-styler-p-10.html">ghd iv pink styler</a>
<a href="http://www.ghdministyler.com/ghd-iv-pink-styler-p-10.html">pink ghd straighteners</a>
<a href="http://www.ghdministyler.com/ghd-iv-pink-styler-p-10.html">ghd pink limited editio</a>
<a href="http://www.ghdministyler.com/ghd-iv-pink-styler-p-10.html">pink ghd iv styler</a>
<a href="http://www.ghdministyler.com/ghd-iv-pink-styler-p-10.html">ghd pink</a>
<a href="http://www.ghdministyler.com/ghd-iv-salon-styler-p-9.html">ghd iv salon</a>
<a href="http://www.ghdministyler.com/ghd-iv-salon-styler-p-9.html">ghd iv salon styler</a>
<a href="http://www.ghdministyler.com/ghd-iv-salon-styler-p-9.html">ghd salon straightener</a>
<a href="http://www.ghdministyler.com/ghd-mk4-black-styler-p-8.html">ghd mk4 black styler</a>
<a href="http://www.ghdministyler.com/ghd-mk4-black-styler-p-8.html">black ghd straighteners</a>
<a href="http://www.ghdministyler.com/ghd-mk4-gold-styler-p-7.html">ghd gold</a>
<a href="http://www.ghdministyler.com/ghd-mk4-gold-styler-p-7.html">ghd gold styler</a>
<a href="http://www.ghdministyler.com/ghd-mk4-gold-styler-p-7.html">ghd gold straightener</a>
<a href="http://www.ghdministyler.com/ghd-mk4-gold-styler-p-7.html">ghd gold straighteners</a>
<a href="http://www.ghdministyler.com/ghd-mk4-gold-styler-p-7.html">ghd mk4 gold styler</a>
<a href="http://www.ghdministyler.com/ghd-mk4-gold-styler-p-7.html">ghd gold hair staightener</a>
<a href="http://www.ghdministyler.com/ghd-mk4-purple-styler-p-6.html">ghd mk4 purple straightener</a>
<a href="http://www.ghdministyler.com/ghd-mk4-purple-styler-p-6.html">ghd mk4 purple styler</a>
<a href="http://www.ghdministyler.com/ghd-mk4-purple-styler-p-6.html">ghd purple styler</a>
<a href="http://www.ghdministyler.com/ghd-pure-white-straightener-p-5.html">ghd pure white straightener</a>
<a href="http://www.ghdministyler.com/ghd-pure-white-straightener-p-5.html">pure white ghd</a>
<a href="http://www.ghdministyler.com/ghd-rare-straightener-p-3.html">ghd rare</a>
<a href="http://www.ghdministyler.com/ghd-rare-straightener-p-3.html">ghd rare straightener</a>
<a href="http://www.ghdministyler.com/ghd-rare-straightener-p-3.html">ghd rare hair straightener</a>
<a href="http://www.ghdministyler.com/ghd-rare-straightener-p-3.html">ghd rare straighteners</a>
<a href="http://www.ghdministyler.com/limited-edition-precious-ghd-iv-styler-p-1.html">ghd precious</a>
<a href="http://www.ghdministyler.com/limited-edition-precious-ghd-iv-styler-p-1.html">limited edition ghd</a>
<a href="http://www.ghdministyler.com/limited-edition-precious-ghd-iv-styler-p-1.html">ghd limited edition</a>
<a href="http://www.ghdministyler.com/limited-edition-precious-ghd-iv-styler-p-1.html">limited edition precious ghd</a>
<a href="http://www.ghdministyler.com/limited-edition-precious-ghd-iv-styler-p-1.html">ghd limited edition precious</a>
<a href="http://www.ghdministyler.com/limited-edition-precious-ghd-iv-styler-p-1.html">ghd precious limited edition</a>

http://www.ghdministyler.com
回复 支持 反对

使用道具 举报

发表于 2010-8-20 21:58:40 | 显示全部楼层
Post by SH_晴空;2108983
看来应该是diskgen弄得了。原来我的xp有4个盘c,d,e(software),f(backup),
装suse的部分是从e盘分出去的,在e、f之间。
记得安装opensuse时将格式化好的3个分区跟在了f盘后,也就是hd0,6(backup),hd0,7 swap,hd0,8 "/",hd0,9 /home,
结果diskgen调整为hd0,5(software),hd0,6 swap,hd0,7 "/",hd0,8 /home ,hd0,9 (backup).
当时打开diskgen是要备份分区表的,结果它提示不规则的分区顺序,当时也没多想就点了修改。没想到搞成了这样
还是不了解惹得祸啊。
看来不得不重装了。


既然 / 只是由8变成7了,你把menu.lst中对应的都改成7不就行了吗?
回复 支持 反对

使用道具 举报

发表于 2010-9-22 14:47:24 | 显示全部楼层
xp里安装个EASYBCD和.net2.0,编辑EASYBCD目录下menu.lst文件也可以。
回复 支持 反对

使用道具 举报

发表于 2010-9-22 17:53:15 | 显示全部楼层
dd if=/boot/grub/mbr_backup*  of=/dev/sda count=1 bs=446
回复 支持 反对

使用道具 举报

发表于 2010-11-2 18:44:50 | 显示全部楼层
光盘启动,修复时啥都不勾选,它会自动安装引导的
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表