M
/dev/disk0 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *320.1 GB disk0
1: EFI EFI 209.7 MB disk0s1
2: Apple_HFS Macintosh 159.3 GB disk0s2
3: Apple_Boot 650.0 MB disk0s3
4: Apple_HFS Sans titre 159.8 GB disk0s4
df -H
Last login: Wed Nov 7 21:20:22 on ttys000
MBP-de-ni00ja:~ niooja$ df -H
Filesystem Size Used Avail Capacity iused ifree %iused Mounted on
/dev/disk0s2 159G 22G 137G 14% 448123 4294519156 0% /
devfs 184k 184k 0B 100% 622 0 100% /dev
/dev/disk0s4 160G 302M 159G 1% 83 4294967196 0% /Volumes/Sans titre
map -hosts 0B 0B 0B 100% 0 0 100% /net
map auto_home 0B 0B 0B 100% 0 0 100% /home
MBP-de-ni00ja:~ niooja$
diskutil eraseVolume free null disk0s4 ; diskutil resizeVolume disk0s2 0b ; diskutil list
Last login: Wed Nov 7 22:13:43 on ttys000
MBP-de-ni00ja:~ niooja$ diskutil eraseVolume free null disk0s4 ; diskutil resizeVolume disk0s2 0b ; diskutil list
Started erase on disk0s4 Sans titre
Unmounting disk
Finished erase on disk0
Resizing to full size (fit to fill)
Started partitioning on disk0s2 Macintosh
Verifying the disk
Verifying file system
Volume could not be unmounted
Using live mode
Performing fsck_hfs -fn -l -x /dev/rdisk0s2
Performing live verification
Checking Journaled HFS Plus volume
Checking extents overflow file
Checking catalog file
Checking multi-linked files
Checking catalog hierarchy
Checking extended attributes file
Checking volume bitmap
Checking volume information
The volume Macintosh appears to be OK
File system check exit code is 0
Restoring the original state found as mounted
Resizing
Modifying partition map
Copying booter
Growing file system
Finished partitioning on disk0s2 Macintosh
/dev/disk0 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *320.1 GB disk0
1: EFI EFI 209.7 MB disk0s1
2: Apple_HFS Macintosh 319.2 GB disk0s2
3: Apple_Boot 650.0 MB disk0s4
/dev/disk0 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *320.1 GB disk0
1: EFI EFI 209.7 MB disk0s1
2: Apple_HFS Macintosh 319.2 GB disk0s2
3: Apple_Boot 650.0 MB disk0s4
MBP-de-ni00ja:~ niooja$
/dev/disk0 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *320.1 GB disk0
1: EFI EFI 209.7 MB disk0s1
2: Apple_HFS Macintosh 319.2 GB disk0s2
3: Apple_Boot 650.0 MB disk0s4
sw_vers -productVersion
df -H /
Last login: Thu Nov 8 13:42:45 on ttys000
MBP-de-ni00ja:~ niooja$ df -H
Filesystem Size Used Avail Capacity iused ifree %iused Mounted on
/dev/disk0s2 315G 51G 264G 17% 448285 4294518994 0% /
devfs 188k 188k 0B 100% 638 0 100% /dev
map -hosts 0B 0B 0B 100% 0 0 100% /net
map auto_home 0B 0B 0B 100% 0 0 100% /home
/dev/disk1s1 10M 1.5M 8.9M 15% 84 4294967195 0% /Volumes/uTorrent
/dev/disk2s1 589M 408M 181M 70% 1122 4294966157 0% /Volumes/Parallels Desktop 14.0.1 (45154)
MBP-de-ni00ja:~ niooja$
diskutil resizeVolume disk0s2 160g jhfs+ BIS 0b
Last login: Thu Nov 8 15:24:03 on ttys000
MBP-de-ni00ja:~ niooja$ diskutil resizeVolume disk0s2 160g jhfs+ BIS 0b
Resizing to 160000000000 bytes and adding 1 partition
Started partitioning on disk0s2 Macintosh
Verifying the disk
Verifying file system
Volume could not be unmounted
Using live mode
Performing fsck_hfs -fn -l -x /dev/rdisk0s2
Performing live verification
Checking Journaled HFS Plus volume
Checking extents overflow file
Checking catalog file
Checking multi-linked files
Checking catalog hierarchy
Checking extended attributes file
Checking volume bitmap
Checking volume information
The volume Macintosh appears to be OK
File system check exit code is 0
Restoring the original state found as mounted
Resizing
Shrinking file system
Copying booter
Modifying partition map
Initialized /dev/rdisk0s6 as a 148 GB case-insensitive HFS Plus volume with a 16384k journal
Mounting disk
Finished partitioning on disk0s2 Macintosh
/dev/disk0 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *320.1 GB disk0
1: EFI EFI 209.7 MB disk0s1
2: Apple_HFS Macintosh 160.0 GB disk0s2
3: Apple_Boot 650.0 MB disk0s5
4: Apple_HFS BIS 159.1 GB disk0s6
MBP-de-ni00ja:~ niooja$