External hard-drive causes MacOS to panic and reboot
I have an external hard-drive with lots of important documents and photos on it. The hard-drive is HFS formatted and is encrypted.
When I plug the drive into my computer, it reboots with a kernel panic.
The kernel panic is jnl: do_jnl_io: curlen == 0, offset 0x4a5000 len 0\n" @hfs_journal.c:354
The hard-drive in question had been working fine until recently and was not plugged into other computers other than my main MacBook. It has not been damaged in any way.
MacOS version: 13.5.2 (22G91)
Hardware: MacBook Pro 16-inch, 2021, M1 Max, 64GB Memory
Things that I've already tried to do to resolve the problem:
- Update to latest macos updates. This has not helped.
- Rebooted and tried again. This has not helped.
- Booting in safe mode: same problem
- Booting in recovery mode: same problem
- Plugged the laptop into another computer: my old 2017 Macbook Pro: same problem - the machine reboots with the same kernel panic with the same message.
A quick search finds the panic defined in `do_journal_io()` in hfs_journal.c.
Other people have reported the same problem, but without resolution:
I'm guessing that the HFS journal on the risk is corrupt in some way. Is there any other way of recovering the data from this disk?
Stack trace below (full stack trace in additional text)...
panic(cpu 2 caller 0xfffffe001bdf3f78): "jnl: do_jnl_io: curlen == 0, offset 0x4a5000 len 0\n" @hfs_journal.c:354
Debugger message: panic
Memory ID: 0x6
OS release type: User
OS version: 22G90
Kernel version: Darwin Kernel Version 22.6.0: Wed Jul 5 22:22:05 PDT 2023; root:xnu-8796.141.3~6/RELEASE_ARM64_T6000
Fileset Kernelcache UUID: F3639CABBB2D86D749C378C454E15B7B
Kernel UUID: E88B0B04-7B4D-3E52-8980-A19ED82304F7
Boot session UUID: 23F7F657-C439-45C4-B40E-BAA737BC69C7
MacBook Pro 15″