|
OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|||
Remove a line in fstab
I thought it would be easier for me to mount flash drives automatically if I did the following to fstab:
Code:
/dev/sd1i /mnt/usb 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: Code:
/dev/rsd1i: BAD SUPER BLOCK: MAGIC NUMBER WRONG /dev/rsd1i: Unexpected inconsistency: Run fsck_ffs manually The 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: |
|
||||
Hello, and welcome!
You can still use ed(1), just put a "#" -- called a hash or a pound sign -- in the first column of the offending line, with something like Code:
,s;/dev/sd1i /mnt/usb;#;g You could also manually mount the rest of your filesystems in /etc/fstab, including the all-important /usr which contains the rest of the built-in editors in /usr/bin, then export a $TERM environment variable, and use an editor you are more comfortable with such as vi(1) or mg(1). -- OpenBSD will create a virtual disklabel when a disk drive has MBR partitions but no OpenBSD disklabel on the drive. Recognized foreign filesystems in the MBR partition table will be assigned disklabel partitions beginning with "i". Assuming the drive will be assigned to device sd1 when inserted, the fstab entry for a FAT formatted drive drive should look something like this: Code:
/dev/sd1i /mnt/usb msdos rw,noauto 0 0 |
|
|||
Thanks
Quote:
Code:
11,s;/dev/sd1i /mnt/usb;#;g Code:
11,s,11;/dev/sd1i /mnt/usb;#;g Quote:
Code:
export TERM=vt220 Quote:
|
|
|||
Quote:
I managed to remove the offending line by first mounting the relevant partitions using the 16-alphanumeric-string UUIDs to / , /usr and /var Secondly I Code:
export TERM=vt220 Code:
nano /etc/fstab |
Tags |
delete, fstab |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
usbconfig for fstab | bashrules | FreeBSD General | 3 | 6th January 2013 02:05 AM |
Help with some more sensible fstab defaults | maxrussell | FreeBSD General | 4 | 18th July 2009 02:44 PM |
C F Card and fstab | terryd | FreeBSD General | 1 | 3rd December 2008 05:26 PM |
Mounting ext2 in fstab | latorion | FreeBSD General | 3 | 6th August 2008 04:56 PM |
fstab and CD/DVD device | corneliu | FreeBSD General | 7 | 24th May 2008 02:11 AM |