LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.

Notices


Reply
  Search this Thread
Old 09-10-2004, 07:44 AM   #1
cj12345
LQ Newbie
 
Registered: Sep 2004
Location: cambridge, england
Distribution: suse, mandrake
Posts: 10

Rep: Reputation: 0
suse 9.1 device mapping for usb drives


I use two usb devices regularly: a pen drive and a removeable hdd. Trying to get these working nicely under Suse 9.1 pro is really irritating me.

First off, I've done all the things mentioned by Vlad (in thread # 207303 - thanks) and it all works ... except for one thing.

I've discovered that the only thing that seems to control which /dev/sd?1 entry a usb device gets mapped is the ORDER in which it is plugged in. The first device I plug in is always sda1, the 2nd sdb1 etc. Irrespective of which slot I plug them in to, or which device I plug in first.

This is a real pain. I would like it so that I know that if I plug in my removeable hdd, then it will always be (say) /dev/sdb1, irrespective of whether or not I've previously plugged in a ped drive since rebooting. If that isnt possible, next bvest would be to know that a given usb slot on my PC will map to a given /dev entry .

Does anyone know of a better solution to this?

At present what I do is:
1. Plug device into slot
2. tail /var/log/messages to see which /dev/sd?1 device itse decided to appear as
3. mount that device


Incidentally - and I dont know whether this is related - but when I unplug the (unmounted) usb storage device, I always get a log message like this:

/etc/hotplug/usb.agent[6437]: need a device for this command


--
I'm running:
kernel 2.6.4-52-default
hotplug-0.44-32.22
hotplugctl-0.08-256
km_submount-0.9-33
submount-0.9-33.6
 
Old 04-11-2005, 02:18 PM   #2
sacerdoti
LQ Newbie
 
Registered: Apr 2005
Posts: 2

Rep: Reputation: 0
usb-storage device mapping

I am having the same issues...

I need to look at /proc/partitions and answer the question: "is this device a USB drive?" My program cannot interpret the lines in syslog.

There must be a way in linux 2.6 to determine what /dev/sdxx device is mapped to a given usb-storage drive, but the answer is not (yet) obvious.

I would expect it in /proc/bus/usb/devices somewhere, but that is not the case.

-Federico
 
  


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
SuSE 10.0 CD/DVD device mapping problem! david.dales Linux - Hardware 6 11-15-2005 02:13 AM
mounting USB pen drives by device id ProtoformX Slackware 1 10-04-2005 07:52 AM
mapping network drives foliva SUSE / openSUSE 2 09-20-2005 02:02 PM
Two USB flash drives keep swapping device files pwalden Linux - General 8 12-30-2004 03:48 PM
physical scsi channel mapping to scsiX device node mapping, how to configure manually drthornt Linux - Hardware 3 02-09-2003 11:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions

All times are GMT -5. The time now is 08:49 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