linux 硬盘标识符的表示分别何时使用
展开全部
linux下的硬盘一般采用/dev/sda、/dev/sdb、/dev/sdc和/dev/sdd来表示,但是在某些较早发布出来的linux中,往往用/dev/hdx来表示。x可以是a、b、c、d。至于磁盘下的分区,一般是在sda、sdb等都后面加上一个数字。对于linux来说,硬盘标志符不知到问题也不大。因为,在安装系统时,电脑自己就能正确的识别标识好你的硬盘。也就是说它自己就能正确识别你的硬盘到底应该是/dev/sda还是/dev/sdb抑或是/dev/sdc。根本不用你去管。至于刚才提到的阿拉伯数字,电脑也能区分那个分区是sda1或sdb1.那个分区是sda2或sdb2。
等到系统安装好了,也可以通过fdisk -l来查看分区
看看我的分区[oracle@uoe ~]$ sudo fdisk -l
[sudo] password for oracle:
Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0xf5c42909
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 3917 31463271 7 HPFS/NTFS
Partition 1 does not start on physical sector boundary.
/dev/sdb2 3918 60801 456920730 f W95 Ext'd (LBA)
Partition 2 does not start on physical sector boundary.
/dev/sdb5 3918 7184 26242146 b W95 FAT32
Partition 5 does not start on physical sector boundary.
/dev/sdb6 7185 30422 186659203+ 7 HPFS/NTFS
Partition 6 does not start on physical sector boundary.
/dev/sdb7 30423 30458 282624 83 Linux
/dev/sdb8 30458 60280 239542272 83 Linux
/dev/sdb9 60280 60801 4190208 82 Linux swap / Solaris
在我的记录中,Device栏下面写的都是/dev/sdb1、/dev/sdb2等等。所以,我的这台电脑的硬盘就被识别为/dev/sdb。你也可以参考执行。
等到系统安装好了,也可以通过fdisk -l来查看分区
看看我的分区[oracle@uoe ~]$ sudo fdisk -l
[sudo] password for oracle:
Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0xf5c42909
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 3917 31463271 7 HPFS/NTFS
Partition 1 does not start on physical sector boundary.
/dev/sdb2 3918 60801 456920730 f W95 Ext'd (LBA)
Partition 2 does not start on physical sector boundary.
/dev/sdb5 3918 7184 26242146 b W95 FAT32
Partition 5 does not start on physical sector boundary.
/dev/sdb6 7185 30422 186659203+ 7 HPFS/NTFS
Partition 6 does not start on physical sector boundary.
/dev/sdb7 30423 30458 282624 83 Linux
/dev/sdb8 30458 60280 239542272 83 Linux
/dev/sdb9 60280 60801 4190208 82 Linux swap / Solaris
在我的记录中,Device栏下面写的都是/dev/sdb1、/dev/sdb2等等。所以,我的这台电脑的硬盘就被识别为/dev/sdb。你也可以参考执行。
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询