(同じ利用者による、間の2版が非表示)
3行目: 3行目:
:List  the partition tables for the specified devices
:List  the partition tables for the specified devices


==ストレージ新規追加の手順==
$ sudo fdisk -l /dev/sda
# ストレージをマザーボードに接続
Disk /dev/sda: 465.8 GiB, 500107862016 bytes, 976773168 sectors
# <code>lsblk</code>。接続を確認
Disk model: ST500LT012-1DG14
# パーティションの設計
Units: sectors of 1 * 512 = 512 bytes
# <code>fdisk</code>。パーティションを作成
Sector size (logical/physical): 512 bytes / 4096 bytes
# 各パーティションにファイルシステムを作成
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
# 作成したファイルシステムをツリーにマウント
Disklabel type: gpt
Disk identifier: C74DFC48-1E39-4CF0-B86E-F08322A04724
Device        Start      End  Sectors  Size Type
/dev/sda1      2048  1050623  1048576  512M EFI System
/dev/sda2    1050624 960178175 959127552 457.4G Linux filesystem
/dev/sda3  960178176 976771071  16592896  7.9G Linux swap
 
==メモ==
fdisk は GPT に対応していない。

2019年3月9日 (土) 23:39時点における最新版

オプション

-l
List the partition tables for the specified devices
$ sudo fdisk -l /dev/sda
Disk /dev/sda: 465.8 GiB, 500107862016 bytes, 976773168 sectors
Disk model: ST500LT012-1DG14
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: C74DFC48-1E39-4CF0-B86E-F08322A04724

Device         Start       End   Sectors   Size Type
/dev/sda1       2048   1050623   1048576   512M EFI System
/dev/sda2    1050624 960178175 959127552 457.4G Linux filesystem
/dev/sda3  960178176 976771071  16592896   7.9G Linux swap

メモ

fdisk は GPT に対応していない。