Linux - Hardware This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
07-16-2006, 09:52 PM
|
#1
|
Member
Registered: Jan 2006
Location: Sri Lanka
Posts: 651
Rep:
|
flash drive dev link changes each time I plug it in
HI
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.
Why is this happenning
Regards
Asanka
Last edited by procfs; 07-16-2006 at 10:17 PM.
|
|
|
07-17-2006, 06:06 AM
|
#2
|
Member
Registered: Mar 2006
Location: Ekaterinburg, Russia
Distribution: Debian, Ubuntu
Posts: 709
|
Hello.
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:
Good luck.
|
|
|
07-17-2006, 12:07 PM
|
#3
|
Member
Registered: Mar 2006
Location: Fort McMurray, Canada
Distribution: Gentoo ~amd64
Posts: 163
Rep:
|
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.
|
|
|
07-17-2006, 09:13 PM
|
#4
|
Member
Registered: Jan 2006
Location: Sri Lanka
Posts: 651
Original Poster
Rep:
|
HI thanks for the replies
yes I do unmount it before I remove the drive, and I am using only one drive and a usb mouse.
Even tho the mouse remains on the same pore each time I plug in the flash I get a different /dev association
Best Regards
Asanka
|
|
|
07-18-2006, 07:58 AM
|
#5
|
Member
Registered: Jan 2003
Location: Northam, W.A., Australia
Distribution: Gentoo ~x86
Posts: 321
Rep:
|
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.
|
|
|
07-19-2006, 05:24 AM
|
#6
|
Member
Registered: Jan 2006
Location: Sri Lanka
Posts: 651
Original Poster
Rep:
|
Thanks guys
Regards
Asanka
|
|
|
07-30-2006, 11:41 PM
|
#7
|
Member
Registered: Jan 2006
Location: Sri Lanka
Posts: 651
Original Poster
Rep:
|
Hay guys
This is not the same issue
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
Thanks
Regards
Asanka
|
|
|
All times are GMT -5. The time now is 03:03 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|