LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] USB stick mount - which device letter/number?

[ILUG] USB stick mount - which device letter/number?

Nils nils at eircom.net
Mon Nov 29 13:59:09 GMT 2004


On Mon, 2004-11-29 at 12:56 +0000, John A. Kinsella wrote:
> Hi.
> I'm sure there is a simple explanation?
> 
> When I mount my usb stick I just enter (as root) 
> mount -t vfat /dev/sdc1 /mnt/flash
> 
> but how do I know which letter/number?
<snip>
kinda going off topic.
If your using udev you can write a rule so that whenever a certain
device is attached you can assign it to /dev/device or to that effect.
Using the serial number of the usbstick the all you have to do is to
edit your fstab and add a entry for 
/dev/usbstick /mnt/usbstick defaults 0 0
a rule that i use is.
The rule would go in /etc/udev/rules.d/
BUS="usb", SYSFS{serial}="2221BABWA14450J0",NAME="%k",SYMLINK="usbflash"
For more information on writing rules you can go here.
http://www.reactivated.net/udevrules.php
nils





More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell