[Techtalk] fstab options for removable USB disk drive

Anthony de Boer linuxchix at lists.leftmind.net
Sat Jul 19 01:04:48 UTC 2008


Deborah Gronke Bennett wrote:
> /dev/sdb1       /media/usbmedia         ext3   defaults 0 2

/dev/sdb1       /media/usbmedia         auto   noauto,user   0 0

"auto" instead of "ext3" lets you mount other types of USB device (most
of them default to the vfat filesystem); it does its best to autodetect
the type of filesystem.

"noauto" says not to attempt to mount on boot, which is good if the device
isn't there.  That last "0" is important for that too, so it doesn't try
to fsck the device on boot.

"user" lets you mount and unmount as an ordinary user, not requiring you
to become root first.

-- 
Anthony de Boer


More information about the Techtalk mailing list