荔园在线
荔园之美,在春之萌芽,在夏之绽放,在秋之收获,在冬之沉淀
[回到开始]
[上一篇][下一篇]
发信人: zzt (我命由我不由天), 信区: Linux
标 题: fstab 设错了无法开机怎麽办
发信站: BBS 荔园晨风站 (Sat Sep 4 13:44:16 1999), 转信
发信人: shuo@BBS.me.nctu.edu.tw (小硕硕), 看板: bsd
标 题: Re: fstab 的设定
发信站: 国立交通大学机械系 News Server (Mon Mar 24 23:52:41 1997)
转信站: star!news.ee.nthu!news.cis.nctu!news-peer.nctu!news.nctu!spring!aidebb
Ching-tung Huang (cthuang@UUserv.Net.tw) 提到:
: 提供大家一个经验谈。
: 两天前, 设定了我们的阳光沙滩建中分站的 FreeBSD。
: 但是在设 quota 时, 不小心把 fstab 写错了。写成了
: ... ufs,usrquota rw 1 1
: 造成开机会出错, 因为格式错误, 字也写错。
: 开机时 / 还是 ro 的呢。後来紧急做了一片开机片,
: 进 shell, mount /, 然後才能修改 fstab 档案...
: 经过修改後为
: ... ufs rw,userquota 1 1
: 才正常。
boot -s
......bala bala ... got into single user mode
enter root password
mount -u / (remount / to read-write, mount -o remount / on SunOS 4.x)
mount -a
xxxooo fix it oooxxx
没事用 fixit 片子会等死人....
PS. part of mount manual page
-u The -u flag indicates that the status of an already mounted file
system should be changed. Any of the options discussed above
(the -o option) may be changed; also a file system can be changed
from read-only to read-write or vice versa. An attempt to change
from read-write to read-only will fail if any files on the
filesystem are currently open for writing unless the -f flag is
also specified. The set of options is determined by first ex-
tracting the options for the file system from the fstab table,
then applying any options specified by the -o argument, and fi-
nally applying the -r or -w option.
--
_ __/| Yen-Shuo Su. (苏彦硕) of National Chiao Tung University
\`o.O' 交通大学机械工程学系87 Mechanical Engineering Department
=(_ _)= 交大机械系 BBS 站 URL: telnet://bbs.me.nctu.edu.tw/
U E-Mail Address: shuo@bbs.me.nctu.edu.tw.
--
日出东方,唯我不败;
天上地下,唯我独尊。
※ 来源:.BBS 荔园晨风站 bbs.szu.edu.cn.[FROM: 192.168.1.144]
[回到开始]
[上一篇][下一篇]
荔园在线首页 友情链接:深圳大学 深大招生 荔园晨风BBS S-Term软件 网络书店