I thought it would be easier for me to mount flash drives automatically if I did the following to fstab:/dev/sd1i /mnt/usb(sd1i is found from sysctl hw.disknames)I rebooted the box with the USB 3.0 flash drive still inserted in the USB 3.0 port.During the boot process, the following errors were detected:/dev/rsd1i: BAD SUPER BLOCK: MAGIC NUMBER WRONG/dev/rsd1i: Unexpected inconsistency: Run fsck_ffs manuallyThe following file system had an unexpected inconsistency: ffs: /dev/rsd1i (/mnt/usb)Automatic file system check failed; help!Enter pathname of shell or RETURN for sh:I checked out the article How to use ed to edit /etc/fstab in single user mode (http://www.openbsdsupport.org/ed_and_fstab.html) which discussed about how to use ed to modify lines but not to delete them.Some help would be much appreciated.
Need to remove a line in fstab on OpenBSD
fstab;openbsd
You don't need to use ed unless you really want to.Once you're at a single-user prompt (just hit Enter at the Enter pathname of shell or RETURN for sh: prompt, do the following:Mount the root filesystem as read-write, then mount the /var and /usr filesystems (this will allow you to run vi or any other editor of your choice)# mount -uw /# mount /var# mount /usrOnce those are mounted, edit /etc/fstab and remove the offending line.Reboot.# rebootYour system should then restart correctly in multi-user mode.