View Single Post
  #5   (View Single Post)  
Old 21st July 2011
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,983
Default

If you boot in single-user mode, no mounts will be made, though the root partition will be available read only (it will be the "a" partition on booted device, most likely wd0). To boot in single user mode, use "-s" at the boot> prompt.

Mount points vary. Once you reach the shell, issue the following commands (assuming wd0 is the device, and /etc is in the root partition):

# export TERM=vt220
# mount /dev/wd0a /
# cat /etc/fstab

(Look for your /usr partition, this example will assume you see it as /dev/sd0f. Change accordingly.)

# mount /dev/wd0f /usr

----

From here, you can use vi(1) or mg(1) or sed(1) to edit the file.
Reply With Quote