Created
June 28, 2014 02:26
-
-
Save ilovezfs/2a2913161c59a9e76190 to your computer and use it in GitHub Desktop.
resize hfs+
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Josephs-MacBook-Pro:~ joe$ diskutil list disk3 | |
/dev/disk3 | |
#: TYPE NAME SIZE IDENTIFIER | |
0: GUID_partition_scheme *268.4 MB disk3 | |
1: Apple_HFS Untitled 1 134.2 MB disk3s1 | |
Josephs-MacBook-Pro:~ joe$ sudo gpt -r show disk3 | |
start size index contents | |
0 1 PMBR | |
1 1 Pri GPT header | |
2 32 Pri GPT table | |
34 6 | |
40 262064 1 GPT part - 48465300-0000-11AA-AA11-00306543ECAC | |
262104 262184 | |
Josephs-MacBook-Pro:~ joe$ sudo gpt destroy disk3 | |
Josephs-MacBook-Pro:~ joe$ sudo gpt create disk3 | |
Josephs-MacBook-Pro:~ joe$ sudo gpt add -b 40 -s 262064 -i 1 -t 48465300-0000-11AA-AA11-00306543ECAC disk3 | |
disk3s1 added | |
Josephs-MacBook-Pro:~ joe$ sudo gpt -r show disk3 | |
start size index contents | |
0 1 PMBR | |
1 1 Pri GPT header | |
2 32 Pri GPT table | |
34 6 | |
40 262064 1 GPT part - 48465300-0000-11AA-AA11-00306543ECAC | |
262104 262151 | |
524255 32 Sec GPT table | |
524287 1 Sec GPT header | |
Josephs-MacBook-Pro:~ joe$ diskutil resizeVolume /dev/disk3s1 100% | |
Started partitioning on disk3s1 Untitled 1 | |
Verifying the disk | |
Checking file system | |
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 Untitled 1 appears to be OK | |
Resizing | |
Error: -5341: MediaKit reports partition (map) too small | |
Josephs-MacBook-Pro:~ joe$ diskutil resizeVolume /dev/disk3s1 524215S | |
Started partitioning on disk3s1 Untitled 1 | |
Verifying the disk | |
Checking file system | |
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 Untitled 1 appears to be OK | |
Resizing | |
Finished partitioning on disk3s1 Untitled 1 | |
/dev/disk3 | |
#: TYPE NAME SIZE IDENTIFIER | |
0: GUID_partition_scheme *268.4 MB disk3 | |
1: Apple_HFS Untitled 1 268.4 MB disk3s1 | |
Josephs-MacBook-Pro:~ joe$ diskutil resizeVolume /dev/disk3s1 524216S | |
Started partitioning on disk3s1 Untitled 1 | |
Verifying the disk | |
Checking file system | |
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 Untitled 1 appears to be OK | |
Resizing | |
Error: -5341: MediaKit reports partition (map) too small | |
Josephs-MacBook-Pro:~ joe$ sudo gpt -r show disk3 | |
start size index contents | |
0 1 PMBR | |
1 1 Pri GPT header | |
2 32 Pri GPT table | |
34 6 | |
40 524208 1 GPT part - 48465300-0000-11AA-AA11-00306543ECAC | |
524248 7 | |
524255 32 Sec GPT table |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment