LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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-13-2001, 12:14 AM   #1
kngharv
Member
 
Registered: Nov 2001
Location: China, USA
Distribution: SUN JDS/SUSE 9.1
Posts: 33

Rep: Reputation: 15
how does harddrive gets its device label


In the case of my old Pentium 120 system, I have a IDE system which consist of 3 harddrives:

Primary Master,
Primary Slave,
and
Secondary Slave.

and on my linux box, it assigned to
/dev/hda
/dev/hdb
/dev/hdd

How does Linux assign these device labels? based upon its IDE location?

If, let say, I remove my Primary Slave harddrive,

would my secondary slave HD still being labeled
/dev/hdd

?

This is very important for me cuz I will need to know how to edit /etc/fstab and /etc/lilo.conf after I remove one of the HD.

Same question on SCSI system. Does it uses SCSI ID on the SCSI chain as label?

Thanks in advance
 
Old 12-13-2001, 03:20 AM   #2
taz.devil
Senior Member
 
Registered: Nov 2001
Location: Wa. State
Distribution: Slackware
Posts: 1,261

Rep: Reputation: 45
Here is a thread that will help. Scroll down to Aussie's post. SCSI works the same but uses scd0, scd1 etc... I believe.
 
Old 12-13-2001, 03:44 AM   #3
dorward
Member
 
Registered: Sep 2001
Distribution: Gentoo
Posts: 760

Rep: Reputation: 31
Re: how does harddrive gets its device label

Quote:
Originally posted by kngharv

How does Linux assign these device labels? based upon its IDE location?
Yes

hda - PM
hdb - PS
hdc - SM
hdd - SS

You can go higher with additional IDE devices (e.g. on a RAID controller)
 
Old 12-13-2001, 04:05 AM   #4
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 56
Device naming is coded into the kernel, for hard drives it goes the first drive on the first controler will be called "hda" and so on, partitions are numbered according to the drive they are on, "hda1, hda2" etc.. In windows the drives themselves are hidden and the partitions are called "drives" ie; "C" "D" etc. If you ever do a dual boot you can see all the partitions and drives in linux but in windows you can only see the partitions formatted for windows.
 
  


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
FC2; VFS: Cannot open root device "LABEL=/" or unknown-block(0,0) Starchild Fedora 11 01-18-2006 04:39 AM
VFS: Cannot Open Root Device "Label=/" abefroman Red Hat 4 05-03-2005 10:03 AM
label swap device equinox Linux - General 2 02-17-2005 01:41 AM
Sound issues with USB device, possibly because of Harddrive craigienz Linux - General 1 10-24-2004 06:30 AM
Installing linux on 2nd harddrive(dual boot) windows on seperate harddrive lysol Linux - Software 25 08-03-2004 10:33 AM


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