You are not logged in.

#1 2007-11-10 17:13:29

Daren
Member
From: Notts, UK
Registered: 2006-01-02
Posts: 73

[SOLVED] Small issue with KDE automount/pmount

Having issues with an automounted USB stick - and with pmount.

The stick is an ext2 partition, but when KDE automounts it (that bit works fine) it gives it ownership of root:root rather than my user.  The same thing happens with pmount.

Is this a limitation because it is ext2 (a fat usb stick gets created with my username as owner on the mount point)?  Is there something else I have to configure - without messing with and using fstab?

Regards
Daren

Last edited by Daren (2007-11-16 09:27:51)

Offline

#2 2007-11-12 21:53:47

Daren
Member
From: Notts, UK
Registered: 2006-01-02
Posts: 73

Re: [SOLVED] Small issue with KDE automount/pmount

Just to reply to myself.

My automount now seems to be totally broken sad  I've changed tehe USB stick back to using FAT, and it no longer automounts.  Using pmount does work and gives me permission to actually write to the device as well.

I've also tried an external USB drive - which used to auto-mount perfectly.  This also no longer mounts.  Same with my iPod - it used to mount immediately but now nothing.

Anybody any ideas what I can check / change to fix this?  I tried creating a new user so I get a fresh configuration - but this did not work either.

Offline

#3 2007-11-12 22:07:00

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

Re: [SOLVED] Small issue with KDE automount/pmount

On my box, the recent HAL upgrade temporarily killed auto-mounting. After a restart everything is normal again.

Last edited by skottish (2007-11-12 22:08:06)

Offline

#4 2007-11-12 22:11:03

Daren
Member
From: Notts, UK
Registered: 2006-01-02
Posts: 73

Re: [SOLVED] Small issue with KDE automount/pmount

I haven't done an update in a few days...  however doing a sync just now shows a hal update, so I'll give it a go and see how it goes....

Edit: Did the update and rebooted the laptop - still no joy sad

Any other ideas anyone??

Last edited by Daren (2007-11-12 22:20:25)

Offline

#5 2007-11-13 09:09:54

bwayne
Member
Registered: 2007-11-07
Posts: 20

Re: [SOLVED] Small issue with KDE automount/pmount

USB automounting seems to be borked here as well.  Strange because other media like CDs and DVDs will automount fine.  It's only the USB that is affected. 

Anyone else having these same sorts of troubles?

Offline

#6 2007-11-13 09:46:39

FightRight
Member
From: Germany
Registered: 2006-05-25
Posts: 64

Re: [SOLVED] Small issue with KDE automount/pmount

Hi

If you have trouble with automounting usb devices. Why you don't use the udev trick from the arch wiki ?
Look here for more information http://wiki.archlinux.org/index.php/Ude … SB_devices

It works really fine for me in most of cases.

Best regards

FightRight

Last edited by FightRight (2007-11-13 09:49:44)


Ps: Sorry for my bad english

Offline

#7 2007-11-13 16:30:00

miggols99
Member
Registered: 2007-06-10
Posts: 424

Re: [SOLVED] Small issue with KDE automount/pmount

bwayne wrote:

USB automounting seems to be borked here as well.  Strange because other media like CDs and DVDs will automount fine.  It's only the USB that is affected. 

Anyone else having these same sorts of troubles?

I getting exactly the same problem! This is very weird...

Offline

#8 2007-11-13 17:11:38

bwayne
Member
Registered: 2007-11-07
Posts: 20

Re: [SOLVED] Small issue with KDE automount/pmount

This gets weirder every minute. 

I followed FightRight's advice and created some rules for udev.  It worked.  Started messing with hal rules for my ipod and started getting errors trying to unmount it.  On a whim I removed the udev rules and now everything is back to normal. 

My theory: gremlins.

Offline

#9 2007-11-14 18:49:39

Daren
Member
From: Notts, UK
Registered: 2006-01-02
Posts: 73

Re: [SOLVED] Small issue with KDE automount/pmount

Thanks for the ideas.

I had thought of going down the udev route again, but I kind of like not having to fiddle too much these days wink  If a DM can do it for me, that's fine by me!

Anyway, at least I know I'm not the only one suddenly having this problem - whether it's coincidence or an update doing it.  Guess we'll have to keep checking around and hopefully somebody will work out what's going on and post back here.

Offline

#10 2007-11-16 08:11:01

bwayne
Member
Registered: 2007-11-07
Posts: 20

Re: [SOLVED] Small issue with KDE automount/pmount

GParted was the culprit here.  It created a rule in /usr/share/hal/fdi/policy in a file named gparted-disable-automount.fdi. 

After removing that file and restarting hal the usb automounting worked.

Hmmm ... now why would such a rule be created??

Here's what it looks like:

gparted-disable-automount.fdi: ASCII text, with no line terminators
[root@earth policy]# cat gparted-disable-automount.fdi
<deviceinfo version='0.2'><device><match key='@block.storage_device:storage.hotpluggable' bool='true'><merge key='volume.ignore' type='bool'>true</merge></match></device></deviceinfo>

Wasn't gremlins after all.

Last edited by bwayne (2007-11-16 08:12:54)

Offline

#11 2007-11-16 09:27:08

Daren
Member
From: Notts, UK
Registered: 2006-01-02
Posts: 73

Re: [SOLVED] Small issue with KDE automount/pmount

Thank you.  That was it for me as well, although I didn't initially see any policies because I was looking under /etc/hal and not /usr/share/hal...

Ironically I only initially installed gparted in an attempt to reformat the USB to ext2 to start with!!  Changed my mind after it seemed to only mount it as root writable... 

Thanks again

Edit:  I presume such a rule is created because for gparted/parted to work properly, the device must not be mounted and in use.

Last edited by Daren (2007-11-16 09:28:56)

Offline

Board footer

Powered by FluxBB