I have a storage which I've dedicated it to be for backup of files. It's written in fstab but even if I remove the # from its line, its contents won't appear.
I've heard there's a way to mount and unmount a storage whenever you need it (or not need it) with the mount point from fstab without having to reboot the PC but I can't find anything in Google or I'm probably asking it the wrong way.
I know gnome-disks can mount it but in this case I prefer a terminal command.
Any suggestions?
It may be useful if the relevant line in the /etc/fstab file is shown here so readers can get a better handle on it.
In the past here it was the use of the mount options "noauto" and "user" in the mount options field in the configuration that enabled the external drive to be mounted by a user at will without the drive being mounted at boot.
For example, in the case of an external cdrom drive the line looked like so:
Code:
/dev/sr0 /media/cdrom0 udf,iso9660 user,noauto 0 0
That configuration enabled the cdrom to be mounted by any user with the command:
The noauto option meant the drive would not be mounted at boot, but had to be called by command whereupon it would be mounted at /media/cdrom which was a directory that had to exist.
In the case of an external hard drive, one of which I don't have at the moment, the UUID of the drive may have been used for its device name in the first field, and the filesystem was ext4, and, if I recall correctly, the "rw" option was also there. There may have been other mount options, but I can't recall precisely.
EDIT: Now thinking about it again, there was a slight complication because of the kernel's tendency to name drives in unpredictable ways, so sometimes one drive was /dev/sda one day, but /dev/sdb another, so I always checked with the command: lsblk, to see which drive had which name so I could use the right /dev name to call it.