Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 2066  / 1 Year ago, thu, january 19, 2023, 1:40:16

On my system I have made 3 partitions except home partition but Ubuntu doesn't let me create or delete any files on those partitions. Even copy and paste options are not available. Using my poor knowledge I made some file using terminal but I don't know how to add files to those partitions.



Please anybody help me. I'm new to Ubuntu. My experience with Ubuntu is only two weeks.


More From » 12.04

 Answers
0

It might be because you do not have the permissions to use those partitions.




  • To take ownership of a drive or partition (internal and external), simply run the following command:



    sudo chown -R username:username /partition/mount-point


    Where username is your actual username, mount-point is the directory in the file system to which the partition will be mounted and not the device name (eg: /dev/sda1).


  • To determine the mount-point, run mount in the terminal, and locate the line that corresponds to the drive or partition.




    • If you have not set a label for the partition, it will look something like this:



      /dev/sda5 on /media/7e3fbc57-03fe-4742-bb72-756f31852059

    • If you have set the label with something descriptive, it should look like this:



      /dev/sda5 on /media/data



    Based on the example, the mount-point will be something like /media/7e3fbc57-03fe-4742-bb72-756f31852059 OR /media/data.



    Now, all you need to do now is run the command below with your username and the correct mount-point:



    sudo chown -R peachy:peachy /media/7e3fbc57-03fe-4742-bb72-756f31852059


    OR



    sudo chown -R peachy:peachy /media/data


    Note: Your username and mount-point will be different. Also, if you have set a label that contains spaces (e.g. 1TB External or My Files), you will need to enclose the entire mount-point path in single quotes, such as:



    sudo chown -R peachy:peachy '/media/My Files'


    OR



    sudo chown -R peachy:peachy '/media/1TB External'



You are now the owner of the partition and should be able to do whatever you want with the drive or partition.





To change ownership of NTFS partitions, see:




[#34482] Friday, January 20, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
repend

Total Points: 195
Total Questions: 113
Total Answers: 107

Location: Nicaragua
Member since Tue, Dec 8, 2020
3 Years ago
;