-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hardlink in APFS macOS High Sierra 10.13 #31
Comments
Thanks for letting people know, one more reason to stay on Though I desperately want APFS to work on OSX/macOS. The early shipped not-turned on ZFS was so frustrating. TensCompliment tried so hard, glad OpenZFS and OpenZFS on OS X kept it going. I would guess there is an undocumented hard-linking, if dedupe is implemented they kind of have to have something in the backend, one would think. They are handling sym- and hard-links effectively underneath, just not activated to user. I see no support in @timsutton gist of the tools available: ... yet ... |
From Apple's APFS FAQ:
Grr, I lost some data due to having a few directory hardlinks on my HFS+ volume before upgrading to 10.13 - during the automatic conversion to APFS, I was somehow left with 0 copies of my actual original files, and just a bunch of broken symlinks. |
If they claim it converts them to symbolic links and you've lost data, you should report it to them immediately. Thanks for the warning. |
Hardlink will convert as soft link but the files/folders will be in /.HFS+ Private Directory Data?. |
So is the only solution to stay on HFS+ if you want to retain your hard links? Is there an option to not upgrade the file system? |
No option was presented to me on the installs I did. It just went right ahead and forklifted my filesystem. According to this thread on MacRumors, you can skip the conversion by manually launching the installer with a
|
Thanks a lot @luckman212 Did you end up finding your files? |
Files were destroyed but luckily I did find them in a recent Time Machine backup. So, no actual data loss but I can see how some might not be so lucky. I expect we'll hear some horror stories coming out, luckily manually-created hardlinks are quite rare on macOS. |
Good to hear you got your files back. I guess if Apple don't implement some sort of solution for this hln is dead for OS X on AFPS :( Did you have a chance to check @bewithkarthi 's information he provided or was it too late at that stage? |
Yes I did check that actually. I have a folder at root / called |
Great. Thanks for taking the time to share the info. |
I've added some documentation to cover this discussion in this pull request #36 |
Funny. Their “Documents and Desktop” on iCloud used to rely on hardlinks. I wonder what’s going on now. |
@bewithkarthi , thanks a lot. I found all (?) my files inside that directory. But why they named it ".HFS+ Private Directory Data?" The '?' is '^M' actually. WTF!!!!!!! They used WINDOWS to name the folder? |
NOOOO! |
I had a different observation today. If we leave the hard link as its is and upgrade to High Sierra, the directories are at least moving to ".HFS+ Private Directory Data?" but if you unlink the directory and upgrade the source directory changes to symbolic link and the data is completely lost. |
@bewithkarthi And the space is NOT released!!!! I can't find my data anywhere but the space of the hard disk is still occupied!!!! |
Is it confirmed that APFS does not support hard link directories ? |
@diimdeep Yes, see the comment above. |
I have tried to create a DMG file formatted into HFS, but for some reason I cannot find out, hln is giving an error "operation not permitted" even on this mounted volume. Any ideas? |
Current docs on clones: https://developer.apple.com/documentation/foundation/file_system/about_apple_file_system HARDLINKS LIVE?:
I recall that I was using a different tool to create directory hard links on HFS+, but I can't find/recall it and I guess it's facing the same challenges. |
hardlink-osx is very useful to manipulate the disk of time machine. |
Argh, any solution to this? - I have a Mac mini with a 256GB SSD, this is unusable. I tried to:
But as soon as I turn iCloud on, it removes my symlink and insists on using internal storage! - Any solution? |
harlink is not working in APFS macOS High Sierra.
It shows "Error: Operation not permitted". Do we have any other way to create hardlink for directories in APFS .
Thanks & Regards,
Karthikeyan
The text was updated successfully, but these errors were encountered: