Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email firstname.lastname@example.org
From: Nick Holland (nickholland-consulting.net)
Date: Fri Aug 27 2010 - 09:19:33 CDT
On 08/27/10 08:38, Marcus wrote:
> how to fix fstab in single user mode for bootable "Live" USB drive
> 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.
> how to mount root / writable and active vi editor?
mount by the device name rather than fstab...
mount /dev/sd0a /
mount /dev/sd0d /usr # or whatever your /usr partition is
or... fsck and mount your root partition, and use 'ed(1)' to edit fstab.