关闭

fstab的修复 不需要disk的方法

309人阅读 评论(0) 收藏 举报
 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。
0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场