Bug 711140

Summary: mountpoints under /media are deleted
Product: [Fedora] Fedora Reporter: Ferry Huberts <mailings>
Component: systemdAssignee: Lennart Poettering <lpoetter>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 15CC: harald, johannbg, lpoetter, metherid, mschmidt, notting, plautrba
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-06-06 16:46:49 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Ferry Huberts 2011-06-06 16:24:31 UTC
Description of problem:
Mountpoints that are under /media and are defined in /etc/fstab are deleted on shutdown/reboot

Version-Release number of selected component (if applicable):
systemd.x86_64 26-2.fc15

How reproducible:
always

Steps to Reproduce:
1. put a mountpoint in /etc/fstab like:
  storage:/media/Data1 /media/Data1 nfs defaults,noauto,users,bg 0 0
2. create the mountpoint, for the example: /media/Data1
3. optionally mount
4. reboot
  
Actual results:
mountpoint /media/Data1 is gone

Expected results:
mountpoint /media/Data1 must still be there


Additional info:
I _have_ to place the mountpoint under /media otherwise I can't use it from nautilus. Placing it under /mnt will result in the mountpoint not showing up in nautilus.

Comment 1 Michal Schmidt 2011-06-06 16:46:49 UTC
It disappears because /media is a tmpfs. Putting statically defined mountpoints there goes against the purpose of /media (which is for removable media).
If nautilus has a problem with it, it should be fixed there.

As an ugly workaround perhaps you could have it created after every boot using a fragment in /etc/tmpfiles.d (I haven't tried it). Or just mkdir and mount it from /etc/rc.local.

Comment 2 Ferry Huberts 2011-06-06 16:59:08 UTC
ok, fair enough.
sorry for not checking tmpfs.

what to do now?
reassign to nautilus? with a different title?
something like 'mountpoints under /mnt in /etc/fstab do not show up' ?

Comment 3 Michal Schmidt 2011-06-06 17:07:46 UTC
(In reply to comment #2)
> what to do now?
> reassign to nautilus? with a different title?
> something like 'mountpoints under /mnt in /etc/fstab do not show up' ?

I suggest you make it a new bug against nautilus. The title should be fine.

Comment 4 Harald Hoyer 2011-06-17 10:03:19 UTC
> Additional info:
> I _have_ to place the mountpoint under /media otherwise I can't use it from
> nautilus. Placing it under /mnt will result in the mountpoint not showing up in
> nautilus.

You can still browse to /mnt with nautilus... you might want to generate bookmarks for quick access.

Comment 5 Ferry Huberts 2011-06-17 10:13:09 UTC
yes. I've done that.
but then I still have to open up a terminal to actually mount it...

compared to F14 this is a _regression_

Comment 6 Harald Hoyer 2011-06-17 12:45:15 UTC
another solution would be, to add the directories to /etc/tmpfiles.d/
$ man tmpfiles.d

Comment 7 Ferry Huberts 2011-06-17 12:55:57 UTC
see also 711376

Comment 8 Ferry Huberts 2011-06-17 12:57:20 UTC
#711376

Comment 9 Harald Hoyer 2011-06-17 13:07:56 UTC
you mean bug 711376 :-)