CentOS下fdisk -l顯示資訊詳解整理

來源:互聯網
上載者:User

CentOS下fdisk -l顯示資訊詳解整理
[root@zcj~]#fdisk-lDisk/dev/sda:10.7GB,10737418240bytes255heads,63sectors/track,1305cylindersUnits=cylindersof16065*512=8225280bytesSectorsize(logical/physical):512bytes/512bytesI/Osize(minimum/optimal):512bytes/512bytesDiskidentifier:0x00044938DeviceBootStartEndBlocksIdSystem/dev/sda1*1638512000083LinuxPartition1doesnotendoncylinderboundary./dev/sda2638893204800083LinuxPartition2doesnotendoncylinderboundary./dev/sda38931020102400082Linuxswap/SolarisPartition3doesnotendoncylinderboundary./dev/sda41020130622927365Extended/dev/sda510211306229171283Linux

解析:

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,這兩個數的乘積表示一個柱面上的扇區數量;所以16065*512表示一個柱面的大小是8225280位元組

Sector size (logical/physical): 512 bytes / 512 bytes

表示一個扇區的大小是512位元組

總結:所以一個磁碟的大小=一個柱面大小*柱面的總數=磁頭數量*每個磁軌上的扇區數*一個扇區大小*柱面總數
即:磁碟大小=8225280*1305=10733990400bytes=9.99GB=255*63*512*1305

上例中顯示出我們的磁碟只有1305個柱面,但下邊的分區資訊中出現了1306個柱面數,不必太在意,linux顯示的這些資料不會十分精確。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.