The pangolin has struck again. The bug of the day for today is Ubuntu taking away my permissions on my Data partition (NTFS). One moment everything worked fine, the next moment I couldn't chmod anything anymore. chown
throws no errors or warnings at all, but nothing has changed either. chmod
keeps saying Operation not permitted
.
I've been messing around with /etc/fstab
as suggested by other answers on AskUbuntu, but none of them seem to have the desired effect.
This is my current line:
UUID=25D7D681409A96B7 /media/Data ntfs defaults,umask=000,gid=46,permissions,users,auto,exec 0 0
For reference, this is the original one:
UUID=25D7D681409A96B7 /media/Data ntfs defaults,umask=007,gid=46 0 0
(right after the problem started occuring)
What do I need to do so I am the owner of my own hard drive again? I want to be able to just use chmod
and chown
(without sudo
) without being told that some mysterious alien has taken over control of my Data partition.
I can still read and write, but execution permissions seem to be the problem.
--
I already figured out the execution permissions problem. The bounty's for the one who can tell me how I can set myself as owner of the data on that partition.
If you wanted to mount ntfs partition and don't mind to use terminal, use the following method. This give you execution permission.
Mount the ntfs partition from terminal
Open a terminal and type
It will mount the partition with execution permission. Remember, to replace the
sda2
with your system partition number. You can check which partition you want to mount by executing this commandsudo blkid
.Automatically mount ntfs partition at startup
If you want to mount the partition at startup with
/etc/fstab
add these optionsChange the
umask
in/etc/fstab
to022
. And adduid=1000
and gid=1000
, assuming that your uid and gid values are 1000. The options will be nowReplace the values according to your partition
UUID
and suitable mount points.Please note that, If you mounted your file system during boot time with
/etc/fstab
, you will not be able to unmount the drive without being root. If this is not your liking, you can use the below method which mounts at loginAutomatically mount ntfs partition on login
Hope this will answer your question
I was having similar problems, not being able to execute shell scripts stored on NTFS, even with sudo, even after editing fstab as described above.
It turns out I had never made the mount point directory. I unmounted the partition, made the mount point directory for the Windoze7 partition:
and then mounted again.