LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1142|回复: 7

问个菜菜的问题:硬盘如何命名的(如hda,hdc,sda等)?

[复制链接]
发表于 2004-12-11 17:37:45 | 显示全部楼层 |阅读模式
好像大家只有一个硬盘的时候,一般命名为hda什么的,
我也只有一个硬盘,可用fdisk -l查看的时候却是如下:
Disk /dev/hdc: 60.0 GB, 60022480896 bytes
255 heads, 63 sectors/track, 7297 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hdc1   *           1        1178     9462253+   7  HPFS/NTFS
/dev/hdc2            1179        7297    49150867+   f  W95 Ext'd (LBA)
/dev/hdc5            1179        2453    10241406    7  HPFS/NTFS
/dev/hdc6            2454        4365    15358108+   7  HPFS/NTFS
/dev/hdc7            4366        6278    15366141    7  HPFS/NTFS
/dev/hdc8            6279        7236     7695103+  83  Linux
/dev/hdc9            7237        7297      489951   82  Linux swap

为何是hdc,还有上面那些都是什么意思呀???

谢谢大哥来指路!!!
发表于 2004-12-12 18:14:51 | 显示全部楼层
hda=IDE primary master
hdb=IDE primary slave
hdc=IDE secondary master
hdd=IDE secondary slave
sda=first SCSI storage device
sdb=second SCSI storage device
...

Clear?
 楼主| 发表于 2004-12-12 21:49:01 | 显示全部楼层
谢谢d00m3d
发表于 2004-12-12 21:54:21 | 显示全部楼层
sda,sdb也可以用来指示U盘!
发表于 2004-12-12 23:05:20 | 显示全部楼层
Because USB devices are using the SCSI emulations.
发表于 2004-12-18 12:41:01 | 显示全部楼层
那在grub里硬盘是怎么定议的。什么hd0,hd1,我有两个硬盘。好像是从哪个启动,哪个就是hd0,真是不解
发表于 2004-12-18 16:05:15 | 显示全部楼层
Consider the primary master:

hda1, hda2, hda3 and hda4 are the primary partitions.  In the IDE architecture, only 4 primary partitions are allowed.

hda5, hda6,... are the extended partitions.  You can have unlimited no. of extended partitions.  However, if you use an extended partition, then hda4 cannot be used.

In GRUB, everything start counting from zero.  So,

hd0 means the primary master hard disk drive
hd0,6 means the 7th slice of the primary master, which is same as hda7

similary, hd1,7 is equivalent to hdb8 and so on.

Clear?

PS: There is a complete GRUB tutorial in [精华区], you should read it.
发表于 2004-12-19 11:42:28 | 显示全部楼层
因为我不是很了解grub,所以在两个盘上都装有grug,我看了hda上的grub.conf里面有引导Linux(hd0,0),windown (hd1,0),还有一行我忘了,但在hdd上引导windows 怎么也成了(hd0,0),实在是糊涂
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表