LoginSignup
6

More than 5 years have passed since last update.

Mac OS X のコマンドラインでディスク一覧を表示

Last updated at Posted at 2012-11-22

sudo fdisk -l を発行してみたが,fdisk: illegal option -- l と言われて使えなかったので調べた.

% diskutil list
/dev/disk0
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *320.1 GB disk0
1: EFI 209.7 MB disk0s1
2: Apple_CoreStorage 277.1 GB disk0s2
3: Apple_Boot Recovery HD 650.0 MB disk0s3
/dev/disk1
#: TYPE NAME SIZE IDENTIFIER
0: Apple_HFS Macintosh HD *276.8 GB disk1
/dev/disk2
#: TYPE NAME SIZE IDENTIFIER
0: *80.0 GB disk2
/dev/disk3
#: TYPE NAME SIZE IDENTIFIER
0: Apple_partition_scheme *554.2 GB disk3
1: Apple_partition_map 32.3 KB disk3s1
2: Apple_HFS mk 554.2 GB disk3s2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6