Thursday, April 25, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 2921  / 3 Years ago, thu, june 3, 2021, 1:51:44

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.


More From » 12.04

 Answers
1

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



    udisks --mount /dev/sda2 --mount-options umask=022  


    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 command sudo blkid.




Automatically mount ntfs partition at startup



If you want to mount the partition at startup with /etc/fstab add these options




  • Change the umask in /etc/fstab to 022. And add uid=1000 and gid=1000, assuming that your uid and gid values are 1000. The options will be now



    UUID=25D7D681409A96B7 /media/Data  ntfs-3g defauts,uid=1000,gid=1000,umask=022  0  0  


    Replace 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 login



Automatically mount ntfs partition on login




  • Open Startup Applications by typing "Startup Applications" in the dash. Click on the corresponding icon to open it.

  • Then click on the "Add" button, type a name for the Action and in the command box, type the above command

  • Logout and Login again, to see your ntfs partitions mounted with execution permission.



enter image description here



Hope this will answer your question







[#37316] Friday, June 4, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
poous

Total Points: 81
Total Questions: 101
Total Answers: 119

Location: Cambodia
Member since Sat, Oct 3, 2020
4 Years ago
;