Bug 693449

Summary: Boot time mounting of /media does not work
Product: [Fedora] Fedora Reporter: Artem <artem.goncharov>
Component: systemdAssignee: Lennart Poettering <lpoetter>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 15CC: johannbg, lpoetter, metherid, mschmidt, notting, plautrba
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-04-04 19:07:07 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 Artem 2011-04-04 17:42:04 UTC
Description of problem:
Boot time mounting of partition into /media mountpoint does not work, after boot 'mount -a' - mounts it. After the boot tmpfs is mounted as /media.

The same partition is mounted with no problems into /mnt point

fstab
...
LABEL=53      /media     ext3 defaults  1 2
LABEL=53      /mnt       ext3 defaults  1 2
...

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

How reproducible:
always

Steps to Reproduce:
1. Modify /etc/fstab to mount any partition into /media
  
Actual results:
partition is not mounted

Expected results:
partition is mounted (as it was always before F15)


Additional info:
I'm not sure, that it is systemd bug, but found some similar issues systemd related.

Comment 1 Lennart Poettering 2011-04-04 18:40:05 UTC
systemd's native unit /lib/systemd/system/media.mount overrides the entry in /etc/fstab.

What precisely are you trying to do here? /media is merely a mount point where to mount usb sticks and other removable media to. There's not value in making that a HDD of any kind, which is why we mount it as tmpfs by default.

Comment 2 Artem 2011-04-04 18:52:59 UTC
Historically I used /media for all my multimedia files on a separate partition for this.
Your intention is clear for me and I will not argue too much if you close this as notabug (it is basically just a naming conflict), but I used to this behavior and usage.

Comment 3 Lennart Poettering 2011-04-04 19:07:07 UTC
Well, we follow the FHS on this dir. /media was created with the strict use of mounting removeable media to it in mind. /mnt is something without any structure where the admin can put what he wants, but /media is really well defined, so I see nothing to fix here in systemd.

In fact /media was created as replacement for /mnt for the removeable media purpose and only for that. Since /mnt had no defined semantics it wasn't suitable for that.