You are not logged in.
Btw the make install objective already copies the daemon bootstrapper in /etc/rc.d/
Yes but when building it on Archlinux with ABS it is supposed to be installed into ${pkgdir}/etc/rc.d and I don't see a way to tell your Makefile to install it in that directory. So for now I'll keep doing it manually.
edit: Package is uploaded to the AUR.
Last edited by Army (2011-09-08 18:14:47)
Offline
Doesn't seem to work here (/media stays empty).
# grep ldm /var/log/everything.log ldm[1021]: segfault at 0 ip 00007f163a48a249 sp 00007fffc136bd30 error 4 in libnss_files-2.14.so[7f163a484000+b000]
Mmh, can you pastie me the output of `udisks --dump`, the /var/log/ldm.log file and a gdb session.
To get the latter you need to run `sudo gdb /usr/bin/ldm` then write
"set follow-fork-mode child"
"set detach-on-fork off"
followed by "run"
Then plug the usb device that caused the crash and when it tells it crashed type "bt" and pastie the result to me
Offline
bloom wrote:Doesn't seem to work here (/media stays empty).
# grep ldm /var/log/everything.log ldm[1021]: segfault at 0 ip 00007f163a48a249 sp 00007fffc136bd30 error 4 in libnss_files-2.14.so[7f163a484000+b000]
Mmh, can you pastie me the output of `udisks --dump`, the /var/log/ldm.log file and a gdb session.
To get the latter you need to run `sudo gdb /usr/bin/ldm` then write"set follow-fork-mode child"
"set detach-on-fork off"followed by "run"
Then plug the usb device that caused the crash and when it tells it crashed type "bt" and pastie the result to me
I don't have udisks installed.
The log file is empty.
And I think it crashes before any plugging / unplugging but I'll try the gdb procedure you suggested.
Offline
I have ldm installed from git 20110909, but it still won't automount my iPod Touch. Also, perhaps another new feature: notifications when it mounted a device?
If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres
Offline
I have ldm installed from git 20110909, but it still won't automount my iPod Touch. Also, perhaps another new feature: notifications when it mounted a device?
You need to checkout from the idev-support here https://github.com/LemonBoy/ldm/tree/idev-support
It'll be merged in master once testing phase is over
Offline
Oooh, sorry! Not that familiar with git. I'll keep an eye on this thread to see when it's merged! How do you feel about adding notifications?
If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres
Offline
Oooh, sorry! Not that familiar with git. I'll keep an eye on this thread to see when it's merged! How do you feel about adding notifications?
No PLEASE LemonMan do NOT add notifications. ldm is perfect just the way it is. Unia if you want notifications and you use Qt. I am already working on it.
Last edited by zester (2011-09-09 17:17:19)
Offline
^ I'm using GTK, both 2 and 3
If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres
Offline
Great! I don't like all these PolicyKits, dbuses and other bloats.
Does it support optical media? I know that udev reports it. It would be nice also to be able to mount audio cds with cdfs, I don't know automounter able to do that.
You could also handle eject-button - I once ripped it off from HAL code, but never done anything beyond that.
Gentoo user here
Offline
Great! I don't like all these PolicyKits, dbuses and other bloats.
Does it support optical media? I know that udev reports it. It would be nice also to be able to mount audio cds with cdfs, I don't know automounter able to do that.
You could also handle eject-button - I once ripped it off from HAL code, but never done anything beyond that.
It supports cds too and has no hardcoded mount options, the filesystem format is obtained directly from the media so it should work with cdfs format too
Offline
sorry for my noobish question but how does this work compared to lets say...devmon? it's what im currently using.
Offline
I get a
% make
gcc ldm.c -ludev -o ldm
ldm.c: In function ‘device_mount’:
ldm.c:387:5: error: ‘user_pwd’ undeclared (first use in this function)
ldm.c:387:5: note: each undeclared identifier is reported only once for each function it appears in
make: *** [all] Error 1
Offline
sorry for my noobish question but how does this work compared to lets say...devmon? it's what im currently using.
It's pretty much the same, except that devmon is a bash script around udisk tools and ldm its an app based on libudev. I deal with the udev subsystem at a lower level and spare the ram usage of bash interpreter plus the utility running in background
I fixed the compilation error in the latest git master, late night commits are usually a bad idea heh
Offline
It's pretty much the same, except that devmon is a bash script around udisk tools and ldm its an app based on libudev. I deal with the udev subsystem at a lower level and spare the ram usage of bash interpreter plus the utility running in background
I fixed the compilation error in the latest git master, late night commits are usually a bad idea heh
haha okay and ill check it out then
Offline
I added a named pipe to ease the unmount and to allow normal users to unmount devices even without being root (think of dmenu-based solutions). But i don't know where to put the pipe, it should be a place accessible by every user and it has to be mounted at boot time. Shoot your proposals
Offline
I don't know if I'm doing something wrong, but ldm doesn't mount devices anymore, it's been like that for quite a while. I went back to my udev rule which mounts external devices for me. I start the daemon with the rc.conf file. That's all that has to be done, right? What should I do for debugging?
Offline
Just to clarify, should ldm be launched as a deamon or directly via /usr/bin/ldm?
Also like Army mentioned, ldm isn't mounting anything for me. Also using the executable ldm tells me I need to be root.
Offline
Just to clarify, should ldm be launched as a deamon or directly via /usr/bin/ldm?
Little update in the master branch, now it should work when started as daemon, if it doesnt still please report a bug on the github project page.
Thanks.
I'll try it one last time by starting ldm in the rc.local. If it still doesn't work, I'll open a bugreport.
edit: nope, no way, ldm doesn't do anything here...
Last edited by Army (2011-10-01 20:48:49)
Offline
Sorry took so long to respond but works great thanks
Offline
Just to be sure you didn't miss it, ldm also doesn't mount anything here when started in a root-terminal.
Offline