You are not logged in.

#101 2012-05-19 12:36:49

TheLemonMan
Member
From: Italy
Registered: 2011-09-04
Posts: 214
Website

Re: ldm - Lightweight Device Mounter

Rolinh wrote:

All right, expect a pull request then. wink

Merged! Thanks again for the patches smile

theGunslinger wrote:

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

#102 2012-05-19 12:43:19

Rolinh
Member
From: Switzerland
Registered: 2011-05-07
Posts: 144
Website

Re: ldm - Lightweight Device Mounter

TheLemonMan wrote:

Merged! Thanks again for the patches smile

You're welcome wink

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

#103 2012-05-19 13:29:28

TheLemonMan
Member
From: Italy
Registered: 2011-09-04
Posts: 214
Website

Re: ldm - Lightweight Device Mounter

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 smile

Offline

#104 2012-05-19 15:00:55

Rolinh
Member
From: Switzerland
Registered: 2011-05-07
Posts: 144
Website

Re: ldm - Lightweight Device Mounter

Oh, actually, I made a typo in the Makefile. Replace

LDFLAGS += -ludev

by

LDFLAGS = -ludev

Offline

#105 2012-05-19 16:12:35

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: ldm - Lightweight Device Mounter

TheLemonMan wrote:
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 smile

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

#106 2012-05-19 16:14:12

Rolinh
Member
From: Switzerland
Registered: 2011-05-07
Posts: 144
Website

Re: ldm - Lightweight Device Mounter

@skottish: it probably will not be too much work to maintain it. I'll adopt it then. wink

Offline

#107 2012-05-19 16:19:03

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: ldm - Lightweight Device Mounter

Rolinh wrote:

@skottish: it probably will not be too much work to maintain it. I'll adopt it then. wink

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

#108 2012-05-19 16:25:13

Rolinh
Member
From: Switzerland
Registered: 2011-05-07
Posts: 144
Website

Re: ldm - Lightweight Device Mounter

Adopted. wink
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 wink

Offline

#109 2012-06-11 15:07:58

TheLemonMan
Member
From: Italy
Registered: 2011-09-04
Posts: 214
Website

Re: ldm - Lightweight Device Mounter

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

#110 2012-06-11 17:56:38

dimigon
Member
Registered: 2009-03-07
Posts: 139
Website

Re: ldm - Lightweight Device Mounter

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 smile

Last edited by dimigon (2012-06-11 18:00:07)

Offline

#111 2012-06-11 20:47:18

Rolinh
Member
From: Switzerland
Registered: 2011-05-07
Posts: 144
Website

Re: ldm - Lightweight Device Mounter

@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 wink

Saying that, I'll go update the PKGBUILD for AUR.

Offline

#112 2012-06-11 22:37:12

TheLemonMan
Member
From: Italy
Registered: 2011-09-04
Posts: 214
Website

Re: ldm - Lightweight Device Mounter

Rolinh wrote:

@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 wink

Saying 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

#113 2012-06-12 06:20:42

Rolinh
Member
From: Switzerland
Registered: 2011-05-07
Posts: 144
Website

Re: ldm - Lightweight Device Mounter

TheLemonMan wrote:

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

TheLemonMan wrote:

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 tongue

PS: I updated the AUR package last night wink

Offline

#114 2012-06-15 17:54:46

TheLemonMan
Member
From: Italy
Registered: 2011-09-04
Posts: 214
Website

Re: ldm - Lightweight Device Mounter

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

#115 2012-06-15 20:35:33

Rolinh
Member
From: Switzerland
Registered: 2011-05-07
Posts: 144
Website

Re: ldm - Lightweight Device Mounter

Thanks to you wink

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

#116 2012-06-15 20:41:55

skanky
Member
From: WAIS
Registered: 2009-10-23
Posts: 1,847

Re: ldm - Lightweight Device Mounter

This looks great, thanks for this. smile

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

#117 2012-06-16 06:43:21

TheLemonMan
Member
From: Italy
Registered: 2011-09-04
Posts: 214
Website

Re: ldm - Lightweight Device Mounter

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

#118 2012-06-16 19:42:07

skanky
Member
From: WAIS
Registered: 2009-10-23
Posts: 1,847

Re: ldm - Lightweight Device Mounter

TheLemonMan wrote:

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.

smile


"...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

#119 2012-06-16 23:19:11

Glaucous
Member
Registered: 2010-11-06
Posts: 41

Re: ldm - Lightweight Device Mounter

Nice program! Added a pull request for a systemd service file (in case you want it!). smile

Offline

#120 2012-06-17 07:33:37

TheLemonMan
Member
From: Italy
Registered: 2011-09-04
Posts: 214
Website

Re: ldm - Lightweight Device Mounter

Glaucous wrote:

Nice program! Added a pull request for a systemd service file (in case you want it!). smile

Aaaand...merged! smile

Offline

#121 2012-06-21 13:26:25

zoqaeski
Member
From: /earth/australia/.
Registered: 2009-09-30
Posts: 132

Re: ldm - Lightweight Device Mounter

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

#122 2012-07-01 12:43:35

Supermaks
Member
Registered: 2009-10-09
Posts: 9

Re: ldm - Lightweight Device Mounter

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

#123 2012-07-05 20:46:07

ri
Member
Registered: 2008-10-09
Posts: 73

Re: ldm - Lightweight Device Mounter

Cant get the gid/uid working sad

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

#124 2012-07-06 13:18:30

Supplantr
Member
From: a state of sunshine
Registered: 2011-12-12
Posts: 149
Website

Re: ldm - Lightweight Device Mounter

ri wrote:

Cant get the gid/uid working sad

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

#125 2012-07-07 12:25:47

TheLemonMan
Member
From: Italy
Registered: 2011-09-04
Posts: 214
Website

Re: ldm - Lightweight Device Mounter

Yep, I forgot to add the argument list to the readme, but ldm isn't really meant to be launched by hand

ldm -g <gid> -u <uid>

Offline

Board footer

Powered by FluxBB