[NTLUG:Discuss] Question about USB memory stick to mount properly.

Kenneth Loafman kenneth at loafman.com
Tue Feb 13 14:14:37 CST 2007


Choi Jason wrote:
> I have a problem to mount USB memory stick.
> I found some memory stick was successfully mounted but others were not
> mounted successfully.

I think the group covered how to reformat these, and/or how to find the 
correct drivers for these.

> How can application know the inserted memory stick is recognized as "sd0" 
> or "sd1" by Kernel.

This is a problem with any removable device.  I solve it by putting a 
disk label on the memory sticks, then setting up the /etc/fstab file to 
have something like:

LABEL=home      /home           ext3    defaults        0       2
LABEL=data      /data           ext3    defaults        0       2
LABEL=datb      /datb           ext3    defaults        0       2

In the situation above, only one is internal, the other two are USB hard 
drives.  This way I don't have to remember which one to insert first if 
I've had them out of the system.

One thing that works on Dapper is that the /dev/sdN *seems* to track 
with the USB slot.  I can't verify if it should or not.

...Ken




More information about the Discuss mailing list