[NTLUG:Discuss] USB hard drive question

Richard ntlug at rain4us.net
Tue Jun 10 17:50:33 CDT 2008


Fred James wrote:
> All
> I have two external USB hard drives on my Linux box, they never get 
> unplugged, and they are listed in fstab.  But on boot they don't always 
> come back as expected 
Ah yes.  You could try exploring LVM (logical volume management) so that 
you can refer to them by name no matter the order in which your system 
sees them.
[fstab entry with a volume group name of 'usbdisk' and a logical volume 
name of driveone]
/dev/usbdisk/driveone    /usbmount/driveone        reiserfs  defaults  1 2


One could also use a volume label, such as found in the EXT3 file 
system, to mount a drive via label

[fstab entry]
LABEL=drivetwo   /usbmount/drivetwo       ext3    defaults        1       2


-- 
Richard



More information about the Discuss mailing list