Page 1 of 1

Question about Harddisk

Posted: 2010/04/09 21:11:59
by chuina
My harddisk :
[code](parted) print

[b]Model: ST380215A (ide)[/b]
Disk /dev/hda: 80.0GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number Start End Size Type File system Flags
1 32.3kB 255MB 255MB primary ext3 boot
2 255MB 41.8GB 41.5GB extended
5 255MB 10.3GB 10.0GB logical ext3
6 10.3GB 40.3GB 30.0GB logical ext3
7 40.3GB 41.8GB 1538MB logical linux-swap
3 41.8GB 52.3GB 10.5GB primary ext3
4 52.3GB 80.0GB 27.7GB primary ext3 [/code]

Detects as /dev/[b]hda[/b] in CentOS5.4/RHEL5 and as /dev/[b]sda[/b] in Ubuntu9.10/Fedora12.
Why they (hda and sda) aren't same in all OS ?

Question about Harddisk

Posted: 2010/04/09 23:09:43
by WhatsHisName
Once upon a time, a long, long time ago...

...the kernel developers replaced the IDE subsystem with libata.

Thereafter, IDE hard drives were treated as SCSI devices, hence the naming change.

...and we all lived happily ever after. :-D

Basically, CentOS 5 uses the "old" kernel and Ubuntu/Fedora use the "new" kernel.

Don't have a good reference handy, but the [url=]upgrade notes for the Fedora 6 to 7 transition[/url] give a reasonable explanation.

In many respects, CentOS 5 is similar to Fedora 6.

Re: Question about Harddisk

Posted: 2010/04/10 00:43:22
by toracat
Another reference may be [url=]here[/url] with some explanations.

Re: Question about Harddisk

Posted: 2010/04/10 06:26:20
by chuina
Then in [i]CentOS[/i] 6 it will detect as [b]sda[/b]
Thanks guys.