红联Linux门户
Linux帮助

求救我的FSTAB里面的文件内容给我删了

发布时间:2008-01-05 14:49:06来源:红联作者:switchport
我的FSTAB里面的文件内容给我删了,但我有备份我的FSTAB文件,但进到
(Repar filesystem)#那里只有只读权限,我CPOY过去他不给,那我怎样
才可以修复FSTAB文件啊???
文章评论

共有 3 条评论

  1. switchport 于 2008-01-05 17:13:18发表:

    问题解决了 谢谢

  2. switchport 于 2008-01-05 16:58:15发表:

    谢谢nguin 是写到了 但保全了重启就没有保全了 ,结果又进不到去

  3. nguin 于 2008-01-05 16:18:19发表:

    fstab的修复 不需要disk的方法
    1. Boot up your computer, select the line in GRUB that should boot Linux, but don't boot it.
    2. Instead, press the 'e' key to enter edit mode. Go to the line that begins with "kernel", edit it, and add " init=/bin/sh" (don't ignore the space before init) to the end of that line. The keys necessary to do that are explained by GRUB.
    3. Go ahead and boot.
    4. When the system is ready for input, enter these commands (end each command with ENTER). If any command returns an error, abort and report back here.

    Code:

    export PATH=/bin:/sbin:/usr/bin
    mount -n -o remount,rw /
    vi /etc/fstab
    mount -n -o remount,ro /
    sync
    reboot -fw

    在作quota的时候把fstab改坏了,要求或者是用ctr+d或者输入passwd。进入shell了又报fstab文件是readonly的,于是在网上搜索了很多方法,这个方法可以用的,我的linux是fc6。

    有光盘恢复安装是最好的了