You are not logged in.

#1 2009-05-17 20:41:00

MTsoul
Member
From: Vancouver, BC
Registered: 2008-08-14
Posts: 95
Website

HAL automount does not work

I'd like to pop in a USB stick and have it auto mounted in /media. I followed the wiki HAL article. I basically installed HAL and looked at the default config (basically allow everything, no deny anything). But it doesn't mount anything when I stick in a USB drive. Any ideas?

Thanks.

Offline

#2 2009-05-17 20:46:01

TheRedFox
Member
Registered: 2009-02-15
Posts: 36

Re: HAL automount does not work

you could try putting something in fstab like "/dev/sdb1   /media/usbstick  auto user,noauto,rw  0      0"
dunno if it would work still, though

Offline

#3 2009-05-17 20:48:57

MTsoul
Member
From: Vancouver, BC
Registered: 2008-08-14
Posts: 95
Website

Re: HAL automount does not work

I've got fstab for my hard drives, but it seems like a crude solution for removable disks that might not be /dev/sdb1. I'd rather have HAL do what the wiki describes, mount a /media/<volume_name>

Offline

#4 2009-05-17 21:14:37

LeoSolaris
Member
From: South Carolina
Registered: 2008-03-30
Posts: 354

Re: HAL automount does not work

Are you in the storage group?


I keep getting distracted from my webserver project...

huh? oooh...  shiny!

Offline

#5 2009-05-17 21:19:08

MTsoul
Member
From: Vancouver, BC
Registered: 2008-08-14
Posts: 95
Website

Re: HAL automount does not work

Yes I am. Even so it shouldn't matter, because HAL doesn't even mount it to /media at all. There is nothing there. sad

Offline

#6 2009-05-18 05:37:44

toad
Member
From: if only I knew
Registered: 2008-12-22
Posts: 1,775
Website

Re: HAL automount does not work

What does dmesg say after you plugged in the stick? Could you post your daemon array in the rc.conf?


never trust a toad...
::Grateful ArchDonor::
::Grateful Wikipedia Donor::

Offline

#7 2009-05-18 08:40:29

ammon
Member
Registered: 2008-12-11
Posts: 413

Re: HAL automount does not work

Policykit. Did you edit policykit conf files? There are several guides on forum for diffirent HAL versions. None of them works perfect, but sure it is better then not-working automount.

Offline

#8 2009-05-19 04:46:12

MTsoul
Member
From: Vancouver, BC
Registered: 2008-08-14
Posts: 95
Website

Re: HAL automount does not work

@ammon, I have none of that.

@toad: "dmesg" as a command gives a lot of stuff. This is the last 28 lines of it that seem relevant:

FAT: Directory bread(block 978) failed
FAT: Directory bread(block 979) failed
FAT: Directory bread(block 980) failed
FAT: Directory bread(block 981) failed
usb 1-5: USB disconnect, address 9
UDF-fs: Partition marked readonly; forcing readonly mount
UDF-fs INFO UDF: Mounting volume '__', timestamp 2009/03/14 00:45 (1e5c)
hda-intel: IRQ timing workaround is activated for card #0. Suggest a bigger bdl_pos_adj.
UDP: bad checksum. From 116.30.103.23:28387 to 70.79.82.123:54521 ulen 58
usb 1-5: new high speed USB device using ehci_hcd and address 10
usb 1-5: configuration #1 chosen from 2 choices
scsi11 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 10
usb-storage: waiting for device to settle before scanning
scsi 11:0:0:0: Direct-Access     Apple    iPod             1.62 PQ: 0 ANSI: 0
sd 11:0:0:0: [sdd] 1982464 2048-byte hardware sectors: (4.06 GB/3.78 GiB)
sd 11:0:0:0: [sdd] Write Protect is off
sd 11:0:0:0: [sdd] Mode Sense: 68 00 00 08
sd 11:0:0:0: [sdd] Assuming drive cache: write through
sd 11:0:0:0: [sdd] 1982464 2048-byte hardware sectors: (4.06 GB/3.78 GiB)
sd 11:0:0:0: [sdd] Write Protect is off
sd 11:0:0:0: [sdd] Mode Sense: 68 00 00 08
sd 11:0:0:0: [sdd] Assuming drive cache: write through
 sdd: sdd1 sdd2
 sd 11:0:0:0: [sdd] Attached SCSI removable disk
 sd 11:0:0:0: Attached scsi generic sg3 type 0
 usb-storage: device scan complete

Daemon array: (network syslog-ng hal netfs crond alsa sshd)

Thanks.

Offline

#9 2009-05-23 18:32:08

jlimon
Member
Registered: 2009-05-05
Posts: 35

Re: HAL automount does not work

I came to post almost the exact same message - my dmesg stops at device scan complete as well.. PolicyKit config files have been properly edited, etc.


Favorite Software:
Openbox3 - Mutt - Vim - GNU Screen

Offline

#10 2009-05-23 18:42:04

leniviy
Member
Registered: 2009-05-23
Posts: 177

Re: HAL automount does not work

is 'dbus' running?

[il@IL ~]$  ps -A | grep hal
 3853 ?        00:00:00 hald
 3857 ?        00:00:00 hald-runner
 3948 ?        00:00:00 hald-addon-inpu
 3988 ?        00:00:00 hald-addon-stor
 4000 ?        00:00:00 hald-addon-acpi
 4440 ?        00:00:00 gvfs-hal-volume
[il@IL ~]$  ps -A | grep dbus
 3850 ?        00:00:00 dbus-daemon
 4380 ?        00:00:00 dbus-launch
 4381 ?        00:00:00 dbus-daemon

Arch 64, xfce4

Offline

#11 2009-05-23 18:45:38

jlimon
Member
Registered: 2009-05-05
Posts: 35

Re: HAL automount does not work

Yes, I've restarted it with each change to PolicyKit.


Favorite Software:
Openbox3 - Mutt - Vim - GNU Screen

Offline

#12 2009-05-23 18:51:40

leniviy
Member
Registered: 2009-05-23
Posts: 177

Re: HAL automount does not work

I don't remeber changing any Policy settings. just installed dbus & hal ; rc.conf: DAEMOS=(... hal) ; rebooted and they were mounting


Arch 64, xfce4

Offline

#13 2009-05-24 19:55:42

MTsoul
Member
From: Vancouver, BC
Registered: 2008-08-14
Posts: 95
Website

Re: HAL automount does not work

Hal starts dbus automatically. Still not working sad

Offline

#14 2009-05-24 21:04:14

rzodkiewka
Member
Registered: 2009-04-19
Posts: 41

Re: HAL automount does not work

Hmmm...
The dmesg output looked different but...
Few days ago I had a problem with mounting (http://bbs.archlinux.org/viewtopic.php? … 37#p556537).  It occured to be a dbus problem.
I fixed it installing new dbus from testing. You may try it.

Offline

#15 2009-05-24 21:10:35

stefanwilkens
Member
From: Enschede, the Netherlands
Registered: 2008-12-10
Posts: 624

Re: HAL automount does not work

just to be sure, could you (both) please post:
* /etc/PolicyKit/PolicyKit.conf
* /etc/fstab


Arch i686 on Phenom X4 | GTX760

Offline

#16 2009-05-26 02:06:22

blazercist
Member
Registered: 2009-01-18
Posts: 20

Re: HAL automount does not work

I'm having the same problem with my CD and DVD rom drives, hal is running so they should auto mount, but they do not.  I remember editing PolicyKit a while back to allow users to mount removable media (aka usb sticks), but that is all.

/etc/fstab

#
# /etc/fstab: static file system information
#
# <file system>        <dir>         <type>    <options>          <dump> <pass>
none                   /dev/pts      devpts    defaults            0      0
none                   /dev/shm      tmpfs     defaults            0      0


UUID=d16fd2ce-bfda-4ce0-944e-6a213cbfa772 /home ext3 defaults 0 1
UUID=d3486adc-fa28-4fd2-a973-9746573e62b0 / ext3 defaults 0 1
UUID=fa9e5bb8-137b-472e-af69-b15d59643fbf /boot ext3 defaults 0 1
UUID=10DE-E640 /media/mp3 auto rw,user 0 0
UUID=7EB7-70AC /media/camera auto rw,user 0 0


/etc/PolicyKit/PolicyKit.conf

<?xml version="1.0" encoding="UTF-8"?> <!-- -*- XML -*- -->

<!DOCTYPE pkconfig PUBLIC "-//freedesktop//DTD PolicyKit Configuration 1.0//EN"
"http://hal.freedesktop.org/releases/Pol … config.dtd">

<!-- See the manual page PolicyKit.conf(5) for file format -->

<config version="0.1">
           <match user="geoff">
             <return result="yes"/>
           </match>

</config>

Offline

#17 2009-05-26 02:16:25

SomeGuyDude
Member
Registered: 2008-10-09
Posts: 271

Re: HAL automount does not work

PolicyKit has gotten stupid.

Open up the AUR, install hal-easy. Problem solved.


And in the midst of such perfection,
I can't help but feel diseased.

Offline

Board footer

Powered by FluxBB