Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Hardware
User Name
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?


  Search this Thread
Old 01-17-2007, 11:44 AM   #1
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
LQ Guru
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 62
Not sure of a way to do it exactly. Hotplug may work but not sure.

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.



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 > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 01:06 PM.

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