LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 10-10-2017, 03:51 AM   #1
MurderousMincePie
LQ Newbie
 
Registered: Feb 2016
Posts: 8

Rep: Reputation: Disabled
Question 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.

So I changed my /etc/fstab file and added this:

LABEL=2TB\040Internal /run/media/myuser/2TB\040Internal btrfs nosuid,nodev,nofail,x-gvfs-show 0 0

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).
 
Old 10-10-2017, 05:52 AM   #2
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth? I would say I hope so but I'm not so sure about that... I could just be a figment of your imagination too.
Distribution: CentOS at the time of this writing, but some others over the years too...
Posts: 2,616

Rep: Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313
Quote:
Originally Posted by MurderousMincePie View Post
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.

So I changed my /etc/fstab file and added this:

LABEL=2TB\040Internal /run/media/myuser/2TB\040Internal btrfs nosuid,nodev,nofail,x-gvfs-show 0 0

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).
I think one problem might be this:

Code:
LABEL=2TB\040Internal /run/media/myuser/2TB\040Internal btrfs nosuid,nodev,nofail,x-gvfs-show 0 0
It does not look correct to me.

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.
 
1 members found this post helpful.
Old 10-10-2017, 06:07 AM   #3
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4864Reputation: 4864Reputation: 4864Reputation: 4864Reputation: 4864Reputation: 4864Reputation: 4864Reputation: 4864Reputation: 4864Reputation: 4864Reputation: 4864
Quote:
Originally Posted by MurderousMincePie View Post
(is /run ephemeral?).
/run is a tmpfs and as such all its content will not survive a reboot.
 
Old 10-10-2017, 06:41 AM   #4
MurderousMincePie
LQ Newbie
 
Registered: Feb 2016
Posts: 8

Original Poster
Rep: Reputation: Disabled
Smile

Quote:
Originally Posted by jsbjsb001 View Post
I think one problem might be this:

Code:
LABEL=2TB\040Internal /run/media/myuser/2TB\040Internal btrfs nosuid,nodev,nofail,x-gvfs-show 0 0
It does not look correct to me.

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.
 
  


Reply

Tags
arch linux, fstab, openrc, udisks2


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] how do I create a permanent mount point with the "NEW" /etc/fstab Mystified Debian 14 02-22-2017 09:01 PM
Redhat Linux 4.8 error -mount: mount point /oracle does not exist for new /etc/fstab entries bellnarm Linux - Server 1 11-23-2011 05:09 AM
Can't see cdroom Fedora Core 6 says "mount point does not exist? BootLaptop Linux - Software 2 06-18-2007 03:08 PM
Fstab - "mount point does not exist" wahming Linux - Newbie 2 02-05-2007 03:34 AM
problems with smbfs mount-point in /etc/fstab - "mount -a" works, but not at boottime MarkSide Linux - Software 4 11-20-2005 03:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration