Fusion Drive の解除と再構成

Fusion Drive のデータの完全消去に関するメモ。GUI からデータの完全消去が出来ないので・・・。

  1. Mac を内蔵 Fusion Drive 以外から起動する
  2. とりあえずディスクの情報を得る
    $ diskutil list
    /dev/disk0 (internal, physical):
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:      GUID_partition_scheme                        *121.3 GB   disk0
       1:                        EFI EFI                     209.7 MB   disk0s1
       2:                 Apple_APFS Container disk2         121.1 GB   disk0s2
    
    /dev/disk1 (internal, physical):
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:      GUID_partition_scheme                        *1.0 TB     disk1
       1:                        EFI EFI                     209.7 MB   disk1s1
       2:                 Apple_APFS Container disk2         1000.0 GB  disk1s2
    
    /dev/disk2 (synthesized):
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:      APFS Container Scheme -                      +1.1 TB     disk2
                                     Physical Stores disk1s2, disk0s2
       1:                APFS Volume Internal HD             954.4 KB   disk2s1
  3. Internal HD としてマウントされている /dev/disk2 をアンマウントする。
    $ diskutil unmountDisk disk2
  4. APFS コンテナの情報を得る
    $ diskutil apfs list
    APFS Containers (1 found)
    |
    +-- Container disk2
        ====================================================
        APFS Container Reference:     disk2 (Fusion)
        Size (Capacity Ceiling):      1121118199808 B (1.1 TB)
        Capacity In Use By Volumes:   8817790976 B (8.8 GB) (0.8% used)
        Capacity Not Allocated:       1112300408832 B (1.1 TB) (99.2% free)
        |
        +-< Physical Store disk1s2
        |   -----------------------------------------------------------
        |   APFS Physical Store Disk:   disk1s2 (Secondary, Designated Aux Use)
        |   Size:                       999995129856 B (1000.0 GB)
        |
        +-< Physical Store disk0s2
        |   -----------------------------------------------------------
        |   APFS Physical Store Disk:   disk0s2 (Main, "Faster" Disk Use)
        |   Size:                       121123069952 B (121.1 GB)
        |
        +-> Volume disk2s1
            ---------------------------------------------------
            APFS Volume Disk (Role):   disk2s1 (No specific role)
            Name:                      Internal HD (Case-insensitive)
            Mount Point:               Not Mounted
            Capacity Consumed:         970752 B (970.8 KB)
            FileVault:                 No
  5. disk2 が Fusion Drive なのでこれのコンテナを削除する
    $ diskutil apfs deleteContainer disk2

    ※これを行うと、Fusion Drive が解除され、物理ディスク /dev/disk0 と /dev/disk1 となる。

  6. それぞれ Secure Erase を実行する。
    $ diskutil secureErase 0 disk0
    $ diskutil secureErase 0 disk1

    ※どちらも 0 消去。

  7. Fusion Drive を再構築する
    $ diskutil resetFusion
    
    Internally-located hardware disk devices known to the currently-running macOS:
    Solid State                              (disk0)
    Rotational                               (disk1)
    
    Volumes exported by partitions or storage systems hosted on the above devices:
    
    disk0 will be used as the "main" ("faster") device
    disk1 will be used as the "secondary" ("larger") device
    
    WARNING: All of the above will be erased
    Do you want to continue? (Enter "Yes" to proceed to erase) Yes
    
    Force-unmounting all volumes on the chosen "main" ("faster") disk device
    Started on disk0
    Error: -69886: Invalid request
    Ignoring the error during the above unmount; proceeding
    Force-unmounting all volumes on the chosen "secondary" ("larger") disk device
    Started on disk1
    Error: -69886: Invalid request
    Ignoring the error during the above unmount; proceeding
    Creating a new partition map on the "main" ("faster") disk device
    Started on disk0
    Unmounting disk
    Creating the partition map
    Waiting for partitions to activate
    Finished on disk0
    Partition disk0s2 will be the "main" ("faster") APFS Physical Store
    Creating a new partition map on the "secondary" ("larger") disk device
    Started on disk1
    Unmounting disk
    Creating the partition map
    Waiting for partitions to activate
    Finished on disk1
    Partition disk1s2 will be the "secondary" ("larger") APFS Physical Store
    Creating an APFS Fusion Container importing two partitions
    Started on disk0s2
    Creating a new empty APFS Container
    Unmounting Volumes
    Switching disk0s2 to APFS
    Switching disk1s2 to APFS
    Creating APFS Container
    FusionLC autodetect: regular Fusion
    Created new APFS Container disk8
    Finished on disk0s2
    The new APFS Container is disk8
    Adding a logical APFS Volume to the APFS Container
  8. macOS を再インストールする

コメントを残す

メールアドレスが公開されることはありません。 * が付いている欄は必須項目です