How to update fstab (or other) in Single User (read only fs)

Niclas Zeising niclas.zeising at gmail.com
Tue Feb 6 10:42:46 UTC 2007


On 2/6/07, DSA - JCR <juancr at dsa.es> wrote:
> Hi all
>
> FreeBSD 6.2 i386
>
> I need to edit fstab to delete a geom mirror dev in order to boot my PC
> and I can´t because when my computer boots find a problem in fstab
> (because geom mirror device not ok) and then go to Single User mode.
>
> In this mode I can´t edit fstab, because there is not editor working (I´ve
> tried ee, vi.. all says "fs is readonly")
>
> How can I do this? I think there must be a way to do it, isn't it?
>
> thanks in advance
>
> Juan Coruña
> Desarrollo de Software Atlantico
>
>
>
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
>


You have to remount / rw, try mount -uw / from the command line prompt
you get when you are in single user mode, then use vi /etc/fstab or
/rescue/vi /etc/fstab if the regular vi won't work.
HTH!
//Niclas
--


More information about the freebsd-questions mailing list