USB drives and device names
Dan Coutu
coutu at snowy-owl.com
Fri Jan 25 16:57:28 EST 2008
Interesting. I had known about mounting by label but had not thought to
use it for this. Duh. As I recall the fstab entry to do this specifies
the label instead of the device name. This just might work...
Thanks!
Dan
Bruce Dawson wrote:
> You can use 'mount -U' to mount by UUID or 'mount -L' to mount by volume
> label. On newer distributions, it will put them in /media/<volumelabel>.
>
> Dan Coutu wrote:
>
>> On Linux a USB connected hard drive appears as a SCSI device. But the
>> naming of the device seems to 'float' based on who-knows-what criteria.
>>
>> So for example yesterday I saw an USB drive device change from being
>> /dev/std to /dev/stc. Talk about unique! I've seen the letter increment
>> before when you disconnect a drive and reconnect it (the USB connection
>> is what I'm referring to here) but never have I seen it decrement.
>>
>> Is there any kind of algorithm that could be used, perhaps within a
>> shell script, in order to reliably mount a USB drive without fail and
>> without having to guess at the device name?
>>
>> Thanks!
>>
>> Dan
>> _______________________________________________
>> gnhlug-discuss mailing list
>> gnhlug-discuss at mail.gnhlug.org
>> http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/
>>
>>
>
>
>
>
More information about the gnhlug-discuss
mailing list