1

Sorry if this is a redundant question, but I'm a complete beginner to Linux. I have a new external hard drive that someone gave me and I reformatted it to ext4, to use for backing up files before I replace my ubuntu with lubuntu. But permission is denied on any files I try to transfer to the drive. Is this because of permissions on the files themselves or on the drive? If it's the drive, how do you open permissions so anything can be transferred to it? And does this mean that when I connect the external drive to the new OS later, that I won't be able to access any of the files because I'll be a new user and not the owner anymore? Now I'm concerned about losing access anytime I transfer files.

  • how did you mount the drive? – Skaperen Mar 5 '17 at 3:58
  • i just plugged it in and it showed up under devices. do i have to do something else to mount it? – J. Eck Mar 5 '17 at 4:00
1

To find the mounted folder of your drive, go into the file manager, select the drive on the left side panel and once you are inside the folder of your drive, press Ctrl + L and copy the path of the mounted directory.

Now open up a terminal (Windows-Key + T) and enter sudo chown [username]:[username] -R [directory]. An example would be:

sudo chown cubedev:cubedev -R /media/cubedev/ebf6d6c1-a9f9-4012-80d3-abcd26c2192c
0

Every time you mount it you need to run this

sudo chown -R (username) /dev/(devicename)

Where username is your username and devicename is the device file like sda10.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.