sudo gpt destroy disk4 ; diskutil list disk4
MacBook-Pro-de-JP:~ Tinou$ diskutil umountDisk force disk4
Forced unmount of disk4 failed: at least one volume could not be unmounted
MacBook-Pro-de-JP:~ Tinou$ sudo gpt destroy disk4 ; diskutil list disk4
Password:
gpt destroy: unable to open device 'disk4': Resource busy
/dev/disk4 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
diskutil umountDisk force disk3
MacBook-Pro-de-JP:~ Tinou$ diskutil umountDisk force disk3
Forced unmount of all volumes on disk3 was successful
MacBook-Pro-de-JP:~ Tinou$
sudo gpt destroy disk3 ; diskutil list disk3
MacBook-Pro-de-JP:~ Tinou$ sudo gpt destroy disk3 ; diskutil list disk3
Password:
gpt destroy: unable to open device 'disk3': Resource busy
/dev/disk3 (external):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme 960.2 GB disk3
1: EFI EFI 209.7 MB disk3s1
2: Apple_APFS Container disk4 960.0 GB disk3s2
MacBook-Pro-de-JP:~ Tinou$
csrutil status
MacBook-Pro-de-JP:~ Tinou$ csrutil status
System Integrity Protection status: enabled.
MacBook-Pro-de-JP:~ Tinou$
csrutil disable
diskutil list
MacBook-Pro-de-JP:~ Tinou$ diskutil list
/dev/disk0 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *251.0 GB disk0
1: EFI EFI 209.7 MB disk0s1
2: Apple_APFS Container disk1 250.1 GB disk0s2
/dev/disk1 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +250.1 GB disk1
Physical Store disk0s2
1: APFS Volume Macintosh HD 138.2 GB disk1s1
2: APFS Volume Preboot 47.8 MB disk1s2
3: APFS Volume Recovery 517.0 MB disk1s3
4: APFS Volume VM 1.1 GB disk1s4
/dev/disk2 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: FDisk_partition_scheme *196.9 GB disk2
1: Windows_NTFS SD-HardDriv 196.8 GB disk2s1
/dev/disk3 (external):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme 960.2 GB disk3
1: EFI EFI 209.7 MB disk3s1
2: Apple_APFS Container disk4 960.0 GB disk3s2
/dev/disk4 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
sudo gdisk /dev/disk3
Last login: Wed Jul 31 23:05:04 on ttys001
MacBook-Pro-de-JP:~ Tinou$ sudo gdisk /dev/disk3
Password:
GPT fdisk (gdisk) version 1.0.4
Warning: Devices opened with shared lock will not have their
partition table automatically reloaded!
Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present
Found valid GPT with protective MBR; using GPT.
Command (? for help):
x
z
y
y
diskutil list
Command (? for help): x
Expert command (? for help): z
About to wipe out GPT on /dev/disk3. Proceed? (Y/N): y
Warning: Devices opened with shared lock will not have their
partition table automatically reloaded!
Warning: The kernel may continue to use old or deleted partitions.
You should reboot or remove the drive.
GPT data structures destroyed! You may now partition the disk using fdisk or
other utilities.
Blank out MBR? (Y/N): y
Warning: Devices opened with shared lock will not have their
partition table automatically reloaded!
MacBook-Pro-de-JP:~ Tinou$
[Restauré 31 juil. 2019 à 23:45:39]
Last login: Wed Jul 31 23:45:22 on console
Restored session: Mer 31 jul 2019 23:42:58 CEST
MacBook-Pro-de-JP:~ Tinou$ diskutil list
/dev/disk0 (external):
#: TYPE NAME SIZE IDENTIFIER
0: 960.2 GB disk0
/dev/disk1 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *251.0 GB disk1
1: EFI EFI 209.7 MB disk1s1
2: Apple_APFS Container disk2 250.1 GB disk1s2
/dev/disk2 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +250.1 GB disk2
Physical Store disk1s2
1: APFS Volume Macintosh HD 138.2 GB disk2s1
2: APFS Volume Preboot 47.8 MB disk2s2
3: APFS Volume Recovery 517.0 MB disk2s3
4: APFS Volume VM 1.1 GB disk2s4
/dev/disk3 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: FDisk_partition_scheme *196.9 GB disk3
1: Windows_NTFS SD-HardDriv 196.8 GB disk3s1
MacBook-Pro-de-JP:~ Tinou$