Remix.run Logo
▲ 1over137 4 hours ago

Apple themselves no longer make ejectable disks/drives. Be happy they are supported at all. :)

▲mschuster91 3 hours ago | parent [-]

Even USB drives should be properly powered down and not just unmounted. Unmounting avoids filesystem corruption (assuming the drive does not lie about SYNC commands), but if you unplug the drive while it is still busy doing whatever sort of housekeeping, Bad Things may happen.

Properly signaling "power down" and waiting for the power LED to actually go off however avoids that risk?

▲trollbridge 2 hours ago | parent [-]

In 2026 it should be possible to design systems where this isn’t the case.

▲contingencies 2 hours ago | parent | next [-]

One fix is journalling filesystems, but neither ExFAT or FAT32 have it and ExFAT is loaded with MS licensing BS so nobody can improve it or use it in commercial products without a licensing dance and lawyers. APFS has COW+checkpoints (better) but nobody will use it due to Apple lawyers. ZFS is the gold standard (COW + transactions), again unavailable due to lawyers. BTRFS is also great but largely only exists due, once again, to the licensing prohibiting ZFS adoption in the Linux kernel. Everyone could just move to BTRFS, this would be a nice thing for Apple to support.

A second and arguably better fix is multi-stage with a 'sync now' trigger physically enforced early in the process and a lock. (Although we all remember the PITA of ejecting locked CDs!) It seems the SD Association specifies Power Off Notification (POF) in SD Physical Layer Specification 7.10 which means 'some' (=few) SD cards support signalling around this issue between the card and the OS. But it needs full stack support and does not include the physical triggering, only the logical elements, and would only cover SD type cards not USB mass storage, which has its own legacy solution (ported from SCSI) combining 0x35, 0x1B, 0x1E, 0x00 (SYNCHRONIZE CACHE, START STOP UNIT, PREVENT/ALLOW MEDIUM REMOVAL, TEST UNIT READY). But again, device support is patchy and this does not include physical triggering, so there's no standard source for the sequence to commence.

The second is exactly where a motivated combination software-hardware system vendor like former iterations of Apple could fix things and everyone else is ~powerless.

▲mschuster91 an hour ago | parent | prev [-]

Unfortunately, anything memory is filled with fraudsters and cheaters, and that's before you go into the mess that is people outright faking products, I'm solely talking about legitimate vendors here. There's been a ton of HN threads and detailed analysis about this topic (I can only find [1][2] for the larger ones, the rest is all gone unfindable thanks to AI slop generators hijacking search keyword).

[1] https://news.ycombinator.com/item?id=30419618 [2] https://news.ycombinator.com/item?id=7375642