LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-01-2002, 10:20 PM   #1
JoeLinux
Member
 
Registered: Dec 2001
Location: Marietta
Distribution: Slackware 8.0
Posts: 95

Rep: Reputation: 15
Exclamation Devfs naming - quick question.


Ok, I decided to download and try ROCK Linux (good reviews on their site..but, that's THEIR site). Anyway, I realize that

/dev/hda = /dev/ide/host0/bus0/target0/lun0/partx

That KINDA makes sense. My questions are:

A.) What is host0? Since bus0 is Primary, and bus1 is Secondary, that comprises both IDE connectors. So, it host0 the entire IDE system? As in, if I had 2 PCI-ATA100 Controller cards, one would be host0, and one would be host1? Is that how it works? If so, I don't really get why i have host0 (2 built in IDE) and host2 (I presume my RAID controller, but why not host1)?

B.) lun0? What the hell is that? Part makes sense. It's the partitions. That obvious. But, I would think that once you got to /bus0/target0, the computer would know enough to access the partitions. What is lun0?

Last edited by JoeLinux; 04-01-2002 at 10:21 PM.
 
Old 04-02-2002, 02:09 AM   #2
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 47
Well it's divided into four sections: controller, bus, target and unit.

For scsi drives that would be:
controller = host adapter
bus = scsi channel
target = scsi id
unit = logical unit number

For ide drives that would be:
bus = primary/secondary
target = master/slave

Originally the naming scheme is for scsi drives but because they didn't want to make a difference they made the ide kind of fit onto the same numbering scheme. The lun0 which would be the unit number is not used for ide drives so it would always be zero.
I'm not really sure why it would be host2 for your raid controller. But I assume host1 is probably reserved for something else already which you just aren't using. So it gets assigned host2 instead.

Hope that helps a bit.
 
Old 04-02-2002, 03:20 PM   #3
JoeLinux
Member
 
Registered: Dec 2001
Location: Marietta
Distribution: Slackware 8.0
Posts: 95

Original Poster
Rep: Reputation: 15
Question Hmm

Does anyone know why my RAID controller got host2 instead of host1?
 
Old 04-03-2002, 02:46 AM   #4
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 47
Are you maybe using ide-scsi for any of your cdwriters or any other devices? The virtual host ide-scsi could be taking up host1 causing your controller card to pick host2.

You can change the order in which it probes scsihosts but I don't know if there is anything similar for ide controllers. Maybe this document will help you get closer to your answer
http://www.atnf.csiro.au/people/rgoo...ocs/devfs.html
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ProFTPd and naming Quick Question Kedelfor Linux - Software 1 08-19-2004 02:01 PM
mail server the naming naming convention problem kashan Linux - Newbie 0 07-16-2004 02:08 PM
A small question in naming convention mnguyen Linux - Software 1 04-17-2004 03:14 AM
samba smb.config question (quick question) TheDOGG Linux - Networking 1 03-02-2004 07:19 AM
To devfs, or not devfs - advice please JamesM Linux - General 7 08-13-2003 05:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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