On 08/27/10 08:38, Marcus wrote:
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?

mount by the device name rather than fstab...

fsck /dev/sd0a
mount /dev/sd0a /
fsck /dev/sd0d
mount /dev/sd0d /usr  # or whatever your /usr partition is
vi /etc/fstab

or... fsck and mount your root partition, and use 'ed(1)' to edit fstab.

Nick.

Reply via email to