M
sudo gpt show disk2
diskutil list
Last login: Sun Oct 20 09:18:11 on ttys000
macbook-pro-de-pierre-antoine:~ pierreantoinelanglet$ sudo gpt show disk2
Password:
start size index contents
0 1 PMBR
1 1 Pri GPT header
2 32 Pri GPT table
34 262144 1 GPT part - E3C9E316-0B5C-4DB8-817D-F92DF00215AE
262178 2014
264192 7813771264 2 GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7
7814035456 1678
7814037134 32 Sec GPT table
7814037166 1 Sec GPT header
macbook-pro-de-pierre-antoine:~ pierreantoinelanglet$
diskutil info disk2s2
Last login: Sun Oct 20 09:18:11 on ttys000
macbook-pro-de-pierre-antoine:~ pierreantoinelanglet$ sudo gpt show disk2
Password:
start size index contents
0 1 PMBR
1 1 Pri GPT header
2 32 Pri GPT table
34 262144 1 GPT part - E3C9E316-0B5C-4DB8-817D-F92DF00215AE
262178 2014
264192 7813771264 2 GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7
7814035456 1678
7814037134 32 Sec GPT table
7814037166 1 Sec GPT header
macbook-pro-de-pierre-antoine:~ pierreantoinelanglet$ diskutil info disk2s2
Device Identifier: disk2s2
Device Node: /dev/disk2s2
Whole: No
Part of Whole: disk2
Volume Name: Seagate
Mounted: Yes
Mount Point: /Volumes/Seagate
Partition Type: Microsoft Basic Data
File System Personality: ExFAT
Type (Bundle): exfat
Name (User Visible): ExFAT
OS Can Be Installed: No
Media Type: Generic
Protocol: USB
SMART Status: Not Supported
Volume UUID: 6079CD9A-5E1D-3CFE-B7AB-B9A6AFE2EA99
Disk / Partition UUID: 88F9638C-6C0E-40FF-B413-03E13E643AF4
Partition Offset: 135266304 Bytes (264192 512-Byte-Device-Blocks)
Disk Size: 4.0 TB (4000650887168 Bytes) (exactly 7813771264 512-Byte-Units)
Device Block Size: 512 Bytes
Volume Total Space: 4.0 TB (4000527155200 Bytes) (exactly 7813529600 512-Byte-Units)
Volume Used Space: 782.1 GB (782133493760 Bytes) (exactly 1527604480 512-Byte-Units) (19.6%)
Volume Free Space: 3.2 TB (3218393661440 Bytes) (exactly 6285925120 512-Byte-Units) (80.4%)
Allocation Block Size: 131072 Bytes
Read-Only Media: No
Read-Only Volume: No
Device Location: External
Removable Media: Fixed
macbook-pro-de-pierre-antoine:~ pierreantoinelanglet$
-bash-3.2# diskutil list
/dev/disk0 (internal):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme 500.3 GB disk0
1: EFI EFI 314.6 MB disk0s1
2: Apple_APFS Container disk2 500.0 GB disk0s2
/dev/disk1 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme +2.1 GB disk1
1: Apple_HFS macOS Base System 2.0 GB disk1s1
/dev/disk2 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +500.0 GB disk2
Physical Store disk0s2
1: APFS Volume Macintosh HD 484.2 GB disk2s1
2: APFS Volume Preboot 45.5 MB disk2s2
3: APFS Volume Recovery 510.4 MB disk2s3
4: APFS Volume VM 3.2 GB disk2s4
/dev/disk3 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +5.2 MB disk3
/dev/disk4 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +524.3 KB disk4
/dev/disk5 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +524.3 KB disk5
/dev/disk6 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +524.3 KB disk6
/dev/disk7 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +2.1 MB disk7
/dev/disk8 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +524.3 KB disk8
/dev/disk9 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +524.3 KB disk9
/dev/disk10 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +12.6 MB disk10
/dev/disk11 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +4.2 MB disk11
/dev/disk12 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +1.0 MB disk12
/dev/disk13 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +2.1 MB disk13
/dev/disk14 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +524.3 KB disk14
/dev/disk15 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +524.3 KB disk15
/dev/disk16 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +1.0 MB disk16
/dev/disk17 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +524.3 KB disk17
/dev/disk18 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +6.3 MB disk18
/dev/disk19 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +6.3 MB disk19
/dev/disk20 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +524.3 KB disk20
/dev/disk21 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +2.1 MB disk21
-bash-3.2#
diskutil umount force disk2s2
sudo gpt remove -i 2 disk2
ls /Volumes/Macin*
Last login: Sun Oct 20 09:45:41 on ttys000
macbook-pro-de-pierre-antoine:~ pierreantoinelanglet$ diskutil umount force disk2s2
Volume Seagate on disk2s2 force-unmounted
macbook-pro-de-pierre-antoine:~ pierreantoinelanglet$ sudo gpt remove -i 2 disk2
Password:
disk2s2 removed
macbook-pro-de-pierre-antoine:~ pierreantoinelanglet$
-bash-3.2# ls /Volumes/Macin*
.DS_Store .file
.DocumentRevisions-V100 .fseventsd
.IAProductInfo .localized
.OSInstallerMessages .vol
.PKInstallSandboxManager Recovered Items
.PKInstallSandboxManager-SystemSoftware Users
.Spotlight-V100 macOS Install Data
.Trashes private
.dbfseventsd
-bash-3.2#
sudo gpt add -b 264192 -s 7618458764 -t EBD0A0A2-B9E5-4433-87C0-68B6B72699C7 -i 2 disk2
diskutil ap listSnaps disk2s1
-bash-3.2# diskutil ap listSnaps disk2s1
Snapshot for disk2s1 (1 found)
|
+-- Name: com.apple.TimeMachine.2019-10-19-231717
XID: 3102660
NOTE: This snapshot sets the minimal allowed size of APFS Container disk2
-bash-3.2#