LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 01-17-2007, 11:44 AM   #1
cb8100
LQ Newbie
 
Registered: Feb 2004
Location: Monterey, CA USA
Distribution: Slackware
Posts: 20

Rep: Reputation: 0
Force USB drive to specific /dev/sd? without udev


Hi, All --

I've got an external USB hard drive that I'd like to force to enumerate as /dev/sdb (/dev/sdb1, it only has one partition).

I'm running Slackware 11 with the 2.4 kernel, so I don't have access to udev which seems to be the preferred method of doing something like this.

Upgrading to 2.6 is not an option right now since this is my work PC.

Is there a way to force my drive to enumerate at a specific /dev/sd? point without doing the upgrade to 2.6 and using udev?
 
Old 01-17-2007, 05:51 PM   #2
Brian1
Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 61
Not sure of a way to do it exactly. Hotplug may work but not sure.
http://www.qsl.net/n0nb/linux/debianhotplug.html

Here is a thought but will require some scripting similiar to the one above. One could fake it to always mount to the same directory no matter the order it is inserted. No matter which device is plugged in first it will be /dev/sda. Now using hotplug to pull the ID of the device you can use that to mount that device to a specific mount point. I think that is what that script maybe acomplishing.

Hard to explain.
device 1 to mount to /mnt/usb1
device 2 to mount to /mnt/usb2

Now if you insert device 2 first it would mount to /mnt/usb1

If hotplug sees the device and identifies and knows to always mount it to proper directory then when
device 2 is inserted first then it mounts to /mnt/usb2

Not sure if this is actally what you are after.

Brian
 
  


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
USB drive... /dev/sda1 doesn't show unless I try mounting /dev/sda as vfat finite Linux - Hardware 8 03-10-2009 12:52 AM
/dev/cdrom1,/dev/cdrw1 symlinks made at each boot by udev which i dont want deepclutch Linux - Software 2 01-04-2007 07:39 AM
why has udev swapped /dev/hdc and /dev/hdd ? chaosbear Linux - Hardware 2 08-09-2006 03:23 AM
Force a USB device to use a specific /dev/ttyUSBX garnser Linux - Software 4 02-10-2006 06:28 AM
how can usb-storage device attach to specific /dev/sd* xxie Linux - Hardware 0 05-25-2004 10:14 PM


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

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