3

I know the question is very basic, but I got 25 years only on Windows, how can I save my downloads in the new drive? When I try to save from my web browser, it says permission denied. Every time I restart the computer I have to mount the drive again, how do I to avoid this? (This is very simple in windows, you just move the downloads folder to the partition and you don't have to mount the disk every time you restart...) image of a permission denied message

image of the system drives

I want to save my downloads in the "varios" drive, I partitioned and formatted it but now I have to mount every time and even I don't have permission to download there...

5

In Linux, other partitions are not automatically connected to the system unless the administrator sets that up. The exception is external drives that you plug in into USB. These are automatically mounted for the current user.

Permanently mounting a partition

You therefore will need to set up that partition that contains your Download location to automount during startup. This can be done using the tool "Disks" (command: gnome-disks).

  1. In the tool, select the partition you want to mount automatically during startup.
  2. Click the cog wheel and select "Edit mount options".
  3. In the "Mount Options" dialog that appears, disable "Use session defaults"
  4. Check the option "Mount at system startup"
  5. A generic mount point under /mnt is proposed by the tool. You can leave this as is, but you also could choose your own folder where you create the mount, e.g. /mnt/Downloads or it could even be the Downloads folder in your home folder (/home/<yourlogin>/Downloads) if you exclusively use the partition for downloads..
  6. Click "OK" when done. The Disks tool will include the partition in the configuration file /etc/fstab. Check also that it creates the mount point, i.e., the folder where the partitioning will be accessible. If not, create the mount point you specified yourself.

Making the partition readily available under your home folder

Your desktop by default comes with a "Downloads" folder. You can conveniently change that folder by a symbolic link to the other partition, and thus conveniently continue to use Downloads in your home folder to immediately have them on the other partition.

By default, you will not be able to write as a normal user on the newly mounted partition. So create a Downloads folder there as administrator, and then change the owner of that folder to your user.

  1. Open the file manager with administrator ("root") power: Hit Alt+F2, then enter the command nautilus admin:/// to open a Files window that has root priviledges (be carefull!).
  2. Navigate into /mnt and create a folder "Downloads".
  3. Change the owner of that folder from root to your own user: right-click, properties, "Permissions" tab. Just change the owner using the drop down: it immediately is changed.

Close the Files window now. You continue as regular user. Now create a symbolic link:

  1. Open two nautilus windows side by side. Open the left one in the /mnt folder (you get there via "Other locations" in the left bar). Open the right one in your home folder.
  2. Delete the current "Downloads" folder in your home folder.
  3. Create the symbolic link: hold Ctrl+Shift down, then drag the folder to your home folder and release it. That gives you a symbolic link. You see that by the arrow included in the icon. That link, for practical purposes, acts and behaves as a regular folder. This is an extremely lengthy explanation, only valid for the Gnome Desktop (i.e., not for other desktops such as XFCE, KDE, etc.). That is why linux users prefer to give instructions on the terminal: these work on any linux system, it is way shorter and less error prone.

With the command line, you create that link as:

sudo mkdir /mnt/Downloads
sudo chown $USER:$USER /mnt/Downloads
rm ~/Downloads
ln -s /mnt/Downloads ~/Downloads

That is all.

2
  • +1; Please comment about the choice between /mnt and /media – sudodus Jun 23 at 10:22
  • 3
    @sudodus I removed the /media because I do not prefer to go into that discussion here. The tool proposes /mnt even though, traditionally, that would be for temporary mounts only. /media also is not fully suited: it is designed for unpluggable media. Personally, I probably would use /mnt, but one also could create a /partitions folder or something else. – vanadium Jun 23 at 10:28
2

To change the permission do this in terminal (substitute username/groupname):

sudo chown username /media/andres/varios

if you want to set the group as well use

sudo chown username:groupname /media/andres/varios

For automatic mount on boot have a look at the

/etc/fstab

file and how it's used. Have a look into https://help.ubuntu.com/community/Fstab

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.