パーティションテーブルの情報を確認するにはfdiskコマンドを使用します。
1 2 3 4 5 6 7 8 9 10 |
# fdisk -l /dev/vda1 Disk /dev/vda1: 262 MB, 262144000 bytes 16 heads, 63 sectors/track, 507 cylinders Units = cylinders of 1008 * 512 = 516096 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000 # |
ここで指定した「/dev/vda1」ですが、mountコマンドで確認できます。
1 2 3 4 5 6 7 8 9 |
# mount /dev/vda3 on / type ext4 (rw) proc on /proc type proc (rw) sysfs on /sys type sysfs (rw) devpts on /dev/pts type devpts (rw,gid=5,mode=620) tmpfs on /dev/shm type tmpfs (rw) /dev/vda1 on /boot type ext4 (rw) none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw) # |
mountでデバイス名を確認し、fdiskコマンドでパーティションテーブルを確認するという流れですね。
ちなみに、パーティションテーブルとは「ハードディスク上にある、パーティション関連の情報が載っているテーブル」です。