Opened 6 years ago

Last modified 5 years ago

#11911 new enhancement

"executable" permission lost when files copied to an NTFS partition

Reported by: dac324 Owned by: 3dEyes
Priority: low Milestone: Unscheduled
Component: File Systems/NTFS Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: All


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 (4)

comment:1 by dac324, 6 years ago

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

chmod +x filename

in a terminal.

Kind regards.

comment:2 by waddlesplash, 6 years ago

Keywords: NTFS binary file corruption removed
Priority: normallow
Type: bugenhancement

There's some way that Linux makes this work, I don't know how (or if we should support it).

comment:3 by pulkomandy, 6 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...) 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.

Note: See TracTickets for help on using tickets.