[SOLVED] Fstab fails to mount second hard drive to /run/media/$USER: "mount point does not exist".
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Fstab fails to mount second hard drive to /run/media/$USER: "mount point does not exist".
In the past I've lazily mounted my second hard drive to /mnt which worked fine until Thunar stopped recognising hard disks mounted there. You now need to mount to /run/media/$USER.
Then I ran "mount -a" to test it and got "mount: /run/media/myuser/2TB Internal: mount point does not exist". I created the mount point manually and it then mounted fine but if I restart my machine that mount point disappears and is not regenerated (is /run ephemeral?).
I was under the impression the udisks2 would create /run/media/$USER on boot, which I do have enabled (on Arch Linux with OpenRC, tried at both the default and boot runlevel).
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881
Rep:
Quote:
Originally Posted by MurderousMincePie
In the past I've lazily mounted my second hard drive to /mnt which worked fine until Thunar stopped recognising hard disks mounted there. You now need to mount to /run/media/$USER.
Then I ran "mount -a" to test it and got "mount: /run/media/myuser/2TB Internal: mount point does not exist". I created the mount point manually and it then mounted fine but if I restart my machine that mount point disappears and is not regenerated (is /run ephemeral?).
I was under the impression the udisks2 would create /run/media/$USER on boot, which I do have enabled (on Arch Linux with OpenRC, tried at both the default and boot runlevel).
The other problem might be that using the /run folder, might be problematic.
I would suggest you create a folder outside of the /run folder, like for example; /home/yourusername/mymountpointhere
Change mymountpointhere to a name not used by anything else.
Also, fstab mounts are usually done via UUID rather than the LABEL of the device.
Here's an example of my /etc/fstab for reference;
Code:
#
# /etc/fstab
# Created by anaconda on Sun Jul 9 07:31:41 2017
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
UUID=0c2b3be3-f375-4af7-8f48-fa194aa08fbb swap swap defaults 0 0
UUID=e80910b3-fc9b-4218-afb9-9965ad8f699d / ext4 defaults 1 1
/dev/mapper/luks-f503b463-4d79-4fe3-8227-2408ad6130d8 /home ext4 defaults,x-systemd.device-timeout=0 1 2
# UUID=14f4df74-cc56-438f-bbc1-6e2eb52bb78e /restorevol ext4 defaults 1 2
UUID=70bffaeb-9171-4c23-81b5-2fee4a7842af /multimediavol ext4 defaults 1 2
Best of luck with it.
Just corrected my fstab file now. I thought it was necessary to mount to /run for some reason . Changed it to mount via the UUID of my hard drive and set the mount point as /home/myuser/Media/2TB Internal (or "/home/myuser/Media/2TB\040Internal" in fstabish). It now mounts properly and is registered by Thunar. Thanks.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.