LinuxSir.cn,穿越时空的Linuxsir!

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

用LiveCD修复Grub之后的问题

[复制链接]
发表于 2006-6-27 15:43:31 | 显示全部楼层 |阅读模式
本机:安装Windows XP和Debian 双系统。

最初安装:分区时留了一个主分区给Debian,先装Windows,然后装Debian。

问题始末:
1.重装了Windows,启动不了Debian了。
2.用Knoppix的LiveCD启动。执行grub。
  grub>find /boot/grub/stage1
  此时执行结果为:
  (hd0,1)
  (hd1,1)
   然后我接着在grub下:
   grub>root (hd0,1)
   grub>setup (hd0)
3.退出grub,重启....
4.grub恢复,但启动Debian时出现问题,描述如下:

checking all file systems...
    fsck  1.37  (21-Mar-2005)
    fsck.ext3: No such device or address while trying to open /dev/hda10
    possibly non-existent or swap device?
    /home: clean  , 627/779280 files,    109497/1558273 blocks
mice: PS/2 mouse device common for all mice
ts: compaq touchscreen protocol output
    /var: clean, 4475/586368 files,   148749/1172713 blocks
     fsck.ext3:Bad magic number in super-block while trying to open /dev/hda7
    /dev/hda7:
    The superblock could not be read or does not decribe a correct ext2 filesystem. If the device is valid and it really contains a ext2 filesystem ( and not swap or ufs or something else), then the superblock is corrupt, and you might try running e2fsck with an alternate superblock:
    e2fsck -b 8193 <device>
fsck failed. Please repair manually.

CONTROL-D will exit from this shell and continue system startup.

Give root password for maintenance
(or type Control-D to Continue):
/**描述完毕***/

按Ctrl-D,可以继续启动过程,但没有什么用。
请问如何解决???
发表于 2006-6-28 07:30:21 | 显示全部楼层
好像你的 /boot/grub/menu.lst 文件有问题,贴上来看看。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-6-28 15:16:09 | 显示全部楼层
谢谢ZuoLiang。
我用LiveCD改了/etc/fstab,现在Debian可以启动了。但是windows启动不了啦。当我在Grub里选Windows XP Professional 时,总是在Grub里面打转转。

还有,我用DOS盘启动机器,已经看不到原来的几个Windows分区了,但是用LiveCD可以看并可以正常挂载访问。
回复 支持 反对

使用道具 举报

发表于 2006-6-28 18:51:07 | 显示全部楼层
我用LiveCD改了/etc/fstab,现在Debian可以启动了。但是windows启动不了啦。当我在Grub里选Windows XP Professional 时,总是在Grub里面打转转。
还是贴出 menu.lst 的内容看看吧!
还有,我用DOS盘启动机器,已经看不到原来的几个Windows分区了,但是用LiveCD可以看并可以正常挂载访问。
用石气时代的产物观看近代的系统,当然是不会支持了!
回复 支持 反对

使用道具 举报

发表于 2006-6-28 19:18:24 | 显示全部楼层
menu.lst里面要修改下的
以前就是不明白这一点
分区号不断的变
所以有时就找不到了
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-6-29 16:08:53 | 显示全部楼层
问题依旧,menu.lst文件内容如下:
# 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'.           
default               0       

## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout                20

# Pretty colours
color cyan/blue white/blue



title Debian GNU/Linux, kernel 2.6.8-2-386
        root (hd0,1)
        kernel /boot/vmlinuz-2.6.8-2-386 root=/dev/hda2 ro
        initrd /boot/initrd.img-2.6.8-2-386

title Debian GNU/Linux, kernel 2.6.8-2-386 (recovery mode)
        root (hd0,1)
        kernel /boot/vmlinuz-2.6.8-2-386 root=/dev/hda2 ro single
        initrd /boot/initrd.img-2.6.8-2-386

title Microsoft Windows XP Professional
        root  (hd0,0)
        makeactive
        chainloader +1
回复 支持 反对

使用道具 举报

发表于 2007-1-3 16:22:12 | 显示全部楼层
怎么好象还是没有最终解决这个问题啊
回复 支持 反对

使用道具 举报

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

本版积分规则

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