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.
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
Every time you mount it you need to run this
sudo chown -R (username) /dev/(devicename)
username is your username and
devicename is the device file like