荔园在线

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

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


发信人: domino (扎根深耕), 信区: Linux
标  题: Re: 怎么恢复rc.conf?? (FreeBSD的)
发信站: 荔园晨风BBS站 (Tue Apr  2 23:09:19 2002), 转信


from:        http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/misc.html

10.5. I made a mistake in rc.conf, or another startup file, and now I
cannot edit it because the filesystem is read-only. What should I do?

When you get the prompt to enter the shell pathname, simply press ENTER,
 and run mount / to re-mount the root filesystem in read/write mode. You
 may also need to run mount -a -t ufs to mount the filesystem where your
 favourite editor is defined. If your favourite editor is on a network
filesystem, you will need to either configure the network manually
before you can mount network filesystems, or use an editor which resides
 on a local filesystem, such as ed(1).

If you intend to use a full screen editor such as vi(1) or emacs(1), you
 may also need to run export TERM=cons25 so that these editors can
load the correct data from the termcap(5) database.

Once you have performed these steps, you can edit /etc/rc.conf as you
usually would to fix the syntax error. The error message displayed
immediately after the kernel boot messages should tell you the number of
 the line in the file which is at fault.

【 在 jjksam (Global Variable) 的大作中提到: 】
: 不知道怎么弄....把rc.conf弄乱了..现在恢复不了.
: 进入那个系统后只是readonly file system...没法改rc.conf...怎么办?
: 紧急啊!!


--

                                                天
等我喘过这口气 ,                               道
                                                酬
        看我怎样一口一口把你咬死 。             勤

※ 来源:·荔园晨风BBS站 bbs.szu.edu.cn·[FROM: 192.168.0.181]


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

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