I am not able to copy or extract files to, and even create new folder in the a partition that I have.I am able to copy files to and do other things in the other two partitions but not in the third one. What to do? I have attached some screenshots for reference. Pl. help ASAP. Thanks in advance :)
2 Answers
You are working with Linux. Linux handles security through file ownerships and permissions. For file systems that support linux permissions, the permissions of the root folder are in effect. By default, owner is the administrator: root
, and currently on Ubuntu, the permissions by default are +rwx for user, +rwx for group and +rx for others.
If you want to use the drive fully for your current user, then change the permissions of the mount point:
sudo chown $USER:$USER /media/aaditya/15e16d9b-fbe1-4d51-ade6-2d7b4e2F9a86
You see that I retrieved the information on where this drive is mounted from your screenshot.
Some advice not directly connected to the specific question (with thanks to a comment of Oldfred)
- It is advisable to label the drive, so it is automounted with an easily recognizable name.
- If this is an internal drive that you use frequently, you better create a mount point and have it automatically mounted during startup by including it in
/etc/fstab
.
-
1If an internal partition, better to create mount point & permanently mount with fstab. If an external drive or a partition you only occasionally mount better to give it a useful unique label, so it auto mounts by label, rather than UUID. https://askubuntu.com/questions/276911/how-to-rename-partitions – oldfred Jun 25 '21 at 14:56
-
-
chown: cannot access '/media/aaditya/15e16d9b-fbe1-4d51-ade6-2d7b4e2F9a86': No such file or directory - It shows this – Aaditya Sharma Jun 26 '21 at 10:31
-
Check the precise name as displayed of your screenshot. I just copied it using OCR from your screenshot, so there may be a wrong letter or number. Better yet, type
sudo chown $USER:$USER /media/aaditya/15e
then hit Tab so the shell will autocomplete this folder name. – vanadium Jun 26 '21 at 13:39
The problem was fixed after I created a home partition out of that free space partition. Now I am able to manipulate and create files in that partition. Thanks for ur reply and comments. The link which I got help from -
https://www.howtogeek.com/116742/how-to-create-a-separate-home-partition-after-installing-ubuntu/
sudo mkdir /path-to-mountpoint/dirname
and then change ownership and/or permissions of that directory to make it easily available. This means that the user(s) should no longer need elevated permissions. – sudodus Jun 25 '21 at 13:56