[arch-general] Is there a non file manager daemon for automounting like the ones provided by "pcmanfm -d"
Hi, I've been using "pcmanfm -d &" in my ~/.xinitrc, as suggested by [1]. However I would like something similar without the need of the file manager. Hopefully something that shows in the tray bar what's mounted and allows umounting. I don't use a DE, just plain fluxbox, and having to use whether pcmanfm or thunar or any other file manager with daemon capability is something I would like to prevent. I read about ldm, suggested by [2], but it doesn't seem to offer what I'm looking for. Seems to be something to automount with particular uid/gid only. though I might be wrong. Any suggestions? Thanks, -- Javier [1] https://wiki.archlinux.org/index.php/File_manager_functionality#File_manager... [2] https://wiki.archlinux.org/index.php/List_of_applications#Mount_tools
On Tue, Jan 6, 2015 at 11:51 PM, Javier Vasquez <j.e.vasquez.v@gmail.com> wrote: Hi,
I've been using "pcmanfm -d &" in my ~/.xinitrc, as suggested by [1]. However I would like something similar without the need of the file manager. Hopefully something that shows in the tray bar what's mounted and allows umounting.
I don't use a DE, just plain fluxbox, and having to use whether pcmanfm or thunar or any other file manager with daemon capability is something I would like to prevent.
I read about ldm, suggested by [2], but it doesn't seem to offer what I'm looking for. Seems to be something to automount with particular uid/gid only. though I might be wrong.
Any suggestions?
Thanks,
-- Javier
[1] https://wiki.archlinux.org/index.php/File_manager_functionality#File_manager... [2] https://wiki.archlinux.org/index.php/List_of_applications#Mount_tools
BTW, using gvfs is not a problem, but might make things easier recognizing the filesystem of the partitions. Thanks, -- Javier
On January 7, 2015 1:03:35 AM EST, Javier Vasquez <j.e.vasquez.v@gmail.com> wrote:
On Tue, Jan 6, 2015 at 11:51 PM, Javier Vasquez <j.e.vasquez.v@gmail.com> wrote: Hi,
I've been using "pcmanfm -d &" in my ~/.xinitrc, as suggested by [1]. However I would like something similar without the need of the file manager. Hopefully something that shows in the tray bar what's mounted and allows umounting.
I don't use a DE, just plain fluxbox, and having to use whether pcmanfm or thunar or any other file manager with daemon capability is something I would like to prevent.
I read about ldm, suggested by [2], but it doesn't seem to offer what I'm looking for. Seems to be something to automount with particular uid/gid only. though I might be wrong.
Any suggestions?
Thanks,
-- Javier
[1] https://wiki.archlinux.org/index.php/File_manager_functionality#File_manager... [2] https://wiki.archlinux.org/index.php/List_of_applications#Mount_tools
BTW, using gvfs is not a problem, but might make things easier recognizing the filesystem of the partitions.
Thanks,
I believe it's possible to mount with systemd (I haven't tried this yet). It should be able to automatically mount drives you've written the unit files for, but I don't know about automatic mounting (hot-swapping USB drives, etc.). -- vixsomnis
I believe it's possible to mount with systemd (I haven't tried this yet).
It should be able to automatically mount drives you've written the unit files for, but I don't know about automatic mounting (hot-swapping USB drives, etc.). -- vixsomnis
Oh, yes it's, but actually I prefer and use autofs for media I know. I want something like what pcmanfm offers for unknown media. BTW, systemd requires some trick for auto umounting (way simpler with autofs suing time to umount). I do use autofs as I said, but I'm looking for something that makes me aware of new media available, and allows me to mount/umount it at will without root permissions, and without having me know what that media is. Thanks, -- Javier
在 01/07/15 13:51, Javier Vasquez 写道:
Hi,
I've been using "pcmanfm -d &" in my ~/.xinitrc, as suggested by [1]. However I would like something similar without the need of the file manager. Hopefully something that shows in the tray bar what's mounted and allows umounting.
I don't use a DE, just plain fluxbox, and having to use whether pcmanfm or thunar or any other file manager with daemon capability is something I would like to prevent.
I read about ldm, suggested by [2], but it doesn't seem to offer what I'm looking for. Seems to be something to automount with particular uid/gid only. though I might be wrong.
Any suggestions?
If you don't mind pulling gjs as a dependency, I have two simple scripts at https://bitbucket.org/XeCycle/gjs-mount. The scripts are trivial; seems not hard to rewrite in C or Vala, to eliminate this dependency, but I have not the time. -- Carl Lei (XeCycle) Department of Physics and Astronomy, SJTU
If you don't mind pulling gjs as a dependency, I have two simple scripts at https://bitbucket.org/XeCycle/gjs-mount. The scripts are trivial; seems not hard to rewrite in C or Vala, to eliminate this dependency, but I have not the time.
Looks similar to pmount. Which is good, except it lacks the daemon part notifying and asking whether to mount when new device is found... Am I mistaken? Thanks, -- Javier
Hello, Im using udiskie with awesom WM. Im not sure if thats what youre searching for, but it shows what device is mounted & allows to unmount these. Im even more uncertain about what you meant by that: "Seems to be something to automount with particular uid/gid only.", but my USB Stick was mounted by his "name" (i forgot the name of that feature^^) => /media/USB\ Stick Hope that helps, regards Am 2015-01-07 06:51, schrieb Javier Vasquez:
Hi,
I've been using "pcmanfm -d &" in my ~/.xinitrc, as suggested by [1]. However I would like something similar without the need of the file manager. Hopefully something that shows in the tray bar what's mounted and allows umounting.
I don't use a DE, just plain fluxbox, and having to use whether pcmanfm or thunar or any other file manager with daemon capability is something I would like to prevent.
I read about ldm, suggested by [2], but it doesn't seem to offer what I'm looking for. Seems to be something to automount with particular uid/gid only. though I might be wrong.
Any suggestions?
Thanks,
Another vote for udiskie. Python based, but works. On Wed, Jan 7, 2015 at 1:29 AM, mustermann, max <bluemorpho@mykolab.com> wrote:
Hello,
Im using udiskie with awesom WM. Im not sure if thats what youre searching for, but it shows what device is mounted & allows to unmount these. Im even more uncertain about what you meant by that: "Seems to be something to automount with particular uid/gid only.", but my USB Stick was mounted by his "name" (i forgot the name of that feature^^) => /media/USB\ Stick
Hope that helps,
regards
Am 2015-01-07 06:51, schrieb Javier Vasquez:
Hi,
I've been using "pcmanfm -d &" in my ~/.xinitrc, as suggested by [1]. However I would like something similar without the need of the file manager. Hopefully something that shows in the tray bar what's mounted and allows umounting.
I don't use a DE, just plain fluxbox, and having to use whether pcmanfm or thunar or any other file manager with daemon capability is something I would like to prevent.
I read about ldm, suggested by [2], but it doesn't seem to offer what I'm looking for. Seems to be something to automount with particular uid/gid only. though I might be wrong.
Any suggestions?
Thanks,
-- - Toyam
Another vote for udiskie. Python based, but works.
Im using udiskie with awesom WM. Im not sure if thats what youre searching for, but it shows what device is mounted & allows to unmount these. Im even more uncertain about what you meant by that: "Seems to be something to automount with particular uid/gid only.", but my USB Stick was mounted by his "name" (i forgot the name of that feature^^) => /media/USB\ Stick
Sounds like it. I'll have to take a look. From [1]: ------- It has optional mount notifications, a GTK tray icon and user level CLIs for manual mount and unmount operations. ------- What seems to miss is offering to mount/umount through gui, since it says to offer CLI (which kind of deceives the gtk tray icon). I'll play with it. Thanks, -- Javier [1] https://github.com/coldfix/udiskie
hey, you can install it from community, i think. And it mounts automatically new devices. you're welcome :) regards Am 2015-01-07 21:28, schrieb Javier Vasquez:
Another vote for udiskie. Python based, but works.
Im using udiskie with awesom WM. Im not sure if thats what youre searching for, but it shows what device is mounted & allows to unmount these. Im even more uncertain about what you meant by that: "Seems to be something to automount with particular uid/gid only.", but my USB Stick was mounted by his "name" (i forgot the name of that feature^^) => /media/USB\ Stick
Sounds like it. I'll have to take a look. From [1]:
------- It has optional mount notifications, a GTK tray icon and user level CLIs for manual mount and unmount operations. -------
What seems to miss is offering to mount/umount through gui, since it says to offer CLI (which kind of deceives the gtk tray icon).
I'll play with it.
Thanks,
Hi Javier: On Wed, Jan 7, 2015 at 12:51 AM, Javier Vasquez <j.e.vasquez.v@gmail.com> wrote:
I've been using "pcmanfm -d &" in my ~/.xinitrc, as suggested by [1]. However I would like something similar without the need of the file manager. Hopefully something that shows in the tray bar what's mounted and allows umounting.
I don't use a DE, just plain fluxbox, and having to use whether pcmanfm or thunar or any other file manager with daemon capability is something I would like to prevent.
I read about ldm, suggested by [2], but it doesn't seem to offer what I'm looking for. Seems to be something to automount with particular uid/gid only. though I might be wrong.
Any suggestions?
I wrote a small C program a while ago that automounts removable devices using udisks2 [1]. I've been using it for a while, and it seems to work well. You might find it useful; it's in the AUR at [2]. It optionally will use desktop notifications to tell you when something is mounted (I use dunst [3] to display them). You do have to manually unmount devices using the terminal, but that's usually easier if you have good tab completion in your shell. -Tom [1]: https://github.com/tom5760/usermount [2]: https://aur.archlinux.org/packages/usermount-git/ [3]: https://www.archlinux.org/packages/community/x86_64/dunst/
On Thu, 8 Jan 2015 09:18:08 -0500, Tom Wambold wrote:
[2]: https://aur.archlinux.org/packages/usermount-git/ [3]: https://www.archlinux.org/packages/community/x86_64/dunst/
What needs to be killed to disable dunst? After killall dunst I still get notifications. -- Guerilla Open Access Manifesto: https://archive.org/stream/GuerillaOpenAccessManifesto/Goamjuly2008_djvu.txt
On Thu, 8 Jan 2015 22:40:04 +0100, Ralf Mardorf wrote:
On Thu, 8 Jan 2015 09:18:08 -0500, Tom Wambold wrote:
[2]: https://aur.archlinux.org/packages/usermount-git/ [3]: https://www.archlinux.org/packages/community/x86_64/dunst/
What needs to be killed to disable dunst? After killall dunst I still get notifications.
PS: The man page mentions "MISCELLANEOUS Dunst can be paused by sending a notification with a summary of "DUNST_COMMAND_PAUSE" and resumed with a summary of "DUNST_COMMAND_RESUME". Alternatively you can send SIGUSR1 and SIGUSR2 to pause and unpause respectivly. For Example: killall -SIGUSR1 dunst # pause killall -SIGUSR2 dunst # resume When paused dunst will not display any notifications but keep all notifications in a queue. This can for example be wrapped around a screen locker (i3lock, slock) to prevent flickering of notifications through the lock and to read all missed notifications after returning to the computer." but I want exit it completely. -- Guerilla Open Access Manifesto: https://archive.org/stream/GuerillaOpenAccessManifesto/Goamjuly2008_djvu.txt
PPS: On Thu, 8 Jan 2015 22:46:57 +0100, Ralf Mardorf wrote:
On Thu, 8 Jan 2015 22:40:04 +0100, Ralf Mardorf wrote:
On Thu, 8 Jan 2015 09:18:08 -0500, Tom Wambold wrote:
[2]: https://aur.archlinux.org/packages/usermount-git/ [3]: https://www.archlinux.org/packages/community/x86_64/dunst/
What needs to be killed to disable dunst? After killall dunst I still get notifications. [snip] killall -SIGUSR1 dunst # pause killall -SIGUSR2 dunst # resume
When paused dunst will not display any notifications but keep all notifications in a queue. [snip] but I want exit it completely.
[rocketmouse@archlinux ~]$ killall -SIGKILL dunst didn't disable notifications [rocketmouse@archlinux ~]$ killall -SIGSTOP dunst disabled notifications. Does it mean that nothing started by dunst is running anymore?
I know for a fact that udiskie allows for mounting and unmounting from the GUI. On Thu, Jan 8, 2015 at 5:00 PM, Ralf Mardorf <ralf.mardorf@rocketmail.com> wrote:
PPS:
On Thu, 8 Jan 2015 22:46:57 +0100, Ralf Mardorf wrote:
On Thu, 8 Jan 2015 22:40:04 +0100, Ralf Mardorf wrote:
On Thu, 8 Jan 2015 09:18:08 -0500, Tom Wambold wrote:
[2]: https://aur.archlinux.org/packages/usermount-git/ [3]: https://www.archlinux.org/packages/community/x86_64/dunst/
What needs to be killed to disable dunst? After killall dunst I still get notifications. [snip] killall -SIGUSR1 dunst # pause killall -SIGUSR2 dunst # resume
When paused dunst will not display any notifications but keep all notifications in a queue. [snip] but I want exit it completely.
[rocketmouse@archlinux ~]$ killall -SIGKILL dunst didn't disable notifications [rocketmouse@archlinux ~]$ killall -SIGSTOP dunst disabled notifications. Does it mean that nothing started by dunst is running anymore?
-- - Toyam
On Thu, Jan 8, 2015 at 4:06 PM, Toyam Cox <csupercomputergeek@gmail.com> wrote:
I know for a fact that udiskie allows for mounting and unmounting from the GUI.
OK, great to know. I installed it, though not yet tried it. I'll do it as soon as I can. Thanks, -- Javier
On Thu, 8 Jan 2015 16:34:28 -0600, Javier Vasquez wrote:
On Thu, Jan 8, 2015 at 4:06 PM, Toyam Cox wrote:
I know for a fact that udiskie allows for mounting and unmounting from the GUI.
OK, great to know. I installed it, though not yet tried it. I'll do it as soon as I can.
The difference between usermount and udiskie I noticed is, that usermount mounts to /run/media/USER/LABEL and udiskie mounts to /media/LABEL -- Guerilla Open Access Manifesto: https://archive.org/stream/GuerillaOpenAccessManifesto/Goamjuly2008_djvu.txt
On Fri, 9 Jan 2015 13:44:09 +0100 Ralf Mardorf <ralf.mardorf@rocketmail.com> wrote:
The difference between usermount and udiskie I noticed is, that
usermount mounts to /run/media/USER/LABEL and udiskie mounts to /media/LABEL
That difference is the difference between udisks and udisks2. You can make udiskie use udisks2 with the -2 switch, I believe. Regards, ~Celti
On Fri, 2015-01-09 at 13:44 +0100, Ralf Mardorf wrote:
On Thu, 8 Jan 2015 16:34:28 -0600, Javier Vasquez wrote:
On Thu, Jan 8, 2015 at 4:06 PM, Toyam Cox wrote:
I know for a fact that udiskie allows for mounting and unmounting from the GUI.
OK, great to know. I installed it, though not yet tried it. I'll do it as soon as I can.
The difference between usermount and udiskie I noticed is, that
usermount mounts to /run/media/USER/LABEL and udiskie mounts to /media/LABEL
FWIW usermount shouldn't be used with external green HDDs, it does cause the known issue ;). I didn't test if udiskie suffers from this issue too. I still prefer to mount manually using scripts. Rodent (and a few other tools, have forgotten the names) btw. allows to mount by a click and doesn't wake up external green drives. This might or might be something the OP should consider.
from my .bashrc: mounted() { mount | grep -q "on $1 type" } safe_umount() { while mounted "$1"; do echo sudo umount "$1" sudo umount "$1" || sleep 5 done } penmount() { local target="$HOME/mnt" options . "$HOME/bin/mount_lib" if [[ $1 == -u ]]; then if ! mounted "$target"; then echo "Error: ${target/$HOME/~} not mounted" >&2 return 1 fi sync safe_umount "$target" else if mounted "$target"; then echo "Error: ${target/$HOME/~} is already mounted" >&2 return 1 fi echo sudo blkid -p "$1" eval local "$(/usr/bin/sudo /usr/bin/blkid -p "$1" | cut -d : -f 2-)" [[ "$TYPE" == "vfat" || "$TYPE" == "ntfs" ]] && options="uid=$UID,gid=$UID" echo sudo mount -o "$options" "$1" "$target" sudo mount -o "$options" "$1" "$target" fi } Function is in regular use, I don't know if it's useful to the topic, and needs a tweak if your user doesn't have a group with the same group id. cheers! mar77i
FWIW usermount shouldn't be used with external green HDDs, it does cause the known issue ;). I didn't test if udiskie suffers from this issue too. I still prefer to mount manually using scripts. Rodent (and a few other tools, have forgotten the names) btw. allows to mount by a click and doesn't wake up external green drives. This might or might be something the OP should consider.
What is the known issue with external green HDDs? Is that common to using udisk2 (if so, "udiskie -2" does suffer it)? -- Javier
What is the known issue with external green HDDs? Is that common to using udisk2 (if so, "udiskie -2" does suffer it)?
Just wanted to let you know udiskie with th following commands: udiskie -2 -t -A -F udiskie -2 -t -A -f xfe Functionally it provides what I was looking for. With "-A" you can notice I was not really much interested on the "auto" mount, but rather in the ability to be able to easily mount/umount at will with a click. The tray icon is great for that. The "man" page indicates "-f" is depricated, though I hope one will be able to select what to browse the media with... What I'm missing is notifications, given I do not have desktop notifications server enabled [1]. Notice pcmanfm didn't require to enable such server, though not sure how they handled to notify without it (as pidgin and several other tools do notify as well without any notification server installed). As I don't have any notification server (I do have libnotify though), I get: Failed to show notification: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Notifications was not provided by any .service files I can live with that, given usually one mounts after plugging a device. I'll evaluate if installing dunst (which Ralph wanted to disable instead) or xfce4-notifyd, but for now I won't do anything with that. Even though it's python based, one doesn't really feel it slow, which is good. I wonder if there's something similar written in C++ or C though, to play with it. For now I'm happy udiskie offers the functionality I was looking for. Another thing pending is the known issue with green HDDs, and if it's not an issue for usdiskie, or rather it's an issue for anything using udisks2. Thanks to all, -- Javier [1] https://wiki.archlinux.org/index.php/Desktop_notifications#Standalone
On Sat, 10 Jan 2015 10:06:02 -0600, Javier Vasquez wrote:
FWIW usermount shouldn't be used with external green HDDs, it does cause the known issue ;). I didn't test if udiskie suffers from this issue too. I still prefer to mount manually using scripts. Rodent (and a few other tools, have forgotten the names) btw. allows to mount by a click and doesn't wake up external green ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ drives. This might or might be something the OP should consider. ^^^^^^^ ^ not What is the known issue with external green HDDs? Is that common to using udisk2 (if so, "udiskie -2" does suffer it)?
I don't now what exactly does cause the issue. But GVFS does wake up Green drives without a reason, since by EU Regulation external drives have to spin down and go to sleep after a while and it's good that they do so. However, spinning down and up without a reason just damages the drives. That's why I have GVFS replaced by a dummy package. Usermount does cause the same issue. Rodent doesn't! I have udisks and udisks2 installed since a very long time, at least they alone don't cause the issue. FWIW KDE has something similar to GVFS. After running K3B my external Green USB HDD spins down and up again and again too. I never found out what does cause this ugly behaviour for KDE. I'm not using one of the bloated DEs. I'm using openbox and JWM and most of the times for drive and file related "things" I'm using RoxTerm. IOW I manually mount and unmount drives, but using scripts, so that I can do this by using labels, or explicitly for an optical drive. Reporting this as a bug is useless, I tried, but first the coders balme the HDD companies and after explaining that it's an EU Regulation, they blame the "minority" of idiots like me who are from the EU. Pff, I don't care, I don't need GVFS and similar software for my work-flow. This issue is known since several years.
On Sat, Jan 10, 2015 at 11:44 AM, Ralf Mardorf <ralf.mardorf@rocketmail.com> wrote:
I don't now what exactly does cause the issue. But GVFS does wake up Green drives without a reason, since by EU Regulation external drives have to spin down and go to sleep after a while and it's good that they do so. However, spinning down and up without a reason just damages the drives. That's why I have GVFS replaced by a dummy package. Usermount does cause the same issue. Rodent doesn't!
I have udisks and udisks2 installed since a very long time, at least they alone don't cause the issue.
FWIW KDE has something similar to GVFS. After running K3B my external Green USB HDD spins down and up again and again too. I never found out what does cause this ugly behaviour for KDE.
I'm not using one of the bloated DEs. I'm using openbox and JWM and most of the times for drive and file related "things" I'm using RoxTerm. IOW I manually mount and unmount drives, but using scripts, so that I can do this by using labels, or explicitly for an optical drive.
Reporting this as a bug is useless, I tried, but first the coders balme the HDD companies and after explaining that it's an EU Regulation, they blame the "minority" of idiots like me who are from the EU. Pff, I don't care, I don't need GVFS and similar software for my work-flow.
This issue is known since several years.
Ah, good to know. BTW, udiskie doesn't use gvfs, just udisks2 or udisks. And my other method for known media is autofs, so I hope I'm free from gvfs now (actually I removed it since I removed pcmanfm), :-) Thanks for the explanation, -- Javier
On Sat, 10 Jan 2015 11:54:24 -0600, Javier Vasquez wrote:
BTW, udiskie doesn't use gvfs
usermount neither does use GVFS, but caused spin downs and ups. My WD HDD goes to sleep after 30 minutes. I didn't monitor the LED all the time, but after I run [rocketmouse@archlinux ~]$ grep smartctl .bash_history date ; sudo smartctl -a /dev/sdc date ; sudo smartctl -a /dev/sdc 4 Start_Stop_Count 193 Load_Cycle_Count of smartctl do show if there happened too much spin downs and ups. JFTR after 30 minutes the LED should start flashing, when the drive does sleep. If nothing wakes up the drive, it should flash after a few hours, but here it was on without flashing.
On Sat, Jan 10, 2015 at 12:32 PM, Ralf Mardorf <ralf.mardorf@rocketmail.com> wrote:
usermount neither does use GVFS, but caused spin downs and ups.
My WD HDD goes to sleep after 30 minutes. I didn't monitor the LED all the time, but after I run
[rocketmouse@archlinux ~]$ grep smartctl .bash_history date ; sudo smartctl -a /dev/sdc date ; sudo smartctl -a /dev/sdc
4 Start_Stop_Count 193 Load_Cycle_Count
of smartctl do show if there happened too much spin downs and ups. JFTR after 30 minutes the LED should start flashing, when the drive does sleep. If nothing wakes up the drive, it should flash after a few hours, but here it was on without flashing.
It seems to me, after some trials, udiskie also has similar effects. Once the partition gets mounted, the disk never goes to sleep. I don't have this problem with autofs, given autofs unmounts the partitions after a configurable amount of time, therefore the disks spin down and go to sleep after being automatically unmounted some amount of time. I'm not sure once a partition gets mounted, the disk is able to sleep any ways. Maybe only spins down. Or perhaps it depends on the mount options. As I use autofs for known media, for now that's not a problem (udiskie allows me to ignore specific partitions that I can handle then with autofs). When using udisks2 or udisks directly, what options you provide (which would enable a different behavior)? As udiskie allows mount options configuration, that might be a way, :-) This is the 1st time experimenting with something different than autofs, so what I just experienced might be due to lack of proper understanding of udisks2/udiskie... Thanks, -- Javier
Hi Ralf: On Thu, Jan 8, 2015 at 4:40 PM, Ralf Mardorf <ralf.mardorf@rocketmail.com> wrote:
What needs to be killed to disable dunst? After killall dunst I still get notifications.
Instead of trying to kill dunst, you can also compile usermount without notification support. If you undefine HAVE_LIBNOTIFY in the Makefile, it won't include that. I should probably add that as a command line parameter or something... -Tom
On Fri, 9 Jan 2015 09:09:04 -0500, Tom Wambold wrote:
On Thu, Jan 8, 2015 at 4:40 PM, Ralf Mardorf wrote:
What needs to be killed to disable dunst? After killall dunst I still get notifications.
Instead of trying to kill dunst, you can also compile usermount without notification support.
I want to be able to enable and disable dunst, it's not related to usermount.
participants (9)
-
Carl Lei
-
Christian Demsar
-
Javier Vasquez
-
Martti Kühne
-
mustermann, max
-
Patrick Burroughs
-
Ralf Mardorf
-
Tom Wambold
-
Toyam Cox