! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Drive isn't automatically mounted on startup
Status:
RESOLVED: MOVED
Product:
Thunar-volman
Component:
General

Comments

Description Manuel C. 2007-08-23 13:54:59 CEST
If I plug a removable drive while the system is running, it is detected and auto-mounted, but if I start the system with the drive *already* plugged, the drive is detected (I can see its icon) but it isn't automatically mounted.
Comment 1 Benedikt Meurer editbugs 2007-11-28 20:08:31 CET
Why should it be mounted on startup?
Comment 2 Manuel C. 2007-11-28 22:35:01 CET
Because if I insert it and it is auto-mounted, then it should be auto-mounted if it already inserted on startup (it would be a coherent behaviour: the concept is "mount what is inserted").
Comment 3 rogue_ronin 2008-04-05 14:09:24 CEST
Totally agree with this.  I have a regular pair of external drives, for my desktop-replacement laptop, one of which I keep music on.  MPD will not start because I can't get the drive to mount at startup.  I have to killall any running MPDs, then mount the drive with a right-click, then run MPD -- everytime I boot.  I thought I was going crazy for a while -- the music was there when I double-clicked on the drive (because then Thunar would mount the drive.)  As to the question "why should it be mounted at startup?" -- why SHOULDN'T it be?  It's plugged in for a reason, isn't it? :)  And I've set drives to be automounted in preferences.

I assume that currently there is nowhere to configure this behavior?  volmanrc doesn't seem to have anything.

Thunar rocks, honestly.  I've fallen in love with Custom Actions, and the Renamer.

m a r


(In reply to comment #2)
> Because if I insert it and it is auto-mounted, then it should be auto-mounted
> if it already inserted on startup (it would be a coherent behaviour: the
> concept is "mount what is inserted").
> 

Comment 4 Benedikt Meurer editbugs 2009-11-07 10:31:11 CET
Mass reassign. Nick, please check these pending reports. Thx.
Comment 5 Lee Trager 2010-01-07 22:23:43 CET
Created attachment 2769 
Parse all UDI's at start

The attached patch fixes this bug. It was written for thunar 0.2.0-2, I'll update it to the latest version when I have the time or someone else can. What this patch does is when the thunar daemon is first started it gets all the UDI's from HAL and handles each of them as if they were just plugged in.

This does mean that if you have something configured to pop-up when a mouse or printer is plugged in it will do that as soon as thunar is started. It would however be a very simple change for it to only handle storage devices.
Comment 6 Lee Trager 2010-01-22 20:35:43 CET
Created attachment 2791 
Updated patch which only handles volumes

While thunar-volman can handle many different devices it really doesn't make sense to pass every UDI to thunar-volman. It actually causes problems so just pass the volumes. This mimics that way gnome-volume-manager does it.
Comment 7 Lee Trager 2010-01-22 20:37:43 CET
I forgot to mention I've been testing this patch on both x86 and armel. The platform should be changed to all Linux.
Comment 8 Lee Trager 2010-02-22 20:38:52 CET
I finally got some time to test this under Xfce 4.6 with thunar 1.0.1 and thunar-volman 0.3.80. I can confirm the posted patch works with the latest packages.
Comment 9 Graham 2012-05-12 14:10:21 CEST
I'm having this issue too - when my laptop is docked, I like to use external drives for back-up and media. fstab's not a great option because I dock / undock the laptop a lot. 

Can I apply still apply this patch to the current source code, or is it outdated?
Comment 10 dg1727 2012-08-29 19:40:10 CEST
*** Bug 9240 has been marked as a duplicate of this bug. ***
Comment 11 Graham 2012-08-30 03:06:30 CEST
I can get my "regular" drives auto-mounted using a script during startup, as follows (Xubuntu 12.04): 

thunar-volman --device-added /sys$(udevadm info -q path -n /dev/disk/by-uuid/09f41052-ce64-4d14-9684-e0b5bd241a5c)

(replace UUID with the UUID of your drive)

This makes thunar volume manager think the disk has just been added, allowing it to do its mounting thing. It uses udevadm to convert the UUID to the sysfs device path, as thunar-volman does not accept UUIDs. 

You can get disk UUIDs (on Ubuntu) with: 
ls -la /dev/disk/by-uuid/
Comment 12 dg1727 2012-08-30 20:44:08 CEST
Thank you, Graham, for that tip.  I have made a note of it.  

I also noticed that the submitted patch (attachment 2791 ) uses HAL, which has been removed from at least some common Linux distros (Ubuntu etc.).  

I hope that an improved version of the submitted patch will still be added to Xfce, since:  

(a) the script as offered by Graham is a workaround that people shouldn't have to do, and 

(b) some systems (including that of my user who is affected by this) include external drives that could be re-partitioned or replaced by other drives that have a different UUID, and the script would have to be changed manually to match.
Comment 13 dg1727 2012-11-23 19:54:44 CET
This issue is still present in XFCE 4.10 (Xubuntu 12.10).  As said in comment 3, the icons are on the desktop at startup, but the volumes are not mounted (the icons are shaded out).
Comment 14 Peter F. Patel-Schneider 2013-02-27 15:31:37 CET
The following script, adapting the idea from Graph, mounts all the disk partitions that have a label:

#!/bin/csh
sleep 5
foreach i ( `/bin/ls /dev/disk/by-label` ) 
  /home/local/SoftwareDownloads/thunar-volman-0.8.0/thunar-volman/thunar-volman --device-added /sys/`udevadm info -q path -n /dev/disk/by-label/$i`
end

This seems to do the right thing for me, but is probably dependent on having precisely the right partitions labelled.  

It still would be better to have these partitions/volumes mounted at startup in a better way.
Comment 15 denis.prost 2015-01-21 09:13:47 CET
I second this.
Here is why I need that feature : my backup external disk is always connected to my computer, and backups are scheduled, so everything is automated, and I want to be sure backups are performed, even if I forgot to manually mount the backup disk after start up.
Thanks for taking care of it.
Comment 16 Rik Shaw 2020-04-29 02:30:04 CEST
Since nearly all other desktop environments will automount external USB drives when the user logs in, I too think this needs to be patched. I had multiple people we support confused by it this week.
Comment 17 Git Bot editbugs 2020-05-25 23:09:28 CEST
-- GitLab Migration Automatic Message --

This bug has been migrated to xfce.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.xfce.org/xfce/thunar-volman/-/issues/1.

Please create an account or use an existing account on one of our supported OAuth providers. 

If you want to fork to submit patches and merge requests please continue reading here: https://docs.xfce.org/contribute/dev/git/start#gitlab_forks_and_merge_requests

Also feel free to reach out to us on the mailing list https://mail.xfce.org/mailman/listinfo/xfce4-dev

Bug #3490

Reported by:
Manuel C.
Reported on: 2007-08-23
Last modified on: 2020-05-25
Duplicates (1):
  • 9240 Removable volumes should be automounted on startup

People

Assignee:
Jannis Pohlmann
CC List:
9 users

Version

Version:
unspecified

Attachments

Parse all UDI's at start (3.26 KB, patch)
2010-01-07 22:23 CET , Lee Trager
no flags
Updated patch which only handles volumes (3.60 KB, patch)
2010-01-22 20:35 CET , Lee Trager
no flags

Additional information