LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > 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
  Search this Thread
Old 07-16-2006, 09:52 PM   #1
procfs
Member
 
Registered: Jan 2006
Location: Sri Lanka
Posts: 651

Rep: Reputation: 34
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.
 
Old 07-17-2006, 06:06 AM   #2
firstfire
Member
 
Registered: Mar 2006
Location: Ekaterinburg, Russia
Distribution: Debian, Ubuntu
Posts: 709

Rep: Reputation: 428Reputation: 428Reputation: 428Reputation: 428Reputation: 428
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.
 
Old 07-17-2006, 12:07 PM   #3
burninGpi
Member
 
Registered: Mar 2006
Location: Fort McMurray, Canada
Distribution: Gentoo ~amd64
Posts: 163

Rep: Reputation: 30
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.
 
Old 07-17-2006, 09:13 PM   #4
procfs
Member
 
Registered: Jan 2006
Location: Sri Lanka
Posts: 651

Original Poster
Rep: Reputation: 34
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
 
Old 07-18-2006, 07:58 AM   #5
LSD
Member
 
Registered: Jan 2003
Location: Northam, W.A., Australia
Distribution: Gentoo ~x86
Posts: 321

Rep: Reputation: 31
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.
 
Old 07-19-2006, 05:24 AM   #6
procfs
Member
 
Registered: Jan 2006
Location: Sri Lanka
Posts: 651

Original Poster
Rep: Reputation: 34
Thanks guys

Regards

Asanka
 
Old 07-30-2006, 11:41 PM   #7
procfs
Member
 
Registered: Jan 2006
Location: Sri Lanka
Posts: 651

Original Poster
Rep: Reputation: 34
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 02:16 AM
No keyboard when plug USB flash drive leosgb Linux - Hardware 0 08-17-2005 09:04 PM
usb flash drive: no /dev entry zarg Slackware 3 09-21-2004 03:39 PM
USB flash drive not ready for a LONG time m_yates Debian 0 09-13-2004 10:27 AM
Problems with sound, when playing flash files. Flash plug-in installed. Mistreated Linux - Software 2 09-02-2004 02:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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

Main Menu
Advertisement
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
Twitter: @linuxquestions
Open Source Consulting | Domain Registration