Result of internet recovery mode boot, attempt to remove disk0 and add.
Permission denied :
Result of sudo dd if=/dev/disk0s2 skip=64 count=3 bs=16 | hexdump -Cv and sudo dd if=/dev/disk0s2 skip=4 count=2 bs=16 | hexdump -Cv
Result of sudo dd if=/dev/disk0s2 skip=64 count=3 bs=16 | hexdump -Cv
Result of sudo dd if=/dev/disk0s2 skip=4 count=2 bs=16 | hexdump -Cv
Result of Diskutil list, looks like something is amiss.
When trying to chose the startup disk, there is no Disk , until yesterday , I could see one.
Error from First Aid done on APFS drive on Mac using Disk Utility
Apparently, this seems to be issue with corrupt boot partition/sector, but I am not sure how to fix. Please help. I have lot of data on this machine.
@Tetsujin : I followed what was mentioned in the link, here is how far I could get .
Ran following commands
diskutil list
(output below in image)gpt -r show disk0
(output below)Since mine is APFS (High Sierra, 10.13.6), I followed appropriate commands.
gpt remove -i 2 disk0 gpt add -i 2 -b 409640 -s 878658168 -t 7C3457EF-0000-11AA-AA11-00306543ECAC disk0
Then I ran
diskutil verifyDisk disk0
and received the error in last exhibit. I am stuck, please help.
Sorry for images, not sure how to get better ones for all of you to see and advise.
gpt add -i 2 -b 409640 -s 372637568 -t 7C3457EF-0000-11AA-AA11-00306543ECAC disk0
), where the size value (372637568
) was taken from the referenced answer, you know the OP is hopelessly lost. – David Anderson Sep 29 '21 at 10:37disk0
is a HDD or SSD and whetherdisk0s2
is encrypted or not. – David Anderson Sep 29 '21 at 16:40diskutil list
, which I guess would be OK, if the partition type was known to be APFS before becomingffffffff-ffff-ffff-ffff-ffffffffffff
. – David Anderson Sep 29 '21 at 18:11sudo dd if=/dev/disk0s2 skip=32 count=16 bs=1 | hexdump -Cv
, doeshexdump
produce the output shown in this image? – David Anderson Oct 02 '21 at 07:38disk0s2
is not APFS formatted. Post the output fromsudo dd if=/dev/disk0s2 skip=64 count=3 bs=16 | hexdump -Cv
andsudo dd if=/dev/disk0s2 skip=4 count=2 bs=16 | hexdump -Cv
to see if the format is "Mac OS Extended (Journaled)" or "Core Storage". – David Anderson Oct 02 '21 at 18:39