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。
阅读更多
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

加入CSDN,享受更精准的内容推荐,与500万程序员共同成长!
关闭
关闭