flash drive dev link changes each time I plug it in
Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I am using Redhat 3 with update 7 and each time I plug in a flash drive I get a different /dev/ link like /dev/sda, /dev/sdb, so on. I am not using any thing fancy just a standard machine with IED harddisk.
I think your problem is 'umount'. If you do not unmount flashcard, then, on next time you will plug it in, device will be associated with differ file in /dev directory, because /dev/sda is busy. So just unmount it:
It will be different if you have more than one flash drive. For example, if you plug one flash drive in, then plug yours in, yours will be sdb. The first one will be sda.
I'm not familiar with the latest versions of Red Hat but if they include udev for device node management you can set up a udev rule that'll ensure the flash drive will get the same dev node each time you plug it in. I'm fuzzy on the details but google should set you up with a few good tutorials on how to go about setting it all up.
I have a 128 M kingston flash drive and this is formated using fat32. When I plug this in to a linux (any) box he recodnice this as /dev/sdb not as /dev/sdb1 or 2 etc
I can mount this as mount /dev/sdb /mnt/usb
And access the drive there is no problem. But I want to know why it happens only with my drive
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.