You are not logged in.
All right, expect a pull request then.
Merged! Thanks again for the patches
LDM has made my life so much easier, thanks for the great work LemonMan.
I'm happy to see its working fine so far heh
Offline
Merged! Thanks again for the patches
You're welcome
However, the PKGBUILD needs to be rewritten then.
I can do it if you want.
Last edited by Rolinh (2012-05-19 12:43:55)
Offline
However, the PKGBUILD needs to be rewritten then.
I can do it if you want.
That'd be nice! In case you get in touch with the pkgbuild mantainer tell him to bump the minor version too
Offline
Oh, actually, I made a typo in the Makefile. Replace
LDFLAGS += -ludev
by
LDFLAGS = -ludev
Offline
Rolinh wrote:However, the PKGBUILD needs to be rewritten then.
I can do it if you want.That'd be nice! In case you get in touch with the pkgbuild mantainer tell him to bump the minor version too
I adopted the package mainly to keep it alive. I don't have much time on my hands these days, so I haven't done anything (like systemd support for instance).
Rolinh,
If you want to maintain the package, I'll orphan it so that you can take it.
Offline
@skottish: it probably will not be too much work to maintain it. I'll adopt it then.
Offline
@skottish: it probably will not be too much work to maintain it. I'll adopt it then.
It's all yours. If you decide to let it go, please let me know and I'll take it back. ldm is perfect for what I want (thanks again TheLemonMan), so I'm glad to hold onto it.
Offline
Adopted.
I updated the PKGBUILD so it now builds against latest revision of ldm.
I'm not sure I will use ldm yet. I have to test it a little. So in the case I do not, I'll will orphan it so you can take it back
Offline
With today's commit ldm got some fixes along with a new way of getting your user gid/uid.
This is needed for mountpoints to be read/writeable by your user.
You just need to create the file /etc/conf.d/ldm and write into
USER_GID=<output of `id -g` ran from your user>
USER_UID=<output of `id -u` ran from your user>
Offline
Awesome work man! I am the original author of skvm, it is considered deprecated, people should move over to ldm. I've completely replaced my setup here with ldm
Last edited by dimigon (2012-06-11 18:00:07)
Offline
@TheLemonMan: I don't quite understand why you did this commit.
1. It is the standard way to use /usr/local as default PREFIX. If one want /usr to be used instead, like for the PKGBUILD, it would just require a make PREFIX=/usr in order to override it.
2. This: rm -rf ./ldm is exactly what the "mrproper" option does
Saying that, I'll go update the PKGBUILD for AUR.
Offline
@TheLemonMan: I don't quite understand why you did this commit.
1. It is the standard way to use /usr/local as default PREFIX. If one want /usr to be used instead, like for the PKGBUILD, it would just require a make PREFIX=/usr in order to override it.
2. This: rm -rf ./ldm is exactly what the "mrproper" option doesSaying that, I'll go update the PKGBUILD for AUR.
I'd like to put the bins in just one place, and /usr/bin seems the most used one. This is why I switched the prefix back.
As for 2 I must admit I can't remember why I did that heh but I guess I had a good reason for doing so
Offline
I'd like to put the bins in just one place, and /usr/bin seems the most used one. This is why I switched the prefix back.
So how do you distinguish the software you installed manually from the ones you did not? Setting the default prefix to /usr is not the right way to do as everyone will expect /usr/local.
If you want to install it in /usr/bin even though you install it manually, you just need: make PREFIX=/usr install
As for 2 I must admit I can't remember why I did that heh but I guess I had a good reason for doing so
I can't see any but fair enough
PS: I updated the AUR package last night
Offline
Ladies and gentlemens, I'm happy to announce that ldm 0.3 "stable" is out, sporting lots of improvement.
Lot of effort has gone into debugging the memory issues and now it's completely leak free and rock solid with it's new libmount based backend.
There's more! The fstab monitoring allows you to modify your fstab and see the changes coming effectively without restarting ldm, and the /proc/self/mounts (ze old /etc/mtab) monitoring allows utilities like pmount/umount to interact with ldm, solving the problem of unmounting the devices before removal.
As usual don't hesitate to report any bugs/problems you encounter, they will be fixed in the git branch.
A big thanks flies to Rolinh that is mantaining the pkgbuilds, keep up the good work!
Offline
Thanks to you
I created a new PKGBUILD for the stable release. Find it here: http://aur.archlinux.org/packages.php?ID=60088.
Vote for this one instead of the -git one if you want ldm to possibly be included in community someday (-git packages are usually not included).
I noticed a warning when compiling ldm. Wait a moment, I'll see if I can provide a patch to fix it.
Offline
This looks great, thanks for this.
A few questions:
1) Is there an fstab entry example? I think Army asked for the possibility of a generic entry for all usb disks, say. Did that get implemented? Not urgent for me, but could be useful.
2) I saw you recommend punmount upthread, but I also noticed an umount function in the code - do we need to use an external command to unmount? Quite happy to - I was in the process of setting up a method to do so easily with dmenu when I looked into this.
3) Is there a way to prevent a partition getting mounted automatically, other than stopping the daemon (which is not arduous, I'll admit).
"...one cannot be angry when one looks at a penguin." - John Ruskin
"Life in general is a bit shit, and so too is the internet. And that's all there is." - scepticisle
Offline
1) You can't write a catch-all rule, if you need custom mountpoints just use a fstab entry with the disk uuid
2) ldm is a daemon and the user can't interact with it, just use punmount and ldm will update its internal table accordingly
3) The latest git version i just pushed now respects the noauto flag, so just add noauto to the fstab options and you're good to go
Offline
1) You can't write a catch-all rule, if you need custom mountpoints just use a fstab entry with the disk uuid
2) ldm is a daemon and the user can't interact with it, just use punmount and ldm will update its internal table accordingly
3) The latest git version i just pushed now respects the noauto flag, so just add noauto to the fstab options and you're good to go
1) Okay, thanks.
2) Thought so, thanks.
3) That's great, many thanks.
"...one cannot be angry when one looks at a penguin." - John Ruskin
"Life in general is a bit shit, and so too is the internet. And that's all there is." - scepticisle
Offline
Nice program! Added a pull request for a systemd service file (in case you want it!).
Offline
It works too well (!)
Some disks won't unmount; if I issue any of the unmounting commands, like pumount, udisks-whatever, or use the eject button in a file manager, ldm remounts the disk a split second later. Can you add native unmount support for it that will sync and umount the disk?
Offline
Hello!
After installing ldm 0.3 i've got this in everything.log:
Jul 1 16:20:41 localhost ldm: ldm 0.3
Jul 1 16:20:41 localhost ldm: Starting up...
Jul 1 16:20:41 localhost ldm: Error while mounting /dev/sda4
Jul 1 16:20:41 localhost ldm: Entering the main loop
/dev/sda4 it's my swap partition.
Seems nothing broken, swap works like before, I'm just curious what's wrong?
Offline
Cant get the gid/uid working
richard [~] : id -g ; id -u
100
1000
richard [~] : cat /etc/conf.d/ldm
USER_GID=100
USER_UID=1000
richard [~] : sudo ldm
ldm 0.3
2011-2012 (C) The Lemon Man
You must supply your gid/uid!
Am I missing something obvious?
Offline
Cant get the gid/uid working
This happened to me as well, but when I started ldm as a daemon it worked.
In other news, ldm fails to mount a dvd on my system, reporting: 'ldm: Error while mounting /dev/sr0' in /var/log/everything.log.
I use linux and I dont understand nothing in this post.
Offline