fdisk -l顯示資訊詳解

來源:互聯網
上載者:User

fdisk -l顯示資訊詳解

[root@www.bkjia.com ~]# fdisk -l
Disk /dev/sda: 10.7 GB, 10737418240 bytes
255 heads, 63 sectors/track, 1305 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00044938
  Device Boot      Start        End      Blocks  Id  System
/dev/sda1  *          1        638    5120000  83  Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2            638        893    2048000  83  Linux
Partition 2 does not end on cylinder boundary.
/dev/sda3            893        1020    1024000  82  Linux swap / Solaris
Partition 3 does not end on cylinder boundary.
/dev/sda4            1020        1306    2292736    5  Extended
/dev/sda5            1021        1306    2291712  83  Linux

解析:
Disk /dev/sda: 10.7 GB, 10737418240 bytes
塊裝置名稱為/dev/sda,此裝置的大小為10.7GB,這個數字不是特別精確,我系統是10GB;10737418240 bytes這是轉換成位元組後的大小,即:10737418240/1024/1024/1024=10GB (註:bytes=B,表示“位元組”,bit=b,表示“位”)
255 heads, 63 sectors/track, 1305 cylinders
255 heads:表示磁頭數為255
63 sectors/track:表示每磁軌上有63個扇區
1305 cylinders:表示共有1305個柱面,柱面是分區的最小單位
Units = cylinders of 16065 * 512 = 8225280 bytes

16065=255*63 因為每一個磁頭都是在同一個柱面的,63表示每個磁軌上的扇區數量,這兩個數的乘積表示一個柱面上的扇區數量;所以16065*512表示一個柱面的大小是8225280位元組
Sector size (logical/physical): 512 bytes / 512 bytes
表示一個扇區的大小是512位元組

總結:所以一個磁碟的大小=一個柱面大小*柱面的總數=磁頭數量*每個磁軌上的扇區數*一個扇區大小*柱面總數

即:磁碟大小=8225280*1305=10733990400bytes=9.99GB=255*63*512*1305
上例中顯示出我們的磁碟只有1305個柱面,但下邊的分區資訊中出現了1306個柱面數,不必太在意,linux顯示的這些資料不會十分精確。

Linux使用fdisk進行磁碟管理

Linux dd命令詳解 and 用dd來測試磁碟的讀寫能力

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.