20 ms·
Think twice before encrypting your HFS+ volumes on High Sierra
- mc32 9y agoA warning before FS conversion would be nice, given such a system isn't mountable by any previous OS version. This might be an example of where thorough QA seems to have gone down hill, if Apple Support think this behavior was "impossible".
- greglindahl 9y agoGreat idea! That's exactly what the author of the article says at the bottom. (Edit: reworded.)
- derefr 9y agoI made a CCC backup of my Sierra (10.12.6) boot volume before upgrading it to High Sierra. When that didn't go smoothly (Hackintosh reasons, not High Sierra's fault), I was able to boot the backup, and 10.12.6 turned out to mount my now-APFS High Sierra volume just fine. So "any previous" isn't strictly true.
- bgentry 9y ago> APFS volumes cannot be reverted to HFS Is that actually true? I’d heard that Apple had reversion instructions for those running the High Sierra beats on a system with a Fusion Drive, which they dropped support for in the final release.
- LeoPanthera 9y agoThe instructions are backup, reformat, restore.
- bgentry 9y agoHah, good to know. I guess that’s what you get for installing a beta OS on a machine you care about.
- tzs 9y agoConverting between different file systems in place is an interesting technical problem. Let's say you have a disk that is formatted with filesystem S (for "Source"), and you want it change it to filesystem D (for "Destination"). Let's assume for now that S is not encrypted. Let's also assume that we have a fair amount of scratch storage available somewhere not on the disk we are trying to convert. (I'll address removing this requirement later). One approach is to make something that given a list of files, including metadata, and a blank disk, can create a D filesystem on that disk and then copies the files to it. You also need something that given a file on S can give you a list of the block numbers that hold that file's data. That's an S to D copier, not an S to D in place converter, but it is useful for testing your understanding of D. Once you are confident that you know how D works, you can then make a new version of your D copier. The new version doesn't actually write anything out to the blank disk. Instead, it writes instructions for making the disk out to a file in scratch space. For blocks that would hold metadata (e.g., inode blocks on Unix filesystem), it records in the scratch space what their content would be and where they would go on D. For blocks that would hold file data, you write into the scratch area the list of where that data resides on S, and where that data would go on D. What you end up with, then, in the scratch space is essentially a set of block by block instructions for copying S to a blank disk and ending up with a D filesystem, where instructions are either "copy block X from S to block Y of D" or "Fill block Y of D with the following literal data". So to do an in place conversion, just follow those instructions, but with S and D the same, right? NO!!!!! That would likely totally trash things, because it is quite possible that a source block in one instruction may have already been overwritten as a destination in an earlier instruction. What you first need is something that goes through the whole list of block copy/fill instructions and figures out an order they can be done in that is safe. It is possible that there is no such order. In that case, you also need some free space that can used for temporary storage. Given some free space you can always find an order for the block copy/fill that works. The free space can either be on another device, or if S is not full you can find and use its free space. Anyway, once you do all this, you end up with a simple list of data move/fill steps that will convert S to D in place. You just have to figure out how to actually execute them. The tricky case is when S is your system disk so you cannot un-mount it. Your OS might get very unhappy if you start converting it in place, and you also have to worry that it might write things to it in the middle of the conversion that could corrupt it. Probably best would be to do the conversion booted from something like a Linux live CD. I said earlier that you needed some separate scratch space to store the information for the new filesystem. If there is free space on S you can probably use that. This comment is getting long, so I'm going to cut it off here. In a reply to it I'll toss in a couple of implementation tricks that can be useful, especially if D is a proprietary filesystem that you do not have a complete spec for and so cannot make your thing that figures out where to write D metadata and file data.
- Osiris 9y agoAnother reason is that read/write speeds on APFS encrypted volumes are 30-40% slower than non-encrypted volumes[1]. [1] https://news.ycombinator.com/item?id=15333036 https://news.ycombinator.com/item?id=15333036
- nrki 9y agoSpeed in MB/s HFS+ HFS+ Encrypted APFS APFS Encrypted 1M WRITE 1375 1373 1372 933 1M READ 2446 2340 2162 1304 4K WRITE 852 797 502 378 4K READ 2106 1486 2156 1001 https://news.ycombinator.com/item?id=15333754 https://news.ycombinator.com/item?id=15333754
- mikeash 9y agoThat's really strange. Why would encryption affect APFS so badly but not HFS+?
- convivialdingo 9y agoLots of reasons. If crypto is part of the syscall path, then you definitely pay with latency. If you can push IO to a worker thread then you can release the user call faster. This also requires tuning the read-ahead cache more aggressively. It could also be a change in crypto algorithm, unaligned page IO, or any other overlooked IO latency problems.
- j45 9y agoAt a high level, I believe APFS encrypts files individually (and uniquely) instead of the whole drive. Have to do some more reading :)
- Someone 9y agoNot instead of, but optionally in addition to (https://developer.apple.com/library/content/documentation/FileManagement/Conceptual/APFS_Guide/Features/Features.html https://developer.apple.com/library/content/documentation/Fi...) On Mac OS, it seems you only get full disk encryption, though (https://arstechnica.com/gadgets/2017/09/macos-10-13-high-sierra-the-ars-technica-review/6/ https://arstechnica.com/gadgets/2017/09/macos-10-13-high-sie...)
- j45 9y agoGlad I upgraded to Sierra just before High Sierra came out. Always good to be a release behind, and upgrade to the latest if there's a reason to, or 6 months or a year after all these wrinkles are ironed out. APFS looks very promising, it's hard to let Apple use me as a live beta tester.
- SloopJon 9y agoI upgraded one of my systems from El Capitan to Sierra this morning. I had a moment of panic when Sierra didn't show up on the Purchased tab of the Mac App Store, although I did in fact have a working copy of "Install macOS Sierra" in my Applications folder. I tend to like these refinement updates, like Snow Leopard and Mountain Lion, but I have to say that APFS gives me pause. If Apple doesn't have enough confidence in it to deploy on anything other than SSDs, then it doesn't sound like it's fully baked.
- wrs 9y agoIt's not a matter of "confidence"...it's just designed with the assumption you're using it on an SSD. It won't work as well on a spinning drive.
- j45 9y agoSierra was the first smooth upgrade I've experienced on Apple. Every previous version was wrought with core items breaking that couldn't be fixed, and required restoring backups. I find it's not the new features that mess things up, but Apple's desire to make existing functionality break.
- ellisv 9y ago> Always good to be a release behind You at least patch your system right? Being behind did Equifax no favors.
- sitharus 9y agoApple maintain security updates for at least 2 previous revisions of macOS. As long as you keep your system updated you’re as secure as the current version.
- kkylin 9y agoAlso, AFAIK, if you use your disk for Time Machine backups, it cannot be APFS: https://support.apple.com/en-gb/guide/mac-help/disks-you-can-use-with-time-machine-mh15139 https://support.apple.com/en-gb/guide/mac-help/disks-you-can...
- to3m 9y agoEven if you stick with Sierra, precisely to avoid this sort of thing, you might fall foul of the disappearing password hint problem: https://apple.stackexchange.com/questions/299558/ https://apple.stackexchange.com/questions/299558/
- igammarays 9y agoSeriously regretting the upgrade. Am I the only one having random graphics issues, such as rendering bugs, latency, and freezing, on a multi-monitor setup on a Late 2013 MBP? Lesson learned: always wait a few months after a major version bump.
- sitharus 9y agoYou’re not the only one I’ve heard of, but I haven’t worked a pattern yet. I’d agree with your conclusion though, unless you have two machines wait until the .2 release. Of course make sure you report the issues to Apple.
- chewyland 9y agoI restarted into MacOS for the first time since March, updated to High Sierra...wiggled around a little bit still feeling this operating system is pretty much abandonware at this point. Restarted back into bootcamp Windows 10 minutes later. I'll be back next March to poke around some more. I can't see MacOS existing in 1-2 years in its current form. Apple will unify everything and move to ARM. I almost see this as a fact at this point.
- pkamb 9y agoLots of people are having problems. Check out the replies here: https://twitter.com/stroughtonsmith/status/912390228517773314 https://twitter.com/stroughtonsmith/status/91239022851777331...
- ScottBurson 9y agoI generally wait until version n + 1 is at least in beta before installing version n. There is rarely a sufficiently compelling new feature to persuade me to risk the stability of my system sooner than that. (Still pining for Snow Leopard :-)
- balls187 9y agoThose issues have been fine with me, and my Late 2013 MBP. VMWare Fusion + Bootcamp, however...
- alexlongterm 9y agoDon't think twice. Keep backups and encrypt your laptops if you care about any of your data and your laptop travels beyond your desk and a locked safe.
- gamad 9y agoWell, if I can't have whole disk encryption, I can't use it. It's that simple. You need some protection in case your computer is stolen.
- deleted 9y ago[deleted]
- jason_slack 9y agoSo, I went to my local Apple Store because I could not format my boot volume to APFS on my MBP-15(non touch-bar). I had backed up and already wiped my drive. Clean slate. The Apple Store genius flipped out and was like "why are you doing this?", called me a "fan boy" and just was in general disbelief that somebody would be upgrading a boot volume. He sort of dropped comments throughout our interaction about just how bad an idea this was. It made me feel weird about making the decision.