|
|

楼主 |
发表于 2005-12-17 17:01:43
|
显示全部楼层
Post by 北南南北
这个对新手是有点麻烦。。。得用到修复模式 、单用户、或用第三方livecd 来修复也行;
首先看分区表是否变了,如果分区表变了,系统的/etc/fstab的内容肯定也变了;root分区也变了。
要做的有以下几点;
如同7dehao兄弟所说的,恢复GRUB ;但这个工作得在修改/etc/fstab完后才能进行;如果没变倒好说;
首先:要修改 /etc/fstab ;根据 fdisk -l 输出来查看;然后要修改/etc/grub.conf 或/boot/grub/menu.lst
二、安装grub到MBR上;
#grub-install /dev/hda
然后还得如下做;
#grub
grub>root (hdx,y)
grub>setup (hdx)
grub>quit
其中hdx和y 的值 ,要通过 fdisk -l 来查看;比如我的硬盘是/dev/hda5,则(hdx,y)应该是(hd0,4)
如果还出现 kernel 。。。。错误之类的;应该是丢了/initrd 目录,要创建一个;然后看启动信息,如果提示有错误。还得改变/initrd目录的 权限;
chmod 1777 /initrd
如果这样一来对新手来说,是有点麻烦,老手看了就明白的;但愿兄弟是老手;
涉及到的内容太多。。。。
I have login "linux rescue" modle.
But there are two mesages "error mounting file system on hda1","You don't have any linux partitions"
sh-2.05b#cd etc ------------"fstab" not found
sh-2.05b#fdisk -l
/dev/hda1 boot
/dev/hda2
/dev/hda3
sh-2.05b#cd etc ----------------"grub.conf" not found and no "boot" direcotry
sh-2.05b#grub-install /dev/hda --------------command not found
So I can not continue doing according to your instruction!!
PLs tell me the resason!! |
|