Hello,
*** Warning, long read, I tried to be as detailed as possible ***
2013 iMac 21.5, 1TB Fusion
The other day I restarted the computer, and it would boot about 2/3 of the way on the progress bar, and then shutdown.
I booted in verbose mode, and captured this message
Executing fsck_hfs (version hfs-407.50.6)
...
Invalid node structure
(4, 160565)
** The volume Macintosh HD could not be verified completely.
...<Emergency>: Boot task failed:...
... Shutting down in 3 seconds.
Create image of device
I then used Arch Linux boot USB on iMac and did a dd_rescue on the full device
dd_rescue /dev/disk2 mac.dmg imac.log
and got a 1 TB image file.
Put image on external USB drive
on a separate computer, I copied the image to a usb drive
dd if=mac.dmg of=/dev/disk4
Able to see Partitions and mount Apple boot
Disk mac.dmg: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: FACF090D-3BE6-44F3-A614-9D4F4EDB538B
Device Start End Sectors Size Type
mac.dmg1 40 409639 409600 200M EFI System
mac.dmg2 409640 1952255591 1951845952 930.7G Apple Core storage
mac.dmg3 1952255592 1953525127 1269536 619.9M Apple boot
Unable to mount Apple Core storage
So I'm unable to mount the Apple Core storage in linux, bad superblock
but I am able to mount the Apple boot partition.
Able to start iMac in Single User Mode
So I was able to start in Single User Mode, and I immediately copied my Pictures folder onto an external USB with HFS
mount -uw /
mkdir /Volumes/bk
mount -t hfs /dev/disk3s3 /Volumes/bk
cp -R /Users/foobar/Pictures /Volumes/bk/photos
This took all 12 hrs, ~750GB
So now what?
I have not powered down my iMac from Single User Mode.
1. Should I shutdown and reboot into Single User Mode, and run fsck -fy to see if that corrects the invalid node structure issue? Could this make this worse, and prevent me from accessing the files?
2. Should I perform some other type of backup before I shut it down, ie cp -r /Users /Volumes/bk/Users (probably ~1TB), is there something better to use other than cp?
3. How would you guys proceed?
I got the photos which was the biggest thing. Now I have some breathing room to do some additional trial and error things without as much worry. Obviously I'd like to recover more, but I'm very cautious and thats why before I did anything I did a dd of the whole drive. It just doesnt seem like the original DD i did was good enough? but I'm not even sure how to check the validity of the original DD.
thanks for keeping with me this far, I know its a long read.
If you guys have any suggestions/comments/feedback/advice, I'm all ears, and I promise to keep you guys up to date on what I do, and post a final conclusion (I hate when threads just stop)
thx
Davis
*** Warning, long read, I tried to be as detailed as possible ***
2013 iMac 21.5, 1TB Fusion
The other day I restarted the computer, and it would boot about 2/3 of the way on the progress bar, and then shutdown.
I booted in verbose mode, and captured this message
Executing fsck_hfs (version hfs-407.50.6)
...
Invalid node structure
(4, 160565)
** The volume Macintosh HD could not be verified completely.
...<Emergency>: Boot task failed:...
... Shutting down in 3 seconds.
Create image of device
I then used Arch Linux boot USB on iMac and did a dd_rescue on the full device
dd_rescue /dev/disk2 mac.dmg imac.log
and got a 1 TB image file.
Put image on external USB drive
on a separate computer, I copied the image to a usb drive
dd if=mac.dmg of=/dev/disk4
Able to see Partitions and mount Apple boot
Disk mac.dmg: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: FACF090D-3BE6-44F3-A614-9D4F4EDB538B
Device Start End Sectors Size Type
mac.dmg1 40 409639 409600 200M EFI System
mac.dmg2 409640 1952255591 1951845952 930.7G Apple Core storage
mac.dmg3 1952255592 1953525127 1269536 619.9M Apple boot
Unable to mount Apple Core storage
So I'm unable to mount the Apple Core storage in linux, bad superblock
but I am able to mount the Apple boot partition.
Able to start iMac in Single User Mode
So I was able to start in Single User Mode, and I immediately copied my Pictures folder onto an external USB with HFS
mount -uw /
mkdir /Volumes/bk
mount -t hfs /dev/disk3s3 /Volumes/bk
cp -R /Users/foobar/Pictures /Volumes/bk/photos
This took all 12 hrs, ~750GB
So now what?
I have not powered down my iMac from Single User Mode.
1. Should I shutdown and reboot into Single User Mode, and run fsck -fy to see if that corrects the invalid node structure issue? Could this make this worse, and prevent me from accessing the files?
2. Should I perform some other type of backup before I shut it down, ie cp -r /Users /Volumes/bk/Users (probably ~1TB), is there something better to use other than cp?
3. How would you guys proceed?
I got the photos which was the biggest thing. Now I have some breathing room to do some additional trial and error things without as much worry. Obviously I'd like to recover more, but I'm very cautious and thats why before I did anything I did a dd of the whole drive. It just doesnt seem like the original DD i did was good enough? but I'm not even sure how to check the validity of the original DD.
thanks for keeping with me this far, I know its a long read.
If you guys have any suggestions/comments/feedback/advice, I'm all ears, and I promise to keep you guys up to date on what I do, and post a final conclusion (I hate when threads just stop)
thx
Davis