Question about Harddisk

A 5 star hangout for overworked and underpaid system admins.
Post Reply
chuina
Posts: 355
Joined: 2009/12/11 10:25:56

Question about Harddisk

Post by chuina » 2010/04/09 21:11:59

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 ?

User avatar
WhatsHisName
Posts: 1544
Joined: 2005/12/19 20:21:43
Location: /earth/usa/nj

Question about Harddisk

Post by WhatsHisName » 2010/04/09 23:09:43

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=http://fedoraproject.org/wiki/Upgrading_Fedora_using_yum#Fedora_Core_6_-.3E_Fedora_7]upgrade notes for the Fedora 6 to 7 transition[/url] give a reasonable explanation.

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

User avatar
toracat
Forum Moderator
Posts: 7387
Joined: 2006/09/03 16:37:24
Location: California, US
Contact:

Re: Question about Harddisk

Post by toracat » 2010/04/10 00:43:22

Another reference may be [url=http://kernelnewbies.org/Linux_2_6_19#head-cdcbaa9c1b476decdc064e0a75d23d1328b1ddce]here[/url] with some explanations.

chuina
Posts: 355
Joined: 2009/12/11 10:25:56

Re: Question about Harddisk

Post by chuina » 2010/04/10 06:26:20

Then in [i]CentOS[/i] 6 it will detect as [b]sda[/b]
Thanks guys.

Post Reply

Return to “CentOS Social”