geekvenue.net

Welcome to Chucktips Hardware HELP WITH DEAD OS Installing FreeBSD Miscellaneous
 faq
 search
 add article
 cool-stuff
 how-to
 main
 tips


TIP: Mount root read/write
HELP WITH DEAD OS Posted by Jason on Thursday March 22, @06:03PM
from the dept.
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.

<  |  >

 

Related Links
  • Articles on HELP WITH DEAD OS
  • Also by Jason
  • Contact author

    Lilliput Mini USB Computer Monitor

    If you have ever wanted to learn about Cisco Routers, check out my new book "Cisco Routers for the Small Business" - it's Cisco CLI for the Regular Guy!

  • Sponsors

    The Fine Print: The following comments are owned by whoever posted them.
    ( Add a Reply )

    Re: TIP: Mount root read/write
    by Jason on Monday September 17, @04:53PM
    Also worth mentioning is that you will need to mount the other filesystems in order to have an editor available to you.

    The command: mount -t ufs -a, will attempt to mount all the ufs filesystems in your /etc/fstab file- (root, /var and /usr) on a typical installation.

    mount -t ufs -a

    [ Add a Reply to this ]
    The Fine Print: The following comments are owned by whoever posted them.
    ( Article Reply )

    "You never know how many friends you have until you own a Condo on the beach." -- Jason's Postulate

    Powered by Zope  Powered by Apache  Squishdot Powered
    All trademarks and copyrights on this page are owned by their respective companies. Comments are owned by the Poster. The Rest ©2001 Jason Neumann.
    [ main | post article | search ]