You are not logged in.

#1 2009-02-03 19:56:12

Falcata
Member
From: Michiana
Registered: 2008-01-23
Posts: 501
Website

Automatic Mounting Does Not Work (Won't stay resolved!!!)

Within the past few days, automatic mounting of removable media has stopped working.  Removable media are not even displayed when I try to manually mount them through a GUI, requiring I do it through command line.

What do I do?

Last edited by Falcata (2009-02-12 15:22:49)

Offline

#2 2009-02-03 21:37:01

biagio
Member
From: Florence - Italy
Registered: 2008-02-29
Posts: 49

Re: Automatic Mounting Does Not Work (Won't stay resolved!!!)

Try to replace <policy user="0"> with <policy user="YOURUSERNAME"> in the file /etc/dbus-1/system.d/hal.conf

Offline

#3 2009-02-04 01:19:40

Falcata
Member
From: Michiana
Registered: 2008-01-23
Posts: 501
Website

Re: Automatic Mounting Does Not Work (Won't stay resolved!!!)

That didn't work.

Offline

#4 2009-02-05 14:09:59

Falcata
Member
From: Michiana
Registered: 2008-01-23
Posts: 501
Website

Re: Automatic Mounting Does Not Work (Won't stay resolved!!!)

Could someone please give me a solution to this?  I need to use my flash drive for some work I'm doing, so my ability to finish my work is VERY limited if I can't use it.  What devices in /dev would a USB flash drive use?  If I have that info, I can just mount it manually.

Offline

#5 2009-02-05 14:19:00

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: Automatic Mounting Does Not Work (Won't stay resolved!!!)

just use hal from testing


Give what you have. To someone, it may be better than you dare to think.

Offline

#6 2009-02-05 14:33:37

Falcata
Member
From: Michiana
Registered: 2008-01-23
Posts: 501
Website

Re: Automatic Mounting Does Not Work (Won't stay resolved!!!)

I don't know about that.  If it's in testing, that means there might be bugs with it, in which case I'd rather be safe than sorry.

Anyways, I figured out where to mount the device from by running dmesg

Offline

#7 2009-02-05 14:38:27

bgc1954
Member
From: Edmonton, AB, Canada
Registered: 2006-03-14
Posts: 1,160

Re: Automatic Mounting Does Not Work (Won't stay resolved!!!)

You beat me by a hair.  I was going to say that the usb storage device should be at /dev/sdb1--at least that's where mine is and it might help to put that into your /etc/fstab as that is what I had to do once upon a time to get automounting to work.  But, nowadays, my automounting just works and I haven't had to change policies or use hal from testing, either.


Time is a great teacher, but unfortunately it kills all its pupils ... - Louis Hector Berlioz

Offline

#8 2009-02-05 15:00:54

Falcata
Member
From: Michiana
Registered: 2008-01-23
Posts: 501
Website

Re: Automatic Mounting Does Not Work (Won't stay resolved!!!)

Well, now I've got a new problem.  The device is mounted as read-only, even if I mount it with the "-w" flag.  I'll try specifying the USB drive in fstab, but I have a problem with my computer trying to boot from the USB drive if it's inserted at startup, so I'll have to figure that one out.

Offline

#9 2009-02-05 15:12:19

bgc1954
Member
From: Edmonton, AB, Canada
Registered: 2006-03-14
Posts: 1,160

Re: Automatic Mounting Does Not Work (Won't stay resolved!!!)


Time is a great teacher, but unfortunately it kills all its pupils ... - Louis Hector Berlioz

Offline

#10 2009-02-05 15:12:21

Duologic
Member
From: Belgium
Registered: 2007-11-11
Posts: 249

Re: Automatic Mounting Does Not Work (Won't stay resolved!!!)

Your USB drive seems broken to me, I've got a stick here with the same problem. I can not automount it, I can mount it, but the write protection is turned on. I doesn't matter if you mount it with -w.
I might be wrong, so don't stop searching. Try putting it into another PC to test if above is realy the problem. (or if it has a switch, turn that over.)

Oh yeah, that the write protection is on, without having a write-protection-switch, could have to do with pulling the stick out when it was still in use.

Offline

#11 2009-02-05 15:19:24

Falcata
Member
From: Michiana
Registered: 2008-01-23
Posts: 501
Website

Re: Automatic Mounting Does Not Work (Won't stay resolved!!!)

I fixed the problem.  Turns out hal wasn't starting correctly.  Adding dbus to the daemons array in /etc/rc.conf seems to have fixed things.

Offline

#12 2009-02-05 15:29:35

bgc1954
Member
From: Edmonton, AB, Canada
Registered: 2006-03-14
Posts: 1,160

Re: Automatic Mounting Does Not Work (Won't stay resolved!!!)

That is strange as the wiki says that hal will start dbus so you don't need to put it in the DAEMONS line.  But what the heck, if it works, use it.  Must be something a little different about your setup.


Time is a great teacher, but unfortunately it kills all its pupils ... - Louis Hector Berlioz

Offline

#13 2009-02-07 01:28:51

Falcata
Member
From: Michiana
Registered: 2008-01-23
Posts: 501
Website

Re: Automatic Mounting Does Not Work (Won't stay resolved!!!)

Okay, this problem still hasn't completely resolved.  My USB flash drive keeps mounting as read-only, which greatly limts what I can do with it.  I should note that it mounts just fine on my laptop (problems with the USB drive aside)

What do I do to force it to mount with read-write?

Offline

#14 2009-02-08 11:54:10

Duologic
Member
From: Belgium
Registered: 2007-11-11
Posts: 249

Re: Automatic Mounting Does Not Work (Won't stay resolved!!!)

Can you give the 'dmesg | tail' right after you've connected it?

Offline

#15 2009-02-08 13:39:55

pyther
Member
Registered: 2008-01-21
Posts: 1,395
Website

Re: Automatic Mounting Does Not Work (Won't stay resolved!!!)

To find the dev entry for your usb stick do: fdisk -l (as root)

Then run: mount -t vfat -o rw /dev/sdb1 /mnt/usbstick (as root, where /dev/sdb1 is your usb stick; and where vfat is the filesystem)

Finally see if you can read/write to it as root. If that works, you should be able to pass -o uid=youruserid,gid=yourgroupid so you can write/read from the drive, instead of root.


Website - Blog - arch-home
Arch User since March 2005

Offline

#16 2009-02-08 14:46:50

Falcata
Member
From: Michiana
Registered: 2008-01-23
Posts: 501
Website

Re: Automatic Mounting Does Not Work (Won't stay resolved!!!)

The problem resolved on its own.  I'm not really sure what I did, if anything.

Offline

#17 2009-02-08 17:31:30

adamlau
Member
Registered: 2009-01-30
Posts: 418

Re: Automatic Mounting Does Not Work (Won't stay resolved!!!)

The solution to this very problem I had was in the HAL Wiki.


Arch Linux + sway
Debian Testing + GNOME/sway
NetBSD 64-bit + Xfce

Offline

#18 2009-02-12 15:23:49

Falcata
Member
From: Michiana
Registered: 2008-01-23
Posts: 501
Website

Re: Automatic Mounting Does Not Work (Won't stay resolved!!!)

Gah!  This problem does not want to stay solved!!!  Now, whenever I try to open any removable media or volumes in Dolphin, I get an error message saying:

An error occurred while accessing 'Volume (vfat)', the system responded: org.freedesktop.Hal.Device.PermissionDeniedByPolicy: org.freedesktop.hal.storage.mount-removable no <-- (action, result)

I do not know how to fix this.

Last edited by Falcata (2009-02-12 15:24:43)

Offline

#19 2009-02-12 17:56:39

perbh
Member
From: Republic of Texas
Registered: 2005-03-04
Posts: 765

Re: Automatic Mounting Does Not Work (Won't stay resolved!!!)

If you put /dev/sdb1 in your /etc/fstab without 'noauto' - no wonder there are upsets ...
If it is _not_ in fstab - try to remember the last things you did that made it all work ...
<edit> spelling mistake </edit>

Last edited by perbh (2009-02-12 17:57:47)

Offline

#20 2009-02-12 18:52:07

kjon
Member
From: Temuco, Chile
Registered: 2008-04-16
Posts: 398

Re: Automatic Mounting Does Not Work (Won't stay resolved!!!)

another policykit issue, I see.
Have a look here. Is one of 1000 solutions for the same problem.
http://bbs.archlinux.org/viewtopic.php?id=65070


They say that if you play a Win cd backward you hear satanic messages. That's nothing! 'cause if you play it forwards, it installs windows.

Offline

Board footer

Powered by FluxBB