LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 833|回复: 2

rc.conf改错了~启动不了,怎么办?

[复制链接]
发表于 2004-6-18 09:08:20 | 显示全部楼层 |阅读模式
我把rc.conf改错了,启动后没有登陆提示了,可以ls,但没root的权限,该不回来了,晕啊~~
发表于 2004-6-18 11:40:12 | 显示全部楼层
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.
 楼主| 发表于 2004-6-19 15:16:35 | 显示全部楼层
谢谢~启动时也有提示的~当时太急没注意到
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表