Opened 10 years ago
Last modified 3 years ago
#11911 assigned enhancement
"executable" permission lost when files copied to an NTFS partition
Reported by: | dac324 | Owned by: | nobody |
---|---|---|---|
Priority: | low | Milestone: | Unscheduled |
Component: | File Systems/NTFS | Version: | R1/Development |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Platform: | All |
Description
Hello all,
recently, I encountered the following problem:
Backed up an installation directory for a Haiku app to a NTFS partition. When copying the files back to a newly created BeFS partition, the binary file of the app cannot be started any more (The file cannot be opened with Tracker("Invalid argument")).
Expected behavior: The restored app should start without any errors.
Apparently, some meta-information gets lost if a binary file is copied to a NTFS partition.
Kind regards.
Change History (5)
comment:1 by , 10 years ago
comment:2 by , 10 years ago
Keywords: | NTFS binary file corruption removed |
---|---|
Priority: | normal → low |
Type: | bug → enhancement |
There's some way that Linux makes this work, I don't know how (or if we should support it).
comment:3 by , 10 years ago
Summary: | Haiku / BeOS binary files get corrupted when copied from a NTFS partition → "executable" permission lost when files copied to an NTFS partition |
---|
NTFS can support UNIX permissions, but this would confuse Windows when trying to access it (yes, Windows does not use or handle all the features of the NTFS filesystem...)
http://askubuntu.com/questions/11840/how-do-i-use-chmod-on-an-ntfs-or-fat32-partition shows one way to achieve this on Linux, however it is probably safer to archive your backup as a zip file before putting it on an NTFS partition.
comment:4 by , 9 years ago
The use of a user mapping file might help, we use ntfs-3g: https://github.com/haiku/haiku/blob/master/src/add-ons/kernel/file_systems/ntfs/libntfs/acls.h#L33
comment:5 by , 3 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
Update: Seems that I found the kind of information which gets lost. It is the executable bit. When copying files back from NTFS to BeFS, they lose their Executable bit. This can be fixed using Tracker's right-click menu, file info, then setting the executable bits as appropriate or with
in a terminal.
Kind regards.