1. 程式人生 > >fdisk -l 參數詳解

fdisk -l 參數詳解

cal device label lin star tar 參數 oot type

[[email protected] ~]# fdisk -l

Disk /dev/vda: 107.4 GB, 107374182400 bytes, 209715200 sectors // 扇區個數

Units = sectors of 1 * 512 = 512 bytes // 柱面單元大小 (一個扇區作為一個柱面)

Sector size (logical/physical): 512 bytes / 512 bytes // 扇區大小

I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk label type: dos

Disk identifier: 0x00040353

Device Boot Start End Blocks Id System

/dev/vda1 * 2048 1026047 512000 83 Linux

/dev/vda2 1026048 209715199 104344576 8e Linux LVM

起始柱面

結束柱面

分區大小

分區類型

對分區類型的解析

Device Boot Start End Blocks Id System

Boot

Start

End

Blocks

Id

System

/dev/vda1

*

2048

1026047

512000

83

Linux

500M

/dev/vda2

1026048

209715199

104344576

8e

Linux LVM

99.5G

1. 總磁盤大小: 107374182400 bytes(B) / 1024 = 104857600 KB / 1024 = 102400 MB / 1024 = 100 GB

2. 每個柱面的大小Units: 512 bytes (這裏一個柱面一個扇區)

3. 扇區個數是sectors: 107374182400 bytes / 512 bytes = 209715200

4. /dev/vda1的大小是:柱面數1026047-2048 = 1023999 約等於1024000.

那麽/dev/vda1的大小 = 1024000 × 512 bytes = 524288000 bytes / 1024 = 512000 K / 1024 = 500M

5. /dev/vda2的大小是:(209715199 - 1026048) × 512 bytes / 1024 / 1024 / 1024 = 99.5G

fdisk -l 參數詳解