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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
03-10-2005, 02:55 AM
|
#1
|
Member
Registered: Mar 2005
Location: berlin
Distribution: Redhat 9, Fedora 3
Posts: 70
Rep:
|
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.
|
|
|
03-10-2005, 03:13 AM
|
#2
|
LQ Newbie
Registered: Oct 2004
Location: Yucatán, México
Distribution: Mandrake 10.x
Posts: 23
Rep:
|
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

|
|
|
03-10-2005, 03:19 AM
|
#3
|
Member
Registered: Jul 2004
Location: Santiago, Chile
Distribution: Ubuntu
Posts: 410
Rep:
|
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).
|
|
|
03-10-2005, 03:23 AM
|
#4
|
Senior Member
Registered: Jun 2003
Location: California
Distribution: Slackware
Posts: 1,181
Rep:
|
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.
|
|
|
03-10-2005, 03:25 AM
|
#5
|
Senior Member
Registered: Mar 2004
Location: Munich
Distribution: Ubuntu
Posts: 3,517
Rep:
|
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).
|
|
|
03-10-2005, 03:25 AM
|
#6
|
Senior Member
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
|
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.
|
|
|
All times are GMT -5. The time now is 12:46 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|