Score:3

How I use the drive I create to make it usable to download there?

cn flag

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...

Score:5
cn flag

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.

sudodus avatar
jp flag
+1; Please comment about the choice between `/mnt` and `/media`
vanadium avatar
cn flag
@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.
Score:2
ro flag

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

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.