<div dir="ltr"><div style="font-family:arial,helvetica,sans-serif;color:rgb(0,0,255)" class="gmail_default"> <u>" I got the GUI screen asking me to login, which actually happens before the mac mounts the encrypted filesystem."</u><br><br></div><div style="font-family:arial,helvetica,sans-serif;color:rgb(0,0,255)" class="gmail_default">So you still had to decrypt using, Name / passwd.<br></div><div style="font-family:arial,helvetica,sans-serif;color:rgb(0,0,255)" class="gmail_default"><br><br></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><img src="http://i923.photobucket.com/albums/ad79/candive/7d381ea0-1702-43dc-9185-0070677b1956_zpse48e93e2.png"><img src="http://i923.photobucket.com/albums/ad79/candive/PoweredbyLinuxEDITED_zps5856465c.jpg"><br></div></div></div>
<br><div class="gmail_quote">On 27 July 2016 at 22:44, Andrew Howlett <span dir="ltr"><<a href="mailto:andrew@howlett.net" target="_blank">andrew@howlett.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">warning - this part is all about mac os x, so you might want to skip it.<br>
<br>
My macbook died. At first I thought the hard drive had crashed, so I tried putting another hard drive in my mac - didn't work. Tried putting my hard drive in my daughter's macbook (same model) - sorta worked. My daughter's macbook would boot, ask for my password, start loading the operating system, then turn itself off. I suspect some system files had been corrupted. So could not boot this drive using the normal procedure even on a good Mac.<br>
<br>
Now normally i could connect the macbook's HD to my linux server using a USB dock, mount the HFS+ filesystem and read all my macbook files off the drive. Linux works great with HFS+. But I had done something very dumb. I had enabled Macbook File Vault encryption. This is a proprietary disc encryption used by apple to secure their hard drives. Only a mac can decrypt it. If I can't boot from the drive on Apple hardware, then the only option would be to restore from a Time Machine backup which is about two weeks old. I don't want to lose two weeks of work. So I need to find a way to boot this drive in a Mac.<br>
<br>
I tried to boot my daughter's macbook with my hard drive in single user mode. This is accomplished by holding down the CMD and S keys when the macbook "chimes" on boot. (The CMD key is like the windows key on a Mac.) I got the GUI screen asking me to login, which actually happens before the mac mounts the encrypted filesystem. Entered username and password. The macbook switched back into text mode, booted up and i'm looking at a text console on the macbook, like booting linux in text mode.<br>
<br>
Operating mac os x from the command line is just like linux. Actually, it is just like BSD because mac is based on bsd. Macbooks are VERY gui. So it feels strange to do stuff CLI on macbook using commands like mount. Also, important system directories are not in the PATH, so need to change to use full path. First, by default single user mode mounts the root filesystem as read only, so have to change to read/write:<br>
<br>
/sbin/mount -uw /<br>
<br>
next make a directory for a mount point<br>
<br>
mkdir /Volumes/usb<br>
<br>
then mount the usb-dock with external hard drive<br>
<br>
/sbin/mount_hfs /dev/disk2s1 /Volumes/usb<br>
<br>
and now rsync the plaintext files to an unencrypted hfs+ filesystem on the external drive<br>
<br>
rsync -av /* /Volumes/usb<br>
<br>
It took seven and a half hours to copy 800GB of files to the external drive. When it was done I was free of the macbook.<br>
<br>
<br>
_______________________________________________<br>
Group mailing list<br>
<a href="mailto:Group@bglug.ca" target="_blank">Group@bglug.ca</a><br>
<a href="http://bglug.ca/mailman/listinfo/group_bglug.ca" rel="noreferrer" target="_blank">http://bglug.ca/mailman/listinfo/group_bglug.ca</a><br>
</blockquote></div><br></div>