I resized the partitions of my Macbook Pro. it had the following partitions: Macintosh HD 415GB Bootcamp 85GB
After the resizing, it still worked up until I restarted. When I did so all the Drives were gone. In the Terminal of the safe mode, I found my startup volume to be this: FFFFFFFF-FFFF-FFFF-FFFF-FFFFFFFFFFF.
I followed some similar issues from here and used the Terminal in the Safe Mode but ended up with this now please see the image: https://i.stack.imgur.com/R9ywl.jpg
Now all the drives are gone when I check in the disc utilities and the apple core storage is just 220GB large as you can see on the attached image.
— Progress 01
Resized EFI to 409600
Now I need to figure out the type and size of the disks by an inspection. How do I perform an inspection? @David Anderson
— Progress 02
I think it is High Sierra (sorry)
I ran:
dd if=/dev/disk0s2 count=3 | vis -c
https://i.stack.imgur.com/lolKN.jpg
— Progress 03
Corrected the GPT as described and now I see this (like in your screenshot David):
-bash-3.2# gpt -r show /dev/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 830799832 2 GPT part - 7C3457EF-0000-11AA-AA11-00306543ECAC
831209472 145895555
977105027 32 Sec GPT table
977105059 1 Sec GPT header
and:
/dev/disk0
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *500.3 GB disk0
1: EFI 209.7 MB disk0s1
2: 7C3457EF-0000-11AA-AA11-00306543ECAC 425.4 GB disk0s2
6digit. The starting value of the second partition is probably correct, but the size is probably wrong. The type may also be wrong. As you stated in your previous answers such as this one, the type and size can be determined by inspection. – David Anderson Mar 20 '20 at 05:51export LC_CTYPE="ASCII";dd if=/dev/disk0s2 count=3 2>/dev/null | vis -cw. This is basically the same as @klanomath asked for, except the results are invertible. – David Anderson Mar 20 '20 at 11:14gpt add -i 2 -b 409640 -s 830799832 -t 7C3457EF-0000-11AA-AA11-00306543ECAC /dev/disk0– David Anderson Mar 20 '20 at 11:24echo -n 'NXSB\0\^P\0\0\M-{\M^_0\^F\0\0\0\0' | unvis | vis -cw; echo. To get the hex values, you need to enter the commandecho -n 'NXSB\0\^P\0\0\M-{\M^_0\^F\0\0\0\0' | unvis | hexdump -Cv. The sequencefb 9f 30 06is equal to103849979. Multiply by8to get830799832. – David Anderson Mar 20 '20 at 11:44