LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-29-2003, 08:34 AM   #1
Tunc
LQ Newbie
 
Registered: Dec 2003
Location: Singapore
Distribution: Ubuntu
Posts: 2

Rep: Reputation: 0
Question Order and /dev/name of multiple firewire hdds


I'm very much a Linux newbie, trying to move away from Win2k.

I have setup Debian on my computer using Knoppix 3.2 and the hd-install script. Overall things worked out
quite well, but I still have a few problems. Here is the one topping my list.

I have two external firewire disk enclosures, one with a vfat disk, the other one with a ntfs drive and a cd
burner. I got all of this to work by editing /etc/modules to load what was needed, using the rescan-scsi-bus shell to map the devices to /dev/sda1 and /dev/sdb1 (I didn't worry about the burner yet, just focusing on the hard disks for now)
I am able to mount the devices ... but I am trying to automate it (at login, system boot, whatever)
OK, so heres the problem.
I have no way to predict which of the hdds is getting picked up as /dev/sda1 and which one gets /dev/sdb1.
It seems to be random, or decided by the order I switched the devices on. This makes mounting the devices or creating a /etc/fstab entry difficult. What I am aiming for is to get the devices mounted in a predictable way. In Win2k I think the os uses some sort of intelligence to make sure firewire disks always end up mapped as the drive letter assigned to them...
Can you suggest a way to get similar behavior out of linux?
Thanks
 
Old 05-12-2004, 12:29 AM   #2
Tunc
LQ Newbie
 
Registered: Dec 2003
Location: Singapore
Distribution: Ubuntu
Posts: 2

Original Poster
Rep: Reputation: 0
The solution to this problem is to use the scsidev utility.
There is a debian package called "scsitools" and it includes both rescan-scsi-bus.sh (to detect added devices) and scsidev (to build device names with predictable names using the /etc/scsi.alias file).
 
  


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
forcing the order of /dev/sda /dev/sdb etc.. jdaniel Linux - Software 5 05-23-2006 08:41 AM
i need to chmod 777 /dev/lp0 in order to print... haimeltjnfg Linux - Hardware 1 04-18-2005 10:13 PM
New kernel drivers Shifting /dev/hdx order omegaworks Linux - Hardware 1 09-06-2004 07:19 AM
dual booting multiple distros with 2 hdds xiato Linux - Newbie 9 05-05-2004 10:11 PM
is there a way to mount knoppix on multiple hdds? bosewicht Linux - Newbie 1 11-04-2003 11:06 PM


All times are GMT -5. The time now is 12:04 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration