Error 'Posix error - Permission denied' occurred while creating
Error 'Posix error - Permission denied' occurred while creating
When I mount an external USB Hard Drive and then set makemkv's output folder as a directory on that hard drive, I get an error when I try to save DVDs and BluRays:
Error 'Posix error - Permission denied' occurred while creating /media/username/MovieName
I never receive this error when I try to save files in my home directory. The problem only occurs on externally mounted disks. I tried adding full permissions to that directory (chmod 0777 .), but that does not help.
Has anyone run into this problem on Linux? How can I solve it?
Error 'Posix error - Permission denied' occurred while creating /media/username/MovieName
I never receive this error when I try to save files in my home directory. The problem only occurs on externally mounted disks. I tried adding full permissions to that directory (chmod 0777 .), but that does not help.
Has anyone run into this problem on Linux? How can I solve it?
Re: Error 'Posix error - Permission denied' occurred while creating
Unless label of the drive is MovieName, that's your problem. The path should be:Error 'Posix error - Permission denied' occurred while creating /media/username/MovieName
Code: Select all
/media/username/drivelabel
Re: Error 'Posix error - Permission denied' occurred while creating
Okay. You're right. The path name in my post was incorrect. I did not want to use my real user name. When I run makemkv, I use the correct path name. It's something like:
The point is that I have full write permissions in that directory. I can create files from the linux command-line. However, if I try to use that directory as the output folder in makemkv, then I get permission errors. How can I fix this?
Code: Select all
/media/username/drivelabel/videos/MovieName
Re: Error 'Posix error - Permission denied' occurred while creating
I'm not sure why you are really worried about that. But.. The problem wasn't with that part of the path, it was the missing drive part.I did not want to use my real user name.
So what happens if you try this from the shell:
Code: Select all
touch /media/username/drivelabel/videos/MovieName/testfile
Code: Select all
ls -ld /media/username/drivelabel
EDIT:
It would help to know how the drive is formatted. EXT? NTFS? FAT? etc.
You could always just try this:
Code: Select all
sudo chown -R username:username /media/username/drivelabel
Re: Error 'Posix error - Permission denied' occurred while creating
Hi, thanks for your help.
I was able to create the testfile with the touch command.
The results of the 'ls -ld' are:
I also tried the 'chown' command you suggested, but it did not help.
The hard drive is formatted as an NTFS drive.
The problem also persists if I mount a different partition on the main disk. That filesystem would be an ext filesystem.
I was able to create the testfile with the touch command.
The results of the 'ls -ld' are:
Code: Select all
> ls -ld /media/USERNAME/drivelabel/NetFlix/MovieName
drwxr-xr-x 2 USERNAME USERNAME 4096 Jul 1 14:00 /media/USERNAME/drivelabel/NetFlix/MovieName
The hard drive is formatted as an NTFS drive.
The problem also persists if I mount a different partition on the main disk. That filesystem would be an ext filesystem.
Re: Error 'Posix error - Permission denied' occurred while creating
The only think that I can think of is that MakeMKV isn't running as your user. Did you install from source?
While MakeMKV is running, what user is MakeMKV running as?
Will show what user makemkv is running as (and makemkvcon).
While MakeMKV is running, what user is MakeMKV running as?
Code: Select all
ps -ef | grep -i makemkv
Re: Error 'Posix error - Permission denied' occurred while creating
I am running it as my user. In fact, I simply start it from the command-line.
makemkv is installed as a snap. I must admit I don't know what that is. It's installed in something like: /snap/makemkv/351 I don't know how that works so, naturally, I'm suspicious of it.
makemkv is installed as a snap. I must admit I don't know what that is. It's installed in something like: /snap/makemkv/351 I don't know how that works so, naturally, I'm suspicious of it.
Re: Error 'Posix error - Permission denied' occurred while creating
Did you try the ps command that I suggested to verify what user MakeMKV is running as?
Instead of a snap, why don't you just install it? It's not that difficult.
Instead of a snap, why don't you just install it? It's not that difficult.
Re: Error 'Posix error - Permission denied' occurred while creating
I did a little digging into how snaps work, and I'm now convinced that your problem is with the snap.
You have to give the snap access removable media. Have a look at this link for more info:
https://www.linuxandubuntu.com/home/sna ... ermissions
You have to give the snap access removable media. Have a look at this link for more info:
https://www.linuxandubuntu.com/home/sna ... ermissions
Re: Error 'Posix error - Permission denied' occurred while creating
I'm not sure why I used a snap originally. I followed your advice and installed makemkv directly and it works now. It allows me to save files to the externally mounted hard drive. Thank you very much for your help!