fdisk -l 參數詳解


 

[root@node1 ~]# 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

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM