I originally came across this post with a possible answer but, I do not understand how to go about the process, especially when 2 drives are both not showing there full size. This originally happened when I had Ubuntu Gnome installed alongside OS X (one drive (SSD)). I have dedicated the SSD to my OSes and the other HDD to my home folders.
When I attempted to delete the Linux partitons (one on each drive) they are now completely gone out of sight. I am unable to regain that space to add it to my system and home partiton on the drives.
Both are 500 GB drives but only 250 GB are used. I have a mid 2012 MacPro
(Incase your wondering how I have 2 drives in this mac I replaced my optical drive with a hard drive caddy)
When trying to read the gtp/pmbr scheme this is what it spits out disk0 is osx disk1 is home.
zackerys-MacBook-Pro:~ gefiltefish1478$ sudo gpt show disk1
Password:
start size index contents
0 1 PMBR
1 1 Pri GPT header
2 32 Pri GPT table
34 6
40 409600 1 GPT part - C12A7328-F81F-11D2-BA4B-00A0C93EC93B
409640 488050672 2 GPT part - 48465300-0000-11AA-AA11-00306543ECAC
488460312 2024
488462336 260096 3 GPT part - 0657FD6D-A4AB-43C4-84E5-0933C84B4F4F
488722432 487790592
976513024 260096 4 GPT part - 0657FD6D-A4AB-43C4-84E5-0933C84B4F4F
976773120 15
976773135 32 Sec GPT table
976773167 1 Sec GPT header
zackerys-MacBook-Pro:~ gefiltefish1478$ sudo gpt show disk0
start size index contents
0 1 PMBR
1 1 Pri GPT header
2 32 Pri GPT table
34 6
40 409600 1 GPT part - C12A7328-F81F-11D2-BA4B-00A0C93EC93B
409640 499902768 2 GPT part - 48465300-0000-11AA-AA11-00306543ECAC
500312408 1269536 3 GPT part - 48465300-0000-11AA-AA11-00306543ECAC
501581944 498372488
999954432 260096 4 GPT part - 0657FD6D-A4AB-43C4-84E5-0933C84B4F4F
1000214528 655
1000215183 32 Sec GPT table
1000215215 1 Sec GPT header
This is the output when I run df
.
df
Filesystem 512-blocks Used Available Capacity iused ifree %iused Mounted on
/dev/disk0s2 499902768 130185800 369204968 27% 1249077 4293718202 0% /
devfs 375 375 0 100% 651 0 100% /dev
/dev/disk1s2 488050672 465813600 22237072 96% 89020 4294878259 0% /Volumes/HOME
map -hosts 0 0 0 100% 0 0 100% /net
map auto_home 0 0 0 100% 0 0 100% /home
localhost:/KJdZJAu-3rlfljye4LGYtx 499902768 499902768 0 100% 0 0 100% /Volumes/MobileBackups
/dev/disk1s1 403266 15 403251 1% 0 0 100% /private/var/tmp/MP4XJX8Y
I'm extremely wary about rewriting any GPT without someone else's input. Needing help; I know @klanomath was able to fix this issue hopefully he can have some input on my situation. Possibly someone can make a bash command line to automate the process for other users who may encounter the issue.
Possible future GitHub project if I figure out how to do this on my own.