LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices



Reply
 
Search this Thread
Old 12-20-2004, 02:09 PM   #1
Oxyacetylene
Member
 
Registered: Apr 2004
Location: Greensboro, NC, USA
Distribution: Debian
Posts: 134

Rep: Reputation: 15
mount USB devices, sda, manually/statically assign sda?


Is there a way to manually assign what each USB storage device will be recognized as? I have 3 different USB storage devices (USB hard drive, digital camera, USB pen drive) and whichever one I hook up first becomes sda1, second becomes sda2, etc.

I would like to have it set up so that each device always shows up the same so I can mount them in specific locations:

for example: make usb pen drive always sda3, camera sda2, usb hard drive sda1.

How do I set this up?
 
Old 12-20-2004, 02:18 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 65
Take a look at this howto:
http://www.tldp.org/HOWTO/Flash-Memo...6.html#hotplug
 
Old 12-20-2004, 02:59 PM   #3
Oxyacetylene
Member
 
Registered: Apr 2004
Location: Greensboro, NC, USA
Distribution: Debian
Posts: 134

Original Poster
Rep: Reputation: 15
that may work, but I also might hook up two of the same vendor's usb pen drives. Is there another identifier I could use other than the vendor? Is there a serial number for these things?
 
Old 12-20-2004, 03:45 PM   #4
Wells
Member
 
Registered: Nov 2004
Location: Florida, USA
Distribution: Debian, Redhat
Posts: 383

Rep: Reputation: 31
Quote:
Originally posted by Oxyacetylene
that may work, but I also might hook up two of the same vendor's usb pen drives. Is there another identifier I could use other than the vendor? Is there a serial number for these things?
Actually, there is. You can look at it in /proc/scsi/usb-storage-X, where is X is the number of the USB storage device attached (in order, I presume)

The output from mine:

Code:
jka@wombat:/proc/scsi/usb-storage-0$ more 0
   Host scsi0: usb-storage
       Vendor: LEXR PLUG DRIVE?              0
      Product: LEXR PLUG DRIVE?              0
Serial Number:               0405170300003F281
     Protocol: Transparent SCSI
    Transport: Bulk
         GUID: 05dc0080405170300003f281
     Attached: Yes
jka@wombat:/proc/scsi/usb-storage-0$
 
  


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
Mount usb if hard drive is mounted in sda nifflerX Linux - General 1 10-05-2005 03:51 PM
USB-Storage Camera recognized but no /dev/sda nwhite Linux - Hardware 12 04-23-2005 08:33 AM
Firewire disc adds multiple devices to kernel 2.6 (sda, sdb, .. , sdh) mehlkelm Linux - Hardware 2 04-18-2005 09:54 AM
Microadvantage USB Flash drive not creating sda scuzzman Linux - Hardware 8 04-11-2005 05:31 AM
USB and SDA problem adircalam Fedora 0 08-28-2004 04:50 PM


All times are GMT -5. The time now is 07:53 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration