日本免费全黄少妇一区二区三区-高清无码一区二区三区四区-欧美中文字幕日韩在线观看-国产福利诱惑在线网站-国产中文字幕一区在线-亚洲欧美精品日韩一区-久久国产精品国产精品国产-国产精久久久久久一区二区三区-欧美亚洲国产精品久久久久

Linux使用FDisk工具的技巧( 二 )


靈活應用fdisk , 還可以修復一些損壞的分區(qū)表 , 前提是你必須準確記住原有每個分區(qū)的起始柱面和終止柱面 。
再附加一下對硬盤進行格式化的方法: 要把分區(qū)格式化成Linux Ext2格式 , 用: mkext2fs /dev/hda? 要把分區(qū)格式化成FAT32格式 , 用: mkfs.vfat /dev/hda?
實例、通過fdisk -l 查看機器情況:
所掛硬盤個數(shù)及分區(qū)
[root@localhost beinan]# fdisk -l
Disk /dev/hda: 80.0 GB , 80026361856bytes
255 heads ,  63 sectors/track ,  9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 765 6144831 7 HPFS/NTFS
/dev/hda2 766 2805 16386300 c W95 FAT32 (LBA)
/dev/hda3 2806 9729 55617030 5 Extended
/dev/hda5 2806 3825 8193118+ 83 Linux
/dev/hda6 3826 5100 10241406 83 Linux
/dev/hda7 5101 5198 787153+ 82 Linux swap / Solaris
/dev/hda8 5199 6657 11719386 83 Linux
/dev/hda9 6658 7751 8787523+ 83 Linux
/dev/hda10 7752 9729 15888253+ 83 Linux
Disk /dev/sda: 1035 MB ,  1035730944 bytes
256 heads ,  63 sectors/track ,  125 cylinders
Units = cylinders of 16128 * 512 = 8257536 bytes
Device Boot Start End Blocks Id System
/dev/sda1 1 25 201568+ c W95 FAT32 (LBA)
/dev/sda2 26 125 806400 5 Extended
/dev/sda5 26 50 201568+ 83 Linux
/dev/sda6 51 76 200781 83 Linux
通過上面的信息 , 我們知道此機器中掛載兩個硬盤(或移動硬盤) , 其中一個是hda 另一個是sda ;如果我們想查看單個硬盤情況 , 可以通過 fdisk -l /dev/hda1 或者fdisk -l /dev/sda1 來操作;以fdisk -l 輸出的硬盤標識為準;其中 hda有三個主分區(qū)(包括擴展分區(qū)) , 分別是主分區(qū) hda1 hda2 和hda3(擴展分區(qū)) ;邏輯分區(qū)是 hda5到hda10;
其中 sda 有兩個主分區(qū)(包括擴展分區(qū)) , 分別是 sda1 和sda2 (擴展分區(qū));邏輯分區(qū)是 sda5 hda6 ;硬盤總容量=主分區(qū)(包括擴展分區(qū))總容量
擴展分區(qū)容量=邏輯分區(qū)總容量通過上面的例子 , 我們可以得知 hda=hda1+hda2+hda3 , 其中hda3=hda5+hda6+hda7+hda8+hda9+hda10
上面就是Linux通過FDisk進行磁盤分區(qū)的方法介紹了 , 如果你對磁盤的布局不滿意 , 又或則重裝了系統(tǒng) , 不妨使用FDisk進行分區(qū)吧 。

推薦閱讀