LinuxSir.cn,穿越时空的Linuxsir!

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

关于hdb3变成hda3的问题???

[复制链接]
发表于 2005-12-16 09:47:41 | 显示全部楼层 |阅读模式
再描述一下问题,因为HDD从Slave变成Master,hdb3相应变成hda3,开机只有终端 grub> 用命令方式可以启动 hda1 的win2k,但用命令方式启动 hda3 的 ML1.2 时,进入引导画面,但好像当刚载入 / 分区时出错。


  1. Magic Linux - Failed File System Check
  2. An error occurred whilst checking the intergrity of the root (/) file system.
  3. Attempt automatic recovery?
复制代码


确定后出现:


  1. Magic Linux - Cannot Recover File System
  2. The root (/) file system could not be repaired. You may attempt to manually repair your file system. Alternatively, please contact Magic Linux xustomer support, or you local System Administrator.
复制代码


确定后出现 bash-#:
然后我用 fsck hda3 出现 clean 应该没问题吧??
可以进入系统目录,我想可能是因为 /etc/fstab 还没有改过的原因,加载的设备位置错误,用vi 进入后修改,但用 :wq! 时发现无法保存,提示 /etc/fstab 是只读文件,无法修改,欲哭无泪啊。

问题困扰我好多天了,兄弟真不想重装系统啊,想来 ML1.2 已经陪伴我半年了,上面装了好多软件,重装又要花很大精力,XD出手相救啊,小弟在此谢过了。

1。请告知如何恢复图形界面的grub?? setup (hd0) 和 grub install 都试过了,但重启依然是终端下的 grub> !!!

2。如何修改 /etc/fstab,为何无法保存???请教保存方法。如何把只读文件属性取消??

3。上面两个问题能解决但仍然不能启动的话,再向各位DX汇报。   
_________________
发表于 2005-12-16 19:57:04 | 显示全部楼层
单用户进入系统后,可能系统是只读的;要运行下面的命令;

#mount -o remount,rw /

这是从别的地方看来的。反正我是没用过。我直接就可以w了。
回复 支持 反对

使用道具 举报

发表于 2005-12-16 20:09:35 | 显示全部楼层
用光盘救人rescue模式中
然后
chroot  /mnt/***  /dev/hdaX    ;***为mnt目录下好像是sy开头的文件夹,
                                                       ;具体你看看mnt目录吧?
cd /mnt/***

然后修改/boot/grub/grub.conf 和 /etc/fstab  ,要修改正确分区号哦,注意grub.conf中的背景图的也要改,要不重启背景图是黑色的,没有背景图........

umount /mnt/***

grub
grub>root (hd0,*)
grub>setup (hd0)


然后重启

应该可以修复.....
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-12-17 12:43:44 | 显示全部楼层
Post by noping
单用户进入系统后,可能系统是只读的;要运行下面的命令;

#mount -o remount,rw /

这是从别的地方看来的。反正我是没用过。我直接就可以w了。



XD,你是我的救星啊。太感谢你了。小弟跟你了。:2cool :2cool :2cool
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-12-18 18:38:54 | 显示全部楼层
Post by diyself
用光盘救人rescue模式中
然后
chroot  /mnt/***  /dev/hdaX    ;***为mnt目录下好像是sy开头的文件夹,
                                                       ;具体你看看mnt目录吧?
cd /mnt/***

然后修改/boot/grub/grub.conf 和 /etc/fstab  ,要修改正确分区号哦,注意grub.conf中的背景图的也要改,要不重启背景图是黑色的,没有背景图........

umount /mnt/***

grub
grub>root (hd0,*)
grub>setup (hd0)


然后重启

应该可以修复.....




1。请告知如何恢复图形界面的grub?? setup (hd0) 和 grub install 都试过了,但重启依然是终端下的 grub> !!!

该问题依旧 ,请兄弟们告知小弟,因为可以用Grub指令进入Linux,所以用:
grub
grub>root (hd0,*)
grub>setup (hd0)

后问题依旧,重启依然是终端下的 grub>界面。

  1. # grub.conf generated by MagicInstaller.

  2. # Note that you do not have to rerun grub after making changes to this file.
  3. default=0
  4. timeout=10
  5. splashimage=(hd0,2)/boot/grub/splash.xpm.gz
  6. title Windows2000
  7.         rootnoverify (hd0,0)
  8.         chainloader +1
  9. title MagicLinux
  10.         root (hd0,2)
  11.         kernel /boot/vmlinuz-2.6.9  ro root=/dev/hda3 vga=791 splash=silent
  12.         initrd /boot/initrd-2.6.9.img
复制代码


这样应该没问题吧??我的 / 分区在 hda3 系统只有 / 和 swap 。
回复 支持 反对

使用道具 举报

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

本版积分规则

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