OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
how to fix fstab in single user mode for bootable "Live" USB drive

From: Marcus (f5bpytgmail.com)
Date: Fri Aug 27 2010 - 07:38:57 CDT


how to fix fstab in single user mode for bootable "Live" USB drive

http://www.openbsd.org/faq/faq14.html#flashmemLive
says:
If your target machine has an ahci(4) or SCSI interface, you will
probably find your USB drive's identifier changing. Having multiple
versions of your /etc/fstab file may make this easier to "fix" (in
single user mode).

Install OpenBSD to USB drive in a notbook. the usb drive is
recognized as "sd1"

Now put the USB drive into another PC an boot from USB. the usb dirve
is recognized as "sd0".

in the single user mode.
"fsck -p / && mount -uw /" not work
"fsck -p /usr && mount /usr" not work
"vi /etc/fstab" not work.

question:
how to mount root / writable and active vi editor?

thanks.