0

I'm running Kubuntu 20.04 in dualboot with Windows 8.1 and i have a NTFS partition /dev/sda5 mounted at /data. All default Kubuntu applications, like Dolphin file manager, KTorrent etc can read and write to that partition without any problem. But when i installed some applications i noticed that they don't have permissions to read or write to /data.

My fstab line: UUID=3A8A31E98A31A1F5 /data ntfs defaults,umask=007,uid=1000,gid=1000 0 0

youtube-dl can't open file for writing inside /data
Discord file opener doesn't see the data folder, while it's visible in dolphin file manager

List of things that i have tried:

  • I heard that Windows sets read-only flag to NTFS partitions before shutting down, so i booted into Windows, disabled Fast Boot and Hibernation and rebooted instead of shutting down. Didn't work.
  • Modified permissions using sudo chmod -r ugo-rw /data, didn't work
  • Unmounted /dev/sda5 and remounted it with read and write permissions
    sudo umount /dev/sda5
    sudo mount -o rw,users,umask=022 /dev/sda5 /data
    Didn't work
  • Modified fstab file to include my uid and gid
    UUID=3A8A31E98A31A1F5 /data ntfs defaults,umask=007,uid=1000,gid=1000 0 0
    and remounted the partition. Didn't work.

I would appreciate any help!

  • Does it work without windows_names in /etc/fstab? I am able to download with youtube-dl on a NTFS mounted with defaults,umask=007,uid=1000,gid=1000. I found here that windows_names will prevent creation of files with chars that windows doesn't like. – Adriaan Sep 25 '20 at 13:53
  • Also, I'm not too sure your umask=7000. What does it do? – Adriaan Sep 25 '20 at 13:56
  • i changed umask to 007 and removed windows_names, remounted and youtube-dl still throws unable to open for writing: [Errno 13] Permission denied – EntityinArray Sep 26 '20 at 14:26
  • Could you please try the '--output' option of youtube-dl? Use a name that is acceptable for windows. – Adriaan Sep 26 '20 at 15:12

1 Answers1

0

If you used snaps to install youtube-dl, either:

remove youtube-dl and install it through some other method (other than snaps)

or

mount your device in your home directory something like this How to allow snap applications to access /tmp folder?

WU-TANG
  • 3,071