You are not logged in.

#151 2012-09-01 10:56:05

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

Re: ldm - Lightweight Device Mounter

Acheron wrote:

I've recently installed ldm and I'm curious what method people are using (if any) to define mounting options (particularly encoding) other than setting them up on a device by device basis in fstab. Basically every usb drive I own contains files whose names are encoded using utf8 and any global solution would be really helpful.

Nice suggestion, I just don't know if its more useful if the options can be defined per-device, per-filesystem or global

Offline

#152 2012-09-05 14:46:30

amishxxx
Member
Registered: 2012-03-10
Posts: 20

Re: ldm - Lightweight Device Mounter

Hey  TheLemonMan
i use your little program. And i really like it but when ever i have an external hard drive mounted and i want to delete some files it tells me that it is read-only and my permission is denied..... has that something to do with ldm or did i do something else wrong?
Micah

Offline

#153 2012-09-05 14:53:42

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

Re: ldm - Lightweight Device Mounter

amishxxx wrote:

Hey  TheLemonMan
i use your little program. And i really like it but when ever i have an external hard drive mounted and i want to delete some files it tells me that it is read-only and my permission is denied..... has that something to do with ldm or did i do something else wrong?
Micah

I guess its because of a wrong gid/uid pair, recheck them smile

Offline

#154 2012-09-05 15:11:52

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

Re: ldm - Lightweight Device Mounter

TheLemonMan wrote:

The current default settings ensure proper security, you could always start ldm for each user (and kill it at logout) with different gid/uid to address this problem.

I'll try that 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

#155 2012-09-05 15:20:14

amishxxx
Member
Registered: 2012-03-10
Posts: 20

Re: ldm - Lightweight Device Mounter

I guess its because of a wrong gid/uid pair, recheck them smile

thats what it showes when i tip it in my terminal

[arch@cyber ~]$ id -u
1000
[arch@cyber ~]$ id -g
100

and thats in my ldm file

#/etc/conf.d/ldm
USER_GID=100
USER_UID=1000

i forgot to install the ntfs packet everything works now

Last edited by amishxxx (2012-09-05 16:08:18)

Offline

#156 2012-09-05 16:05:28

karol
Archivist
Registered: 2009-05-06
Posts: 25,426

Re: ldm - Lightweight Device Mounter

TheLemonMan wrote:
amishxxx wrote:

Hey  TheLemonMan
i use your little program. And i really like it but when ever i have an external hard drive mounted and i want to delete some files it tells me that it is read-only and my permission is denied..... has that something to do with ldm or did i do something else wrong?
Micah

I guess its because of a wrong gid/uid pair, recheck them smile

The drive in question is ntfs-formatted: https://bbs.archlinux.org/viewtopic.php?id=148406

Offline

#157 2012-09-09 16:45:29

pouar
Member
Registered: 2011-11-03
Posts: 54
Website

Re: ldm - Lightweight Device Mounter

found a bug, when mounting mounting 2 devices with the same label (in the case with the Droid X2, as both the internal storage and sdcard have the same label), they both mount to the same location , in udisks one mounts to MOT, the other mounts to _MOT. but ldm mounts them both to MOT without checking to see if the other is already mounted, I have to unmount one of the devices then mount that same device to another location.

EDIT: I also have to restart ldm to get it to autmount anything again, I renamed the sdcard as a workaround.

Last edited by pouar (2012-09-10 00:49:54)


Yep, I'm a diaperfur now, I guess

while :;do if windows sucks;then mv windows /dev/null;pacman -Sy linux;fi;done
for i in {\ metal,core,grind};do echo death$i rules\!;done

Offline

#158 2012-09-10 10:08:44

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

Re: ldm - Lightweight Device Mounter

The problem with clashing labels should be fixed now, please report back smile
I'm also thinking of adding a per-filesystem-type array of mount options. Do you think it's better this way or a globally used set of options ?

Offline

#159 2012-09-10 14:02:23

pouar
Member
Registered: 2011-11-03
Posts: 54
Website

Re: ldm - Lightweight Device Mounter

now everything is mounting by UUID, did you mean to do that, if the label clashes you can just add a zero to the end, and if that clashes too use a 1, and so on, though I guess people can figure out which is which with the blkid command, though probably not ideal.

globally used set of options might be more CLI friendly, there can be a few options that could be filesystem specific, I'd also include options to pass to the mount command if that isn't already done.

Last edited by pouar (2012-09-10 14:06:06)


Yep, I'm a diaperfur now, I guess

while :;do if windows sucks;then mv windows /dev/null;pacman -Sy linux;fi;done
for i in {\ metal,core,grind};do echo death$i rules\!;done

Offline

#160 2012-09-10 16:05:53

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

Re: ldm - Lightweight Device Mounter

Meh, the _SAFE variant doesn't really work for everyone, cbf finding out why so I just reverted that commit.

Offline

#161 2012-09-12 00:45:02

lilsirecho
Veteran
Registered: 2003-10-24
Posts: 5,000

Re: ldm - Lightweight Device Mounter

FWIW:

Have several single device mdadm raid0 arrays.  In using them in USB mode, I cannot load them into media without first shutting down the mdadm MD127..MD126, etc arrays.

It is then possible to mount the devices in mediat by inserting into usb port and open the directories thereafter.


Sign of the times: Navajo blanket..made in China
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit!     X-ray confirms Iam spineless!

Online

#162 2012-09-12 23:29:49

lknix
Member
Registered: 2008-10-20
Posts: 11

Re: ldm - Lightweight Device Mounter

TheLemonMan wrote:

The problem with clashing labels should be fixed now, please report back smile
I'm also thinking of adding a per-filesystem-type array of mount options. Do you think it's better this way or a globally used set of options ?

$ mount
...
/dev/sdc2 on /media/REMOVABLE_ type vfat (rw,relatime,uid=1000,gid=100,fmask=0022,dmask=0022,codepage=cp437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
/dev/sdc1 on /media/REMOVABLE__ type vfat (rw,relatime,uid=1000,gid=100,fmask=0022,dmask=0022,codepage=cp437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)

Works! Good job TheLemonMan cool

Offline

#163 2012-09-13 13:03:50

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

Re: ldm - Lightweight Device Mounter

lilsirecho wrote:

FWIW:

Have several single device mdadm raid0 arrays.  In using them in USB mode, I cannot load them into media without first shutting down the mdadm MD127..MD126, etc arrays.

It is then possible to mount the devices in mediat by inserting into usb port and open the directories thereafter.

Hrm, this issue has been reported a while back. I'll look into it as soon as I have some spare time smile

Offline

#164 2012-09-20 15:16:11

lilsirecho
Veteran
Registered: 2003-10-24
Posts: 5,000

Re: ldm - Lightweight Device Mounter

Not certain but had ldm start at boot with systemd ldm service file but after upgrade to kernel 3.5.4-1 it no longer starts during boot.

Perhaps my ldm service was defective.  I no longer have the original file as have tried several changed versions to no avail.

Perhaps the systemd is now organized such that ldm is handled in a different manner in the latest kernel.

I would appreciate some direction to search for a new file or maybe the original file still works in which case that file would be needed.


Sign of the times: Navajo blanket..made in China
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit!     X-ray confirms Iam spineless!

Online

#165 2012-09-20 17:26:11

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

Re: ldm - Lightweight Device Mounter

The service file I'm using can be find in the git repo and gets installed with the -git package.

Offline

#166 2012-09-20 18:01:08

Shinryuu
Member
From: 俺のコスモス
Registered: 2010-02-27
Posts: 338

Re: ldm - Lightweight Device Mounter

LemonMan Device Mounter... cannot unsee

Guess I'll give this mounter a second try, I already tested it a little bit in the past wink

Last edited by Shinryuu (2012-09-20 18:01:55)

Offline

#167 2012-09-20 18:08:49

lilsirecho
Veteran
Registered: 2003-10-24
Posts: 5,000

Re: ldm - Lightweight Device Mounter

Merci buku!


Sign of the times: Navajo blanket..made in China
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit!     X-ray confirms Iam spineless!

Online

#168 2012-10-12 18:21:07

prazzb
Member
Registered: 2012-10-12
Posts: 14

Re: ldm - Lightweight Device Mounter

why is there no stable release for abt 4 months ??? git is good but might be unsafe

Offline

#169 2012-10-12 22:53:06

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

Re: ldm - Lightweight Device Mounter

prazzb wrote:

why is there no stable release for abt 4 months ??? git is good but might be unsafe

Because there's no change big enough to justify a version bump. The git version is extra-stable, many users included myself use it everyday.

Offline

#170 2012-10-13 03:33:01

prazzb
Member
Registered: 2012-10-12
Posts: 14

Re: ldm - Lightweight Device Mounter

TheLemonMan wrote:
prazzb wrote:

why is there no stable release for abt 4 months ??? git is good but might be unsafe

Because there's no change big enough to justify a version bump. The git version is extra-stable, many users included myself use it everyday.

sure then, i'll go for it and let know if i go wierd. The nice thing about your software is that there is no dependencies issue. Only udev.... that looks great

Offline

#171 2012-10-13 08:54:01

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

Re: ldm - Lightweight Device Mounter

TheLemonMan wrote:

Because there's no change big enough to justify a version bump. The git version is extra-stable, many users included myself use it everyday.

I think that enough bugs have been fixed since version 0.3 that would justify a version 0.3.1. Most people do not use git/hg/svn version of software for daily use.

Offline

#172 2012-11-09 12:48:17

Pranavg1890
Member
From: Nagpur,India
Registered: 2012-09-07
Posts: 111

Re: ldm - Lightweight Device Mounter

Hi @The Lemon Man, can you add support for starting an app(like file manager) when an usb is inserted ? It would be of great help.

Last edited by Pranavg1890 (2012-11-09 18:04:47)


Using Openbox + Tint2 + Idesk

Offline

#173 2012-11-15 23:55:06

sediment
Member
Registered: 2012-08-01
Posts: 14

Re: ldm - Lightweight Device Mounter

hi all,

Any suggestions for this? when I start ldm as a daemon, it gives as output "ldm: Error while mounting /dev/sdb2 / ldm: Entering the main loop". The problem with this is that it appears just after the login prompt, so that it's not really clear that the user ought to log in at this point. Any suggestions on how to suppress (or actually fix) this error would be greatly appreciated. Ta!

Offline

#174 2012-11-17 13:28:44

Raphi111
Member
Registered: 2012-07-28
Posts: 12

Re: ldm - Lightweight Device Mounter

Hello,

I've been using ldm for quite a while now, and I really love it! It really is what I need in a minimalistic but easy-to-use environment.
I noticed some kind of a bug, tough: when ldm mounts a FAT32 usb drive, it seems some non-ASCII characters like "é,è,à" gets corrupted ( I think they are iso-8859-16 encoded, as they were written in Windows XP). They are wrongly displayed in console and doesn't appear at all in my file manager. That's quite of problematic when I want to process such files.
However, when mounting the same drive with the pmount wrapper (which I guess just uses the mount command) those characters are correctly displayed both in console and file manager.
Is this a known behavior and is there anyway to get those names to be handled correctly?

Offline

#175 2012-11-22 15:00:50

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

Re: ldm - Lightweight Device Mounter

With udisks2 moving mounts from /media to /run/media/$user and discussions to move /media from the filesystem package to udisks package, would it be possible to configure the mount point? That way it could be possible to mount at /mnt or /run/media/$user as udisks2 will do?


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

Board footer

Powered by FluxBB