freebsd 下摆弄启动参数,不小心把 /etc/rc.conf 改错了,怎么办? 每次登录都启动直接执行rc中的内容,然后就跑飞了,这个怎么整是好.

启动后首先使用single mode,可以进入文件系统. 但是直接修改是不行的,它说是readonly file system,需要挂载下才行.

# adjkerntz -i
# mount -u /
# zfs mount -a

然后就可以编辑需要的文件了.

Reference:

Categories: Code

Yu

Ideals are like the stars: we never reach them, but like the mariners of the sea, we chart our course by them.

Leave a Reply

Your email address will not be published. Required fields are marked *