sgan81 / apfs-fuse

FUSE driver for APFS (Apple File System)
GNU General Public License v2.0
1.79k stars 164 forks source link

Attempting to mount an apfs disk iso from an NTFS filesystem corrupts the NTFS superblock #200

Open EthanZeigler opened 3 months ago

EthanZeigler commented 3 months ago

When attempting to mount an APFS disk image (iso) that's living on an NTFS filesystem, the NTFS filesystem superblock corrupts itself in a way that mounting the drive in fstab causes the kernel to go into emergency mode.

steps to reproduce

Expected

Drive mounts to the apfs directory

Actual

Invalid superblock error occurs no matter if the drive is correctly formatted or not. I've verified on a Mac device the iso is valid.

On the next reboot, Linux will (correctly) state that the NTFS superblock on the drive that held the iso is corrupt. Thankfully it's recoverable via ntfsfix but that absolutely shouldn't be necessary.