Linux之fdisk -l命令

來源:互聯網
上載者:User

Linux之fdisk -l命令 關於fdisk -l 一些數值的說明;Disk /dev/hda: 80.0 GB, 80026361856 bytes255 heads, 63 sectors/track, 9729 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytes這個硬碟是80G的,有255個磁面;63個扇區;9729個磁柱;每個 cylinder(磁柱)的容量是 8225280 bytes=8225.280 K(約為)=8.225280M(約為);分區序列 引導 開始 終止 容量 分區類型ID 分區類型/dev/hda1 * 1 765 6144831 7 HPFS/NTFS/dev/hda2 766 2805 16386300 c W95 FAT32 (LBA)/dev/hda3 2806 9729 55617030 5 Extended說明: 硬碟分區的表示:在Linux 是通過hd*x 或 sd*x 表示的,其中 * 表示的是a、b、c ... ... x表示的數字 1、2、3 ... ... hd大多是IDE硬碟;sd大多是SCSI或移動儲存;引導(Boot):表示引導分區,在上面的例子中 hda1 是引導分區;使用中的磁碟分割activeStart (開始):表示的一個分區從X cylinder(磁柱)開始;End (結束):表示一個分區到 Y cylinder(磁柱)結束;id和System 表示的是一個意思,通過指定id來確認分區類型;比如 7表示的就NTFS 分區;Blocks(容量):是容量的意思,其單位是K;一個分區容量的值是由下面的公式而來的; Blocks = (相應分區End數值 - 相應分區Start數值)x 單位cylinder(磁柱)的容量 所以我們算一下 hda1的 Blocks 的大小: hda1 Blocks=(765-1)x8225.280=6284113.92 K = 6284.113.92M

聯繫我們

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