荔园在线

荔园之美,在春之萌芽,在夏之绽放,在秋之收获,在冬之沉淀

[回到开始] [上一篇][下一篇]


发信人: cycker (损失惨重), 信区: Linux
标  题: Re: 如何将修复模式中将/所mount的分区设为可以读写的
发信站: 荔园晨风BBS站 (2004年10月31日21:20:55 星期天), 转信

找到了下面一份资料,说用 mount -u / 可以remount,但这个可能是
其它unix版本的mount, linux上(至少redhat linux)上的mount是用
mount -o remount /
来重mount一个挂载点的。

----
http://lantech.geekvenue.net/chucktips/jason/chuck/985313005/index_html

If you make a mistake editing your /etc/fstab or /etc/rc.conf files,
your system may boot to single user mode - surprise! When this happens,
 FreeBSD only mounts the root (/) filesystem, and it mounts it in read
only mode.

To edit the files and fix the problem, you need to re-mount the root
filesystem in read/write mode.

To do this use the -u flag with the mount command.

mount -u /

You will now be able to edit any files in /etc - fstab, rc.conf and
the like, save them to the disk and reboot the system back to multi-user
 mode.


【 在 cycker (想回到大一) 的大作中提到: 】
因为改/etc/fstab改错了,要改回来,但修复模式中,/是不可以读写的,
怎么办?
有一个办法就是挂到另一台机中去改,可是这样太麻烦了
--

二级代理资源:http://192.168.80.110/sproxy/secondproxy_list.php


--
※ 修改:·cycker 於 10月31日21:31:20 修改本文·[FROM: 192.168.80.114]
※ 来源:·荔园晨风BBS站 bbs.szu.edu.cn·[FROM: 192.168.80.114]


[回到开始] [上一篇][下一篇]

荔园在线首页 友情链接:深圳大学 深大招生 荔园晨风BBS S-Term软件 网络书店