LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Hardware
User Name
Password
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

Reply
 
Thread Tools
Old 07-16-2006, 10:52 PM   #1
procfs
Member
 
Registered: Jan 2006
Location: Sri Lanka
Posts: 321
Thanked: 0
flash drive dev link changes each time I plug it in


[Log in to get rid of this advertisement]
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 11:17 PM..
procfs is offline     Reply With Quote
Old 07-17-2006, 07:06 AM   #2
firstfire
Member
 
Registered: Mar 2006
Location: Ekaterinburg, Russia
Distribution: Debian
Posts: 80
Thanked: 1
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:
Code:
umount /dev/sda
Good luck.
firstfire is offline     Reply With Quote
Old 07-17-2006, 01:07 PM   #3
burninGpi
Member
 
Registered: Mar 2006
Location: Fort McMurray, Canada
Distribution: Puppy 2.14 (x86), OSX leopard (ppp64 && x86)
Posts: 160
Thanked: 0
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.
burninGpi is offline     Reply With Quote
Old 07-17-2006, 10:13 PM   #4
procfs
Member
 
Registered: Jan 2006
Location: Sri Lanka
Posts: 321
Thanked: 0

Original Poster
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
procfs is offline     Reply With Quote
Old 07-18-2006, 08:58 AM   #5
LSD
Member
 
Registered: Jan 2003
Location: Northam, W.A., Australia
Distribution: Gentoo ~x86
Posts: 321
Thanked: 0
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.
LSD is offline     Reply With Quote
Old 07-19-2006, 06:24 AM   #6
procfs
Member
 
Registered: Jan 2006
Location: Sri Lanka
Posts: 321
Thanked: 0

Original Poster
Thanks guys

Regards

Asanka
procfs is offline     Reply With Quote
Old 07-31-2006, 12:41 AM   #7
procfs
Member
 
Registered: Jan 2006
Location: Sri Lanka
Posts: 321
Thanked: 0

Original Poster
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
procfs is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: EDGE Tech Corp Announces Portable Flash Drive With Muscle - the New 8GB DiskGO!(TM) Now Available; Swap and Go With This Secure Thumb-Sized Flash Drive LXer Syndicated Linux News 0 12-14-2005 03:16 AM
No keyboard when plug USB flash drive leosgb Linux - Hardware 0 08-17-2005 10:04 PM
usb flash drive: no /dev entry zarg Slackware 3 09-21-2004 04:39 PM
USB flash drive not ready for a LONG time m_yates Debian 0 09-13-2004 11:27 AM
Problems with sound, when playing flash files. Flash plug-in installed. Mistreated Linux - Software 2 09-02-2004 03:13 PM


All times are GMT -5. The time now is 08:02 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration