、Linuxのfdiskコマンド
、Linuxのfdiskプログラムは、DOS、BSDやSUNのタイプをリストディスクパーティションテーブルのタイプと互換性のあるパーティションテーブルを作成し、維持することです。
文法
fdisk [必要参数][选择参数]
必要なパラメータ:
- すべての素数パーティションテーブル-l一覧
- 使用と「-l」と-u、パーティションの数を表示
選択パラメータ:
- -s <パーティション番号>パーティションを指定します。
- -vバージョン情報
メニュー命令
- メートル:メニューやヘルプ情報
- A:アクティブパーティションの標識/ bootパーティション
- D:パーティションを削除
- L:パーティションの種類を表示
- N:新しいパーティション
- P:ディスプレイパーティション情報
- Q:保存せずに終了します
- トン:パーティション番号を設定します
- V:パーティションをチェック
- ワット:変更を保存します
- X:拡張したアプリケーション、高度な機能
例
現在の地域の状況を表示します。
# fdisk -l Disk /dev/sda: 10.7 GB, 10737418240 bytes 255 heads, 63 sectors/track, 1305 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sda1 * 1 13 104391 83 Linux /dev/sda2 14 1305 10377990 8e Linux LVM Disk /dev/sdb: 5368 MB, 5368709120 bytes 255 heads, 63 sectors/track, 652 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk /dev/sdb doesn't contain a valid partition table
SCSIハードドライブの各パーティションの陳列ケース
# fdisk -lu Disk /dev/sda: 10.7 GB, 10737418240 bytes 255 heads, 63 sectors/track, 1305 cylinders, total 20971520 sectors Units = sectors of 1 * 512 = 512 bytes Device Boot Start End Blocks Id System /dev/sda1 * 63 208844 104391 83 Linux /dev/sda2 208845 20964824 10377990 8e Linux LVM Disk /dev/sdb: 5368 MB, 5368709120 bytes 255 heads, 63 sectors/track, 652 cylinders, total 10485760 sectors Units = sectors of 1 * 512 = 512 bytes Disk /dev/sdb doesn't contain a valid partition table