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 03-10-2005, 03:55 AM   #1
learnfast
Member
 
Registered: Mar 2005
Location: berlin
Distribution: Redhat 9, Fedora 3
Posts: 70

Rep: Reputation: 15
trying to understand hda1, hdf, sda...


1. I was just learning about hda1, hdb, hdc, etc. Looking back at the screen shots of a Fedora 2 installation that I did, I see that the hard drive partitions were:
hdf1
hdf2
hdf5
hdf6
hdf7
screenshots: http://www.tanguay.at/linuxJournal.php5

Where did hda, hdb, hdc, hdd, and hde go? I KNOW I didn't have 5 harddrives on that system (!). Why did it start at hdf?

Also, why was hd3 and hd4 skipped?


2. Now I'm installing Fedora 3 in WMWare on Windows and on the portion "Disk Setup" I noticed that my virtual hard drives are:

/dev/sda1
/dev/sda2

Why are the virtual drives SCSI? Does that have any consequences?


Can anyone shed some clarity on this?
My redhat 9 book just says that there are hda, hdb, hdc, hdd...
Any links with good explanations of how hda, hdb, etc. are determined?

Thanks.
 
Old 03-10-2005, 04:13 AM   #2
triaydev
LQ Newbie
 
Registered: Oct 2004
Location: Yucatán, México
Distribution: Mandrake 10.x
Posts: 23

Rep: Reputation: 15
ok... Something i've learned is that every Linux Distribution has its own idea about naming the devices, even when they change from version to version, this is specially true when a big version changes occurs like going from RedHat to Fedora.
Beside, u said that you're running Linux inside a VMware box. This might be the cause for first issue.

Now, if your discs are named sda, sdb and so on, as SCSI, it might be because you're using Seral ATA disk (SATA). These are recognized like SCSI because they can be put together in an RAID array.

I hope this is helpful
triaydev
 
Old 03-10-2005, 04:19 AM   #3
enemorales
Member
 
Registered: Jul 2004
Location: Santiago, Chile
Distribution: Ubuntu
Posts: 410

Rep: Reputation: 31
About the jump in the numbers, I think that hdx1, hdx2, hdx3 and hdx4 always refer to primary partitions, while hdx5, hdx6... are reserved to logical ones (created inside an extended partition).
 
Old 03-10-2005, 04:23 AM   #4
Poetics
Senior Member
 
Registered: Jun 2003
Location: California
Distribution: Slackware
Posts: 1,181

Rep: Reputation: 49
Correct, enemorales. If his hdf2 partition were the extended partition, and the next two partitions were created therein (Windows usually only creates 1 Primary before creating extended and logical partitions, whereas linux recognizes up to 4 primaries before going extended), it would skip #s 3 and 4 so you can see exactly what type of partition it was just by its name.
 
Old 03-10-2005, 04:25 AM   #5
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: SuSE, Ubuntu
Posts: 3,513

Rep: Reputation: 58
AFAIK, the naming of the drives comes from their place on the controller. In a normal system, the master drive on the primary controller is called hda, the slave hdb, secondary master hdc, slave hdd and so on. But if you have a mixed system e.g. with P-ATA and S-ATA controllers, this might get confusing.

The numbering of the partitions is easier to explain:
There are 4 possible primary partitions, for which the numbers 1-4 are reserved (even if you do not use them). Logical partitions are numbered 5-... (I don't know how many are possible). The extended partition, where all logical partitions reside in is always a primary partition. The numbering is determined by their order in the partition table, not by their physical location (that means that hda3 can be before hda2 if hda3 existed already when hda2 was created).
 
Old 03-10-2005, 04:25 AM   #6
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
Normaly the first ide channel gets hda and hdb. hda is the master device and hdb is slave. This goes on for all other ide channnels (ide2 = hdc, hdd).

The reason why you did not have hdf3 and hdf4 is related to the partitioning of the drive. On every harddisk you can create partitions. Four primary and depedning up to unlimited virtual.
So if you miss hdf3 and hdf4, i would say you have two primary partitins and the rest starting from hdf5 are virtual ones.

A little extra note on the scsi thing. As far as i know linux treats every drive as a scsi device on first sight. So this is no problem at all.
 
  


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
Diskdrake appears not to see over hdd (hde, hdf..) voralle Linux - Software 2 06-23-2005 07:41 PM
no sda? Oholiab Linux - Hardware 7 06-16-2005 12:56 AM
hda? sda? what do i have? nr5 Linux - Newbie 12 02-24-2005 07:50 PM
mount USB devices, sda, manually/statically assign sda? Oxyacetylene Debian 3 12-20-2004 03:45 PM
cfdisk cannot partition /dev/hdf on pci-ctrlr hansdampf Linux - Hardware 2 12-07-2004 09:57 PM


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