Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#38911 - [udev] not deleting old mountpoints under /media

Attached to Project: Arch Linux
Opened by Maciej Ł (loziniak) - Friday, 14 February 2014, 11:14 GMT
Last edited by Gerardo Exequiel Pozzi (djgera) - Friday, 14 February 2014, 15:11 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture x86_64
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
When shutting down a computer without unmounting the drive manually-mounted under /media, old mountpoints exist after turning on the computer again.

Additional info:
* package version(s)
udisks 1.0.4-8
udisks2 2.1.1-3
systemd 208-11
gvfs 1.18.3-3

Steps to reproduce:
1. configure udisks to share mounted disks: https://wiki.archlinux.org/index.php/Udev#udisks2_-_mount_to_.2Fmedia
2. click on drive's icon on xfce4 desktop to mount it (should be mounted in /media/something)
3. shut down the computer without unmounting the drive
4. turn on the computer and repeat step 2. now it's mounted in /media/something1, and there is also an empty /media/something.

This task depends upon

Closed by  Gerardo Exequiel Pozzi (djgera)
Friday, 14 February 2014, 15:11 GMT
Reason for closing:  Not a bug
Comment by Jan de Groot (JGC) - Friday, 14 February 2014, 13:30 GMT
If you want to use the deprecated /media dir, you'll have to mount it on tmpfs just like /run is mounted that way.

Udisks stores mounts in /media and /run/media as temporary data that doesn't persist across reboots, so if you reboot without unmounting through udisks first, those directories are not in the udisks database and are not considered as valid mountpoint for use by udisks.
Comment by Maciej Ł (loziniak) - Friday, 14 February 2014, 14:22 GMT
Is there a way to make udisks mount it in /run/media/something instead of /run/media/$USER/something ? I think that would be an optimal configuration in my case.

Is this a good place to ask such questions or should I move somewhere else?

Anyway, I assume this is not a bug and the non-persistence of mountpoints is intended? Or would it be ok to suggest udisks' developers to try implementing persistence?
Comment by Jan de Groot (JGC) - Friday, 14 February 2014, 14:37 GMT
If you want persistent mountpoints, you shouldn't use udisks but use /etc/fstab instead.
Comment by Maciej Ł (loziniak) - Friday, 14 February 2014, 14:59 GMT
I added a line for my drive in /etc/fstab with noauto option and that's exactly what I needed. Thank you, it was not obvious for me.

Loading...