You are not logged in.

#1 2021-06-18 20:36:03

bosco
Member
Registered: 2019-02-26
Posts: 13

SOLVED: Reading encrypted Mac OS hard drive

My old Mac Book Pro died after several years of usage, I put the SDD on a USB enclosure to retrieve the files on my current laptop ( ThinkPad t480 running arch). If I mount it, file managers and the ls command show it as empty, the file format is Mac OS Extended (Case-sensitive, Journaled, Encrypted), is there any software I can use to see the contents?

Last edited by bosco (2021-06-19 20:57:27)

Offline

#2 2021-06-18 20:44:14

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: SOLVED: Reading encrypted Mac OS hard drive

A quick web search for 'encrypted HFS linux' seems to conclude that it's not possible, I only looked at the first few results though and those were quite old.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2021-06-18 20:47:43

bosco
Member
Registered: 2019-02-26
Posts: 13

Re: SOLVED: Reading encrypted Mac OS hard drive

Slithery wrote:

A quick web search for 'encrypted HFS linux' seems to conclude that it's not possible, I only looked at the first few results though.

Yes, I saw a stack overflow post saying something like that though there were some projects trying to achieve it, was hoping for better luck now .
I'm guessing my best option is to run a Mac OS VM in qemu

Offline

#4 2021-06-18 20:57:02

seth
Member
Registered: 2012-09-03
Posts: 51,699

Offline

#5 2021-06-19 17:02:24

bosco
Member
Registered: 2019-02-26
Posts: 13

Re: SOLVED: Reading encrypted Mac OS hard drive

That just made everything worse
IFBIXmS_d.webp?maxwidth=640&shape=thumb&fidelity=medium

Mounting didn't work with the command so I figured I'll reboot, that happened. Luckily I found my installation media, so I chrooted to pacman -R that package, reboot and I'm still seeing this screen sad

Last edited by bosco (2021-06-19 17:05:13)

Offline

#6 2021-06-19 17:11:01

seth
Member
Registered: 2012-09-03
Posts: 51,699

Re: SOLVED: Reading encrypted Mac OS hard drive

That's hardly the outfall of installing a kernel module.
The package drags in the lts kernel (for probably no reason) and that is what you're now failing to try to boot. ext4 is unknown what means it's for some reason not in the initramfs, but the fallback image (for the lts kernel) should(tm) still boot. Likewise the other kernel you were probably booting previously.

Offline

#7 2021-06-19 17:24:36

progandy
Member
Registered: 2012-05-17
Posts: 5,203

Re: SOLVED: Reading encrypted Mac OS hard drive

After a cursory search. decryption  of "Encrypted HFS+" (as far as I understand that is HFS+ inside FileVault LVM) may be possible with libfvde: https://github.com/libyal/libfvde
Afterwards maybe the kernel-internal hfsplus driver might be enough.
If the kernel driver does not work, maybe this alternative fuse driver will: https://github.com/0x09/hfsfuse (source)

If it is an APFS volume, you'll need the paragon driver for apfs, or one of these experimental drivers:
https://github.com/sgan81/apfs-fuse
https://github.com/linux-apfs/linux-apfs-rw
Only the paragon as well as apfs-fuse driver support decryption of the apfs encryption method, though. (T2 chip encrypted volumes not supported, even if you have the recovery key. There is some special stuff happening that the dev has not figured out)

Last edited by progandy (2021-06-19 17:42:51)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#8 2021-06-19 20:57:08

bosco
Member
Registered: 2019-02-26
Posts: 13

Re: SOLVED: Reading encrypted Mac OS hard drive

seth wrote:

That's hardly the outfall of installing a kernel module.
The package drags in the lts kernel (for probably no reason) and that is what you're now failing to try to boot. ext4 is unknown what means it's for some reason not in the initramfs, but the fallback image (for the lts kernel) should(tm) still boot. Likewise the other kernel you were probably booting previously.

Sorry, it was wrong of me to assume that, managed to get back on my system by installing GRUB on my EFI partition from the arch installation media, been using rEFInd up until now.

progandy wrote:

After a cursory search. decryption  of "Encrypted HFS+" (as far as I understand that is HFS+ inside FileVault LVM) may be possible with libfvde: https://github.com/libyal/libfvde
Afterwards maybe the kernel-internal hfsplus driver might be enough.
If the kernel driver does not work, maybe this alternative fuse driver will: https://github.com/0x09/hfsfuse (source)

If it is an APFS volume, you'll need the paragon driver for apfs, or one of these experimental drivers:
https://github.com/sgan81/apfs-fuse (etc)

Went for libfvde + apfs-fuse, managed to access my drive and opened some files to make sure it worked, and it did, thank you!

Offline

Board footer

Powered by FluxBB