Testing changes to fstab
Robert Moskowitz
rgm at htt-consult.com
Thu Dec 16 01:29:33 UTC 2010
A long time ago I got burned with a type in /etc/fstab and back then I
was told how to test out changes to fstab.
Well I just added my USB drive to fstab and want to make sure I got it
right. The line I added is:
/dev/sdb1 /media/usbdrive ext4 defaults 1 2
I figure this out from the fstab man page and that the following works:
mount /dev/sdb1 /media/usbdrive
But I want to test first before I reboot. BTW, the messages I now get
for this drive during boot are:
Dec 15 19:56:06 homebase kernel: usb 1-2: New USB device found,
idVendor=0bc2, idProduct=3300
Dec 15 19:56:06 homebase kernel: usb 1-2: New USB device strings: Mfr=1,
Product=2, SerialNumber=3
Dec 15 19:56:06 homebase kernel: usb 1-2: Product: Desktop
Dec 15 19:56:06 homebase kernel: usb 1-2: Manufacturer: Seagate
Dec 15 19:56:06 homebase kernel: usb 1-2: SerialNumber: 2GHJTCB4
Dec 15 19:56:06 homebase kernel: usb 1-2: configuration #1 chosen from 1
choice
Oh, and I used e2label to label the partition the same as its serial #).
More information about the users
mailing list