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 dac324, 10 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, 10 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, 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:5 by waddlesplash, 3 years ago

Owner: changed from 3dEyes to nobody
Status: newassigned
Note: See TracTickets for help on using tickets.