HAL automounting in console?
HAL seems to be working fine, it works on GNOME. I plug a CD and it shows on the desktop, I unmount it and it's gone...
But this does not in the console when no graphical session is started.
Anyway to solve it?
firecat53 wrote:
That's probably not HAL automounting your CD, but the gnome-volume-manager. It will only work when gnome is running. There really is no automount in the console unless you use something like autofs or this.
Good luck!
Scott
I think I'm going to take a look at autofs instead...
Mr.Elendig wrote:You could use udev instead of HAL to do the automounting. See the bottom part of the udev wiki page.
It seems that that is only for usb devices, I want it for CD/DVD too...
Thank you both.
Similar Messages
-
Hi
usually when I bung a dvd in my drive, hal automounts it to /media and I can see it in thunar
but all of a sudden it gets mounted to /mnt/cd and when I click on it in thunar I get the following error:
Failed to mount "stuff".
Failed to determine the mount point for /dev/hdc
nor can I eject it, I get a message saying it wasn't mounted by hal:
how can I find out what is mounting it and stop it??
I've recently installed banshee and rhythmbox, could this have anything to do with it?In case anyone cares, or has a similar problem I fixed this
I think the problem was I had pmount installed as a dependancy of one of the mp3 players I installed (banshee I think), and it was auto-mounting dvds before hal got a chance.
When I uninstalled banshee, it didn't uninstall the huge amount of other packages it installed with it. I'm still an arch newbie, and would like to know how I would have uninstalled banshee and all the other packages that come with it using pacman.
Anyone help? -
Dbus/Hal automount not working in KDE
Hi
I have set portmap dbus hal in rc.conf.
In Gnome automount works great but in KDE automount does not work and I don't know why.
Can someone please help?
All I want to have is when I insert cd,dvd,usbstick to have them automount.Thank you for your reply.
I am looking forward to your next release... -
hi.
i've got problem with automounting harddisk/cd-rooms in arch.
i can mount (i.e= hal can) usb-disks, but fat/ntfs disks (and cdroms) cannot be mount
i followed this wiki http://wiki.archlinux.org/index.php/HAL
i've added dbus & hal daemons into rc.conf file
thats my /etc/group file
tty::5:
disk::6:root
lp::7:daemon
mem::8:
kmem::9:
wheel::10:root,szymon
ftp::11:
mail::12:
log::19:root
smmsp::25:
games::50:szymon
network:x:90:
video:x:91:szymon
audio::92:szymon
optical::93:hal,szymon
floppy:x:94:hal,szymon
storage:x:95:hal,szymon
power:x:98:szymon
nobody::99:
users::100:szymon
slocate:x:21:szymon
dbus:x:81:szymon
hal:x:82:szymon
avahi:x:84:szymon
when put a usb-cable (from external harddisk) and i try to mount it i get
Nie można zamontować "PROGRAMY":
Brak wystarczających uprawnień by zamontować nośnik "PROGRAMY"
(it is not possible to mount "programy"
you have not sufficent rights for mounting 'programy')
i get this massage when i'm on 'normal' user and on root.
szymon
/////////// edit
and when i try to mount cd (any : music, files etc) i get
mount: wrong fs type, bad option, bad superblock on /dev/dvd,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so.
Last edited by szymon gruszczynski (2007-08-05 15:17:13)eldarion : that's my 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
#/dev/cdrom /mnt/cdrom iso9660 ro,user,noauto,unhide 0 0
#/dev/dvd /mnt/dvd udf ro,user,noauto,unhide 0 0
/dev/sda1 swap swap defaults 0 0
/dev/sda2 /boot ext3 defaults 0 1
/dev/sda3 / ext3 defaults 0 1
/dev/sda5 /usr ext3 defaults 0 1
/dev/sda6 /home ext3 defaults 0 1
i solved this problems with cd/dvd rom (as you see - i hashed /dev/cdrom and /dev/dvd).
but the main problem remain :< -
I new to arch and so far i like it!
I am dealing wuth hal to automount my other partitions, i when i use nautilus i have listed at list 8 partitions/devices wich HAL mount.
How can i configure this, to only mount what i want? for example i have sabayon linux installed in one partion and i don't want hal to mount this, but at the same time, i want my mp4 player or my dvd device automounted.
PD: In this case is better if i use fstab?
thanks ain advance! and thanks for this great OSTSP, I ended up trying this "outdated" tip and it worked.
http://wiki.archlinux.org/index.php/HAL
As root, create a file named 90-user-methods.fdi in /etc/hal/fdi/policy. Then paste the following in
<xml>
<deviceinfo>
<device>
<match>
<merge>true</merge>
<match>
<merge>false</merge>
<merge>true</merge>
</match>
</match>
</device>
</deviceinfo>
Then restart HAL, /etc/rc.d/hal restart.
Cheers. -
HAL automount external EXT3 hard rewriteable
Hi-
I have a EXT3 USB external HD, and everytime it automounts it is read-only. How do i get it so it mounts rewriteable everytime. Thanks
dtMake sure you have the correct policies. Check out: http://wiki.archlinux.org/index.php/HAL
Last edited by haxit (2008-08-26 17:54:21) -
Change HAL Automount Root Directory
I was wondering if it is possible to change the root directory that HAL mounts into. I would like to change it from /media to /mnt. The reason is that on my previous server (that I didn't have HAL installed on), I kept all media files (music, videos, etc.) in the media directory, and I liked it that way.
I like the fact that HAL is dynamic, that I don't have to manually create the entries in my fstab or anything. I'm hoping that there is a solution that will do everything automagically. I did a few hours of searching last night with no luck. I was hoping somebody could throw me a lead.
Thanks!
Last edited by Hardrive (2009-08-06 18:24:43)Found this thread that might be relevant. Hope it helps.
http://bbs.archlinux.org/viewtopic.php?id=40951
Edit: I just thought to mention: It might be easier for you to install AutoFS or lvman or gnome-volume-manager and mess with those settings instead of messing with the HAL configuration stuff.
Last edited by majiq (2009-08-08 14:12:08) -
Hi there,
this time I want to change 100% from windows to linux and i found archlinux to be a really nice system.
I like it "the arch way"
1) I followed the beginner's wiki and choose those xf86-input-evdev 2.3.2-1 drivers.
I set the 10-keymap.fdi file
<merge key="input.xkb.layout" type="string">de</merge>
<merge key="input.xkb.variant" type="string" />nodeadkeys</merge>
</match>
</device>
</deviceinfo>
The problem is, that the layout doesn't change to 'de'
I put
setxkbmap de -variant nodeadkeys &
into my.xinitrc, but this is not a good solution, because when logging in with SLIM there is still the english layout (e.g. for passwords with an "y" i have to press "z" because y and z are swaped in de / en layout .)
So what can I do? Is my 10-keymap.fdi somehow wrong?
2)
I would like to use my windows ntfs partitions in arch, so I installed ntfs-3g. Manual mounting with "mount -t ntfs-3g /dev/sd.. /mnt/... " works, but how can I manage that arch mounts everything it finds automaticly on startup and while running (e.g adding an usb drive)?
I installed "hal" but nothing is mounted on startup (/mnt is empty?)
3)
I saw there is a "netfs" daemon in my rc.conf
I googled it and I read it is for unix network.
When I install samba later, should I remove it then? (samba can do windows and unix both right?)
4)
I use openbox (and would like to continue using it). Is it possible to make windows "snap" to the edge and take half screen like in Windows 7 ?
And are there any commands or something like that to rearrange windows on the screen, for example "show all windows side by side" or "sorted" ?
This is my rc.conf
http://pastebin.com/fvj7cBVp
>> Thank you for you help! <<
Last edited by cyberius (2010-05-30 14:53:17)1)
replace ...
hi
thanks, it worked!
2)
use udev rules or autofs.
are udev rules and autofs two different ways of automounting devices?
i'm not shure, but i think i read on beginners wiki somewhere that hal automounts my drives?
hal, udev, autofs.. i'm confused
hm i read http://wiki.archlinux.org/index.php/Udev and created those files (with content) as they are written in the wiki
/etc/udev/rules.d/11-media-by-label-auto-mount.rules
/etc/udev/rules.d/10-my-media-automount.rules
/etc/udev/rules.d/11-sd-cards-auto-mount.rules
sadly nothing happend (i didnt see any mounted partition in /media or /mnt.. after reboot)
i know that
ls /dev/sd
sda sda1 sda2 sdb sdb1
those should be my windows partitions
did i miss somethingor should i better try autofs?
Last edited by cyberius (2010-05-30 14:54:42) -
[SOLVED] trying to get my keyboard layout to work, & hal to mount..
hi,
prior to the recent xorg upgrade, i had my xorg.conf set my keyboard layout, and hal would automount my phone in pcmanfm. since the xorg update, for the sake of not having to to set up the new hotplugging, I disabled it in my xorg.conf so my keyboard would keep its layout.
obviously though, with hot plugging switched off, hal wont mount my phone, so i am trying to get my keyboard set up and get hal automounting.
i have set Option "AutoAddDevices" "True" in my xorg.conf
i have edited /etc/hal/fdi/policy/10-keymap.fdi as follows;
<?xml version="1.0" encoding="ISO-8859-1"?> <!-- -*- SGML -*- -->
<deviceinfo version="0.2">
<device>
<match key="info.capabilities" contains="input.keymap">
<append key="info.callouts.add" type="strlist">hal-setup-keymap</append>
</match>
<match key="info.capabilities" contains="input.keys">
<merge key="input.xkb.rules" type="string">base</merge>
<!-- If we're using Linux, we use evdev by default (falling back to
keyboard otherwise). -->
<merge key="input.xkb.model" type="string">kbd</merge>
<match key="/org/freedesktop/Hal/devices/computer:system.kernel.name"
string="Linux">
<merge key="input.xkb.model" type="string">logiaccess</merge>
</match>
<merge key="input.xkb.layout" type="string">gb</merge>
<merge key="input.xkb.variant" type="string" />
</match>
</device>
</deviceinfo>
basically, my keyboard is still in us layout, and hal still wont mount my phone even after restarting X! what have i missed?
Last edited by ninjaprawn (2008-12-16 20:29:09)ok, i managed to fix the problem. i edited the .fdi file as follows;
<?xml version="1.0" encoding="ISO-8859-1"?> <!-- -*- SGML -*- -->
<deviceinfo version="0.2">
<device>
<match key="info.capabilities" contains="input.keymap">
<append key="info.callouts.add" type="strlist">hal-setup-keymap</append>
</match>
<match key="info.capabilities" contains="input.keys">
<merge key="input.xkb.rules" type="string">base</merge>
<!-- If we're using Linux, we use evdev by default (falling back to
keyboard otherwise). -->
<merge key="input.xkb.model" type="string">evdev</merge>
<match key="/org/freedesktop/Hal/devices/computer:system.kernel.name"
string="Linux">
<merge key="input.xkb.model" type="string">evdev</merge>
</match>
<merge key="input.xkb.layout" type="string">gb</merge>
<merge key="input.xkb.variant" type="string" />
</match>
</device>
</deviceinfo>
for some reason, logiaccess and kbd work in xorg.conf, but no in hal? instead, evdev can do everything! -
Unable to start MPD as a daemon in rc.conf
For some reason, MPD is unable to start as a daemon listed in rc.conf. I have tried running it as a background also and no go. MPD goes after ALSA, so I don't know what else is missing.
Also, I cannot start mpd as root after logging in immediately after my system boots up. It just tells me it fails.
However, I can start MPD after I log-in as a normal user and su into root, then manually typing /etc/rc.d/mpd start.
Could it be that it is unable to find my music database during its attempt to start as a daemon in rc.conf? (because my music directory is in an NTFS partition, which is not listed in fstab because it is automatically mounted by hal)
Could it be that I set "user" in /etc/mpd.conf as "mpd" that it is unable to start it as root?
What could be the culprit?
Last edited by orv (2007-12-24 19:22:49)Yup. MPD works and plays my music. It just wont start up as a daemon, but I know why now.
The place where my music is located (/dev/sdb2) is an NTFS partition which isn't mounted by the time I get to the login prompt. This is because it is automounted AFTER i log-in a user account in which HAL automounts that drive.
Adding an entry in FSTAB and not relying on automount by HAL solves the problem because now when I start it as a daemon, it can actually find my music library. -
[SOLVED] NTFS-3G UTF-8 Support
Ever since the "todo: have to rethink extra options" error started showing up on NTFS-3G, I've been using the /usr/share/hal/fdi/policy/10osvendor/20-ntfs-config-write-policy.fdi fix found at <http://bbs.archlinux.org/viewtopic.php?id=42070> (fifth post down, by Pilli).
That would allow me to mount external NTFS partitions, and by changing the contents of /sbin/mount.ntfs-3g to
#!/bin/bash
/bin/ntfs-3g $1 $2 -o locale=en_GB.UTF-8
and making it executable, I was able to restore UTF-8 support.
On a new Arch install today, I tried mounting my external NTFS drive without using the fix shown at the top of this post. I was overjoyed to find that it mounted, as well as an internal NTFS drive. However, I noticed I did not have UTF-8 support. I tried using the UTF-8 fix shown above but it seems it does not work now. Does anyone know how to restore UTF-8 support with the new NTFS-3G package?
Last edited by tony5429 (2008-10-18 22:16:01)the fix from the first post in this topic worked for me fo far
now when i use this fix, and try to mount a disk there's "unknown error"
christ it's an outrage the hal option doesn't get parsed like it's supposed to after all this time!!
how to make hal automount a ntfs-3g drive with utf-8 locale?
Last edited by _saiko (2008-10-27 23:52:43) -
Ok so the basics
KDE 3.5.9 from kdemod (not the full version): from desktop go to control center -> Desktop -> Behavior -> Device Symbols (3rd Tab) and make sure the box is checked (Checked) --> I got the corresponding Icons On Desktop
CD-ROM/DVD-ROM automounting and autounmounting works like charm, with the icon showing up, and eject command unmount and removes the icon.
extx partitions work great as with reiserf
As root everything works, with ntfs, both on Konqueror and from CLI
But as user I Got the hideous:
TODO: have to rethink extra options
I have installed latest hal, ntfs-3g, dbus
NEXT the files:
/sda3/etc/fstab (dbus removed from demons as instructed from the wiki)
# /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
#/dev/cdrom /mnt/cdrom iso9660 ro,user,noauto,unhide 0 0
#/dev/dvd /mnt/dvd udf ro,user,noauto,unhide 0 0
/dev/sda1 swap swap defaults 0 0
/dev/sda3 / ext3 defaults 0 1
/dev/sda5 /home ext3 defaults 0 1
/dev/sda7 /mnt/repos reiserfs defaults 0 1
/etc/rc.conf
LOCALE="en_US.utf8"
HARDWARECLOCK="localtime"
TIMEZONE="Europe/Athens"
KEYMAP="us"
CONSOLEFONT=
CONSOLEMAP=
USECOLOR="yes"
# Scan hardware and load required modules at bootup
MOD_AUTOLOAD="yes"
# Module Blacklist - modules in this list will never be loaded by udev
MOD_BLACKLIST=()
MODULES=(powernow-k8 fuse forcedeth slhc ac97_bus snd-mixer-oss snd-pcm-oss snd-page-alloc snd-pcm snd-timer snd snd-ac97-codec snd-intel8x0 soundcore ac battery button fan thermal loop)
# Scan for LVM volume groups at startup, required if you use LVM
USELVM="no"
DAEMONS=(syslog-ng network portmap acpid netfs @crond sensors hal nfslock @nfsd @samba cpufreq @cups @alsa @smartd @openntpd @sshd @kdm)
from /sda3/etc/hal/fdi/policy
<?xml version="1.0" encoding="UTF-8"?>
<deviceinfo version="0.2">
#################Automount NTFS filesystems with write support (ntfs-3g)######################3
<device>
<match key="volume.fstype" string="ntfs">
<match key="@block.storage_device:storage.hotpluggable" bool="true">
<merge key="volume.fstype" type="string">ntfs-3g</merge>
<merge key="volume.policy.mount_filesystem" type="string">ntfs-3g</merge>
<append key="volume.mount.valid_options" type="strlist">locale=</append>
</match>
</match>
</device>
#####################Auto-mount only removable media###################[b]I think it works OK[/b]
<device>
<match key="storage.hotpluggable" bool="false">
<match key="storage.removable" bool="false">
<merge key="storage.automount_enabled_hint" type="bool">false</merge>
</match>
</match>
</device>
########Put sync and noatime on for devices smaller than 8GB and off for devices larger than that###########[b]I do not know if this [/b]works
<device>
<match key="block.is_volume" bool="true">
<match key="volume.size" compare_lt="8000000000">
<match key="@block.storage_device:storage.hotpluggable" bool="true">
<merge key="volume.policy.mount_option.sync" type="bool">true</merge>
<merge key="volume.policy.mount_option.noatime" type="bool">true</merge>
</match>
<match key="@block.storage_device:storage.removable" bool="true">
<merge key="volume.policy.mount_option.sync" type="bool">true</merge>
<merge key="volume.policy.mount_option.noatime" type="bool">true</merge>
</match>
</match>
<match key="volume.size" compare_ge="8000000000">
<match key="@block.storage_device:storage.hotpluggable" bool="true">
<merge key="volume.policy.mount_option.sync" type="bool">false</merge>
<merge key="volume.policy.mount_option.noatime" type="bool">false</merge>
</match>
<match key="@block.storage_device:storage.removable" bool="true">
<merge key="volume.policy.mount_option.sync" type="bool">false</merge>
<merge key="volume.policy.mount_option.noatime" type="bool">false</merge>
</match>
</match>
</match>
</device>
###############USB sticks and drives do not automount correctly################[b][b]WORKS FINE[/b][/b]
<merge key="volume.ignore" type="bool">false</merge>
from:/sda3/usr/share/hal/fdi/policy/10osvendor/20-ntfs-config-write-policy.fdi
<?xml version="1.0" encoding="UTF-8"?> <!-- -*- SGML -*- -->
<!--
Montaggio unità esterne NTFS in lettura/scrittura con ntfs-3g.
/usr/share/hal/fdi/policy/10osvendor/
-->
<deviceinfo version="0.2">
<device>
<match key="volume.fstype" string="ntfs">
<match key="@block.storage_device:storage.hotpluggable" bool="true">
<merge key="volume.fstype" type="string">ntfs-3g</merge>
<merge key="volume.policy.mount_filesystem" type="string">ntfs-3g</merge>
<append key="volume.mount.valid_options" type="strlist">locale=</append>
</match>
</match>
</device>
</deviceinfo>
and usr/share/hal/fdi/policy/10osvendor/20-storage-methods.fdi
<?xml version="1.0" encoding="UTF-8"?>
<deviceinfo version="0.2">
<device>
<match key="info.udi" string="/org/freedesktop/Hal/devices/computer">
<append key="info.callouts.add" type="strlist">hal-storage-cleanup-all-mountpoints</append>
</match>
<!-- poll drives with removable media -->
<match key="storage.removable" bool="true">
<append key="info.addons" type="strlist">hald-addon-storage</append>
</match>
<match key="volume.is_disc" bool="true">
<match key="volume.disc.has_audio" bool="true">
<append key="info.interfaces" type="strlist">org.freedesktop.Hal.Device.Volume</append>
<append key="org.freedesktop.Hal.Device.Volume.method_names" type="strlist">Eject</append>
<append key="org.freedesktop.Hal.Device.Volume.method_signatures" type="strlist">as</append>
<append key="org.freedesktop.Hal.Device.Volume.method_argnames" type="strlist">extra_options</append>
<append key="org.freedesktop.Hal.Device.Volume.method_execpaths" type="strlist">hal-storage-eject</append>
</match>
<match key="volume.disc.is_blank" bool="true">
<append key="info.interfaces" type="strlist">org.freedesktop.Hal.Device.Volume</append>
<append key="org.freedesktop.Hal.Device.Volume.method_names" type="strlist">Eject</append>
<append key="org.freedesktop.Hal.Device.Volume.method_signatures" type="strlist">as</append>
<append key="org.freedesktop.Hal.Device.Volume.method_argnames" type="strlist">extra_options</append>
<append key="org.freedesktop.Hal.Device.Volume.method_execpaths" type="strlist">hal-storage-eject</append>
</match>
</match>
<!-- this is to be able to mount media in drives we cannot poll, e.g. IDE Zip Drives and PC style floppy drives -->
<match key="storage.media_check_enabled" bool="false">
<match key="storage.no_partitions_hint" bool="true">
<append key="info.interfaces" type="strlist">org.freedesktop.Hal.Device.Volume</append>
<append key="org.freedesktop.Hal.Device.Volume.method_names" type="strlist">Mount</append>
<append key="org.freedesktop.Hal.Device.Volume.method_signatures" type="strlist">ssas</append>
<append key="org.freedesktop.Hal.Device.Volume.method_argnames" type="strlist">mount_point fstype extra_options</append>
<append key="org.freedesktop.Hal.Device.Volume.method_execpaths" type="strlist">hal-storage-mount</append>
<append key="org.freedesktop.Hal.Device.Volume.method_names" type="strlist">Unmount</append>
<append key="org.freedesktop.Hal.Device.Volume.method_signatures" type="strlist">as</append>
<append key="org.freedesktop.Hal.Device.Volume.method_argnames" type="strlist">extra_options</append>
<append key="org.freedesktop.Hal.Device.Volume.method_execpaths" type="strlist">hal-storage-unmount</append>
<append key="org.freedesktop.Hal.Device.Volume.method_names" type="strlist">Eject</append>
<append key="org.freedesktop.Hal.Device.Volume.method_signatures" type="strlist">as</append>
<append key="org.freedesktop.Hal.Device.Volume.method_argnames" type="strlist">extra_options</append>
<append key="org.freedesktop.Hal.Device.Volume.method_execpaths" type="strlist">hal-storage-eject</append>
<!-- allow these mount options for all file systems -->
<match key="/org/freedesktop/Hal/devices/computer:system.kernel.name" string="Linux">
<append key="volume.mount.valid_options" type="strlist">ro</append>
<append key="volume.mount.valid_options" type="strlist">sync</append>
<append key="volume.mount.valid_options" type="strlist">dirsync</append>
<append key="volume.mount.valid_options" type="strlist">noatime</append>
<append key="volume.mount.valid_options" type="strlist">nodiratime</append>
<append key="volume.mount.valid_options" type="strlist">noexec</append>
<append key="volume.mount.valid_options" type="strlist">quiet</append>
<append key="volume.mount.valid_options" type="strlist">remount</append>
<append key="volume.mount.valid_options" type="strlist">exec</append>
<!-- As this is removable media give some leeway -->
<append key="volume.mount.valid_options" type="strlist">utf8</append>
<append key="volume.mount.valid_options" type="strlist">shortname=</append>
<append key="volume.mount.valid_options" type="strlist">codepage=</append>
<append key="volume.mount.valid_options" type="strlist">iocharset=</append>
<append key="volume.mount.valid_options" type="strlist">umask=</append>
<append key="volume.mount.valid_options" type="strlist">uid=</append>
</match>
<match key="/org/freedesktop/Hal/devices/computer:system.kernel.name" string="FreeBSD">
<append key="volume.mount.valid_options" type="strlist">ro</append>
<append key="volume.mount.valid_options" type="strlist">noexec</append>
<append key="volume.mount.valid_options" type="strlist">noatime</append>
</match>
</match>
</match>
<match key="volume.fsusage" string="filesystem">
<!-- Here follow volumes we specifically want to ignore - it is the -->
<!-- responsibility of software higher in the stack (e.g. gnome-vfs) -->
<!-- amd mount programs (e.g. Mount() on HAL) to respect volume.ignore -->
<merge key="volume.ignore" type="bool">false</merge>
<!-- Should always ignore Apple Bootstrap partitions (it would be -->
<!-- a security hole to mount it) - TODO: should use the bootable -->
<!-- flag from the Mac partition table instead -->
<match key="volume.fstype" string="hfs">
<match key="volume.label" string="bootstrap">
<merge key="volume.ignore" type="bool">true</merge>
</match>
</match>
<!-- Lenovo and IBM ship with a various recovery partitions -->
<match key="volume.fstype" string="vfat">
<match key="volume.label" string="SERVICEV001">
<merge key="volume.ignore" type="bool">true</merge>
</match>
<match key="volume.label" string="IBM_SERVICE">
<merge key="volume.ignore" type="bool">true</merge>
</match>
</match>
<match key="volume.fstype" string="ntfs">
<match key="volume.label" string="SERVICEV002">
<merge key="volume.ignore" type="bool">true</merge>
</match>
</match>
<!-- HP ships desktops with a recovery partition -->
<match key="volume.fstype" string="vfat">
<match key="volume.label" string="HP_RECOVERY">
<merge key="volume.ignore" type="bool">true</merge>
</match>
</match>
<!-- Sony ships laptops with a recovery partition -->
<match key="volume.fstype" string="ntfs">
<match key="volume.label" string="Recovery Partition">
<merge key="volume.ignore" type="bool">true</merge>
</match>
</match>
<!-- DELL ships some laptops with a visible recovery partition -->
<match key="volume.fstype" string="vfat">
<match key="volume.label" string="DellUtility">
<merge key="volume.ignore" type="bool">true</merge>
</match>
<match key="volume.label" string="DellRestore">
<merge key="volume.ignore" type="bool">true</merge>
</match>
</match>
<!-- ASUS ships some desktop with a recovery partition -->
<match key="volume.fstype" string="vfat">
<match key="volume.label" string="RECOVERY">
<merge key="volume.ignore" type="bool">true</merge>
</match>
<match key="volume.label" string="PQSERVICE">
<merge key="volume.ignore" type="bool">true</merge>
</match>
</match>
<match key="volume.fstype" string="ntfs">
<match key="volume.label" string="PQSERVICE">
<merge key="volume.ignore" type="bool">true</merge>
</match>
</match>
<!-- Hide partitions marked as Compaq Diagnostics -->
<match key="volume.partition.type" string="0x12">
<merge key="volume.ignore" type="bool">true</merge>
</match>
<!-- EFI firmware partitions -->
<match key="volume.fstype" string="vfat">
<match key="volume.label" string="EFI">
<merge key="volume.ignore" type="bool">true</merge>
</match>
</match>
<append key="info.interfaces" type="strlist">org.freedesktop.Hal.Device.Volume</append>
<append key="org.freedesktop.Hal.Device.Volume.method_names" type="strlist">Mount</append>
<append key="org.freedesktop.Hal.Device.Volume.method_signatures" type="strlist">ssas</append>
<append key="org.freedesktop.Hal.Device.Volume.method_argnames" type="strlist">mount_point fstype extra_options</append>
<append key="org.freedesktop.Hal.Device.Volume.method_execpaths" type="strlist">hal-storage-mount</append>
<append key="org.freedesktop.Hal.Device.Volume.method_names" type="strlist">Unmount</append>
<append key="org.freedesktop.Hal.Device.Volume.method_signatures" type="strlist">as</append>
<append key="org.freedesktop.Hal.Device.Volume.method_argnames" type="strlist">extra_options</append>
<append key="org.freedesktop.Hal.Device.Volume.method_execpaths" type="strlist">hal-storage-unmount</append>
<match key="/org/freedesktop/Hal/devices/computer:system.kernel.name" string="Linux">
<match key="volume.linux.is_device_mapper" bool="false">
<append key="org.freedesktop.Hal.Device.Volume.method_names" type="strlist">Eject</append>
<append key="org.freedesktop.Hal.Device.Volume.method_signatures" type="strlist">as</append>
<append key="org.freedesktop.Hal.Device.Volume.method_argnames" type="strlist">extra_options</append>
<append key="org.freedesktop.Hal.Device.Volume.method_execpaths" type="strlist">hal-storage-eject</append>
</match>
</match>
<match key="/org/freedesktop/Hal/devices/computer:system.kernel.name" string="FreeBSD">
<append key="org.freedesktop.Hal.Device.Volume.method_names" type="strlist">Eject</append>
<append key="org.freedesktop.Hal.Device.Volume.method_signatures" type="strlist">as</append>
<append key="org.freedesktop.Hal.Device.Volume.method_argnames" type="strlist">extra_options</append>
<append key="org.freedesktop.Hal.Device.Volume.method_execpaths" type="strlist">hal-storage-eject</append>
</match>
<!-- allow these mount options for all file systems -->
<match key="/org/freedesktop/Hal/devices/computer:system.kernel.name" string="Linux">
<append key="volume.mount.valid_options" type="strlist">ro</append>
<append key="volume.mount.valid_options" type="strlist">sync</append>
<append key="volume.mount.valid_options" type="strlist">dirsync</append>
<append key="volume.mount.valid_options" type="strlist">noatime</append>
<append key="volume.mount.valid_options" type="strlist">nodiratime</append>
<append key="volume.mount.valid_options" type="strlist">noexec</append>
<append key="volume.mount.valid_options" type="strlist">quiet</append>
<append key="volume.mount.valid_options" type="strlist">remount</append>
<append key="volume.mount.valid_options" type="strlist">exec</append>
</match>
<match key="/org/freedesktop/Hal/devices/computer:system.kernel.name" string="FreeBSD">
<append key="volume.mount.valid_options" type="strlist">ro</append>
<append key="volume.mount.valid_options" type="strlist">noexec</append>
<append key="volume.mount.valid_options" type="strlist">noatime</append>
</match>
<!-- allow these mount options for vfat -->
<match key="volume.fstype" string="vfat">
<match key="/org/freedesktop/Hal/devices/computer:system.kernel.name" string="Linux">
<append key="volume.mount.valid_options" type="strlist">utf8</append>
<append key="volume.mount.valid_options" type="strlist">shortname=</append>
<append key="volume.mount.valid_options" type="strlist">codepage=</append>
<append key="volume.mount.valid_options" type="strlist">iocharset=</append>
<append key="volume.mount.valid_options" type="strlist">umask=</append>
<append key="volume.mount.valid_options" type="strlist">dmask=</append>
<append key="volume.mount.valid_options" type="strlist">fmask=</append>
<append key="volume.mount.valid_options" type="strlist">uid=</append>
<append key="volume.mount.valid_options" type="strlist">flush</append>
</match>
<match key="/org/freedesktop/Hal/devices/computer:system.kernel.name" string="FreeBSD">
<append key="volume.mount.valid_options" type="strlist">longnames</append>
<append key="volume.mount.valid_options" type="strlist">shortnames</append>
<append key="volume.mount.valid_options" type="strlist">nowin95</append>
<append key="volume.mount.valid_options" type="strlist">-u=</append>
<append key="volume.mount.valid_options" type="strlist">-g=</append>
<append key="volume.mount.valid_options" type="strlist">-m=</append>
<append key="volume.mount.valid_options" type="strlist">-M=</append>
<append key="volume.mount.valid_options" type="strlist">-L=</append>
<append key="volume.mount.valid_options" type="strlist">-D=</append>
<append key="volume.mount.valid_options" type="strlist">large</append>
</match>
</match>
<!-- allow these mount options for hfs -->
<match key="volume.fstype" string="hfs">
<append key="volume.mount.valid_options" type="strlist">gid=</append>
<append key="volume.mount.valid_options" type="strlist">uid=</append>
<append key="volume.mount.valid_options" type="strlist">force</append>
</match>
<!-- allow these mount options for hfsplus -->
<match key="volume.fstype" string="hfsplus">
<append key="volume.mount.valid_options" type="strlist">force</append>
</match>
<!-- allow these mount options for ntfs -->
<match key="volume.fstype" string="ntfs">
<match key="/org/freedesktop/Hal/devices/computer:system.kernel.name" string="Linux">
<append key="volume.mount.valid_options" type="strlist">uid=</append>
<append key="volume.mount.valid_options" type="strlist">gid=</append>
<append key="volume.mount.valid_options" type="strlist">umask=</append>
<append key="volume.mount.valid_options" type="strlist">dmask=</append>
<append key="volume.mount.valid_options" type="strlist">fmask=</append>
<append key="volume.mount.valid_options" type="strlist">locale=</append>
<append key="volume.mount.valid_options" type="strlist">utf8</append>
</match>
<match key="/org/freedesktop/Hal/devices/computer:system.kernel.name" string="FreeBSD">
<append key="volume.mount.valid_options" type="strlist">-u=</append>
<append key="volume.mount.valid_options" type="strlist">-g=</append>
<append key="volume.mount.valid_options" type="strlist">-m=</append>
<append key="volume.mount.valid_options" type="strlist">-a</append>
<append key="volume.mount.valid_options" type="strlist">-i</append>
<append key="volume.mount.valid_options" type="strlist">-C=</append>
<append key="volume.mount.valid_options" type="strlist">-W=</append>
</match>
</match>
<!-- allow these mount options for ext3 -->
<match key="volume.fstype" string="ext3">
<append key="volume.mount.valid_options" type="strlist">acl</append>
<append key="volume.mount.valid_options" type="strlist">user_xattr</append>
<append key="volume.mount.valid_options" type="strlist">data=</append>
</match>
<!-- allow these mount options for ext2 -->
<match key="volume.fstype" string="ext2">
<append key="volume.mount.valid_options" type="strlist">acl</append>
<append key="volume.mount.valid_options" type="strlist">user_xattr</append>
</match>
<!-- allow these mount options for ufs -->
<match key="volume.fstype" string="ufs">
<match key="/org/freedesktop/Hal/devices/computer:system.kernel.name" string="Linux">
<append key="volume.mount.valid_options" type="strlist">ufstype=</append>
</match>
</match>
<!-- udf -->
<match key="volume.fstype" string="udf">
<match key="/org/freedesktop/Hal/devices/computer:system.kernel.name" string="Linux">
<append key="volume.mount.valid_options" type="strlist">uid=</append>
<append key="volume.mount.valid_options" type="strlist">umask=</append>
</match>
<match key="/org/freedesktop/Hal/devices/computer:system.kernel.name" string="FreeBSD">
<append key="volume.mount.valid_options" type="strlist">-C=</append>
<append key="volume.mount.valid_options" type="strlist">-v</append>
</match>
</match>
<!-- iso9660 -->
<match key="volume.fstype" string="iso9660">
<match key="/org/freedesktop/Hal/devices/computer:system.kernel.name" string="Linux">
<append key="volume.mount.valid_options" type="strlist">utf8</append>
<append key="volume.mount.valid_options" type="strlist">uid=</append>
<append key="volume.mount.valid_options" type="strlist">mode=</append>
<append key="volume.mount.valid_options" type="strlist">iocharset=</append>
</match>
<match key="/org/freedesktop/Hal/devices/computer:system.kernel.name" string="FreeBSD">
<append key="volume.mount.valid_options" type="strlist">extatt</append>
<append key="volume.mount.valid_options" type="strlist">gens</append>
<append key="volume.mount.valid_options" type="strlist">nojoliet</append>
<append key="volume.mount.valid_options" type="strlist">norrip</append>
<append key="volume.mount.valid_options" type="strlist">nostrictjoliet</append>
<append key="volume.mount.valid_options" type="strlist">-s=</append>
<append key="volume.mount.valid_options" type="strlist">-C=</append>
<append key="volume.mount.valid_options" type="strlist">-v</append>
</match>
</match>
<!-- allow these unmount options -->
<match key="/org/freedesktop/Hal/devices/computer:system.kernel.name" string="Linux">
<append key="volume.unmount.valid_options" type="strlist">lazy</append>
</match>
</match>
<!-- make sure we export Eject on discs where we don't recognize the file system -->
<match key="volume.is_disc" bool="true">
<match key="volume.fsusage" string="">
<append key="info.interfaces" type="strlist">org.freedesktop.Hal.Device.Volume</append>
<append key="org.freedesktop.Hal.Device.Volume.method_names" type="strlist">Eject</append>
<append key="org.freedesktop.Hal.Device.Volume.method_signatures" type="strlist">as</append>
<append key="org.freedesktop.Hal.Device.Volume.method_argnames" type="strlist">extra_options</append>
<append key="org.freedesktop.Hal.Device.Volume.method_execpaths" type="strlist">hal-storage-eject</append>
</match>
</match>
<match key="storage.requires_eject" bool="true">
<!-- storage Eject causes eject on each volume on this storage -->
<append key="info.interfaces" type="strlist">org.freedesktop.Hal.Device.Storage</append>
<append key="org.freedesktop.Hal.Device.Storage.method_names" type="strlist">Eject</append>
<append key="org.freedesktop.Hal.Device.Storage.method_signatures" type="strlist">as</append>
<append key="org.freedesktop.Hal.Device.Storage.method_argnames" type="strlist">extra_options</append>
<append key="org.freedesktop.Hal.Device.Storage.method_execpaths" type="strlist">hal-storage-eject</append>
<append key="info.interfaces" type="strlist">org.freedesktop.Hal.Device.Storage</append>
<append key="org.freedesktop.Hal.Device.Storage.method_names" type="strlist">CloseTray</append>
<append key="org.freedesktop.Hal.Device.Storage.method_signatures" type="strlist">as</append>
<append key="org.freedesktop.Hal.Device.Storage.method_argnames" type="strlist">extra_options</append>
<append key="org.freedesktop.Hal.Device.Storage.method_execpaths" type="strlist">hal-storage-closetray</append>
</match>
</device>
</deviceinfo>
Finaly:
# groups trotos
disk wheel video audio optical floppy storage users dbus hal trotos
AnyIdeas Why Still As User I Get The TODO S#@$t???
Thank You
I'm such a noob
KDE have this option when you right-click on a HDD from properties at the mount section at the end:
mount by user
UNCHECK ΤΗΑΤ ΟΝΕ and done
Last edited by trotos (2008-06-17 13:53:41)Did you ever encounter these error messages:
[cyt@arch ~]$ dmesg | tail
NTFS driver 2.1.29 [Flags: R/W MODULE].
NTFS-fs error (device sdb5): parse_options(): Unrecognized mount option locale.
NTFS-fs warning (device sdb5): parse_options(): Option utf8 is no longer supported, using option nls=utf8. Please use option nls=utf8 in the future and make sure utf8 is compiled either as a module or into the kernel.
I do not add those hal related policy files, and just uncheck the "mount by user" option. -
External drive doesn't automount using HAL
Hello everyone, this is a problem I've been struggling with for about a week now, still no solution!
Bascially I want HAL to automount my external HD (USB) at start up as it has my music etc etc. I usually boot with the drive in the USB slot. Sometimes the drive is visible and I just need to click on it to mount it, others I need to unplug and plug it back it and it's fine, but I can't just boot up and have it available. I'm using KDEmod and have unchecked the "Mount as user" box as suggested by a forum I read, made no difference.
Under "ownership" both the user and group of the drive are "root", but this is the same with all my mounted drives, including my /home. My DAEMONs list from /etc/rc.conf is below
DAEMONS=(syslog-ng @ipw3945d !network !net-profiles hal dhcdbd @networkmanager !netfs !crond @alsa @fam @kdm laptop-mode)
I have nothing to do with HAL in my MODULES line, should I? Thanks in advance! Let me know if ya'll need more information
*edit* everytime I have booted recently the drive is visible under "Storage" but unmounted.
Last edited by rettie (2008-08-25 22:30:45)I have since got this working using the uDev solution at the bottom of this page:
http://wiki.archlinux.org/index.php/Udev
yay now just need to sort the folder permissions on it (sigh)
*starts new thread...* -
Udev/hal rules won't automount my ipod
After following directions in the wiki articles on hal and udev to get my ipod to automount and generate the /dev/ipod device, I'm at a loss because nothing seems to work as explained. (I'm running Arch64 with LXDE)
I've added the following rule to /etc/hal/fdi/policy/ipod.fdi:
<?xml version="1.0" encoding="UTF-8"?>
<device>
<match key="@block.storage_device:storage.model" string="iPod">
<merge key="volume.policy.desired_mount_point" type="string">ipod</merge>
<merge key="volume.policy.mount_option.iocharset=iso8859-15" type="bool">true</merge>
<merge key="volume.policy.mount_option.sync" type="bool">true</merge>
</match>
</device>
I've added the following rule to /etc/udev/rules.d/60-ipod.rules
BUS=="usb", ATTRS{manufacturer}=="Apple*", ATTRS{model}=="iPod*", KERNEL=="sd?2", SYMLINK+="ipod", NAME="%k", GROUP="storage"
When I plug in the ipod, Pcmanfm will show 'Apple Ipod Music Player' in the left column with the other drives. When I click on it, it will properly mount the ipod to /media/{name of ipod}. I would like it to mount every ipod at /media/ipod, and create a link /dev/ipod. I haven't put anything in the fstab yet, but in any case, the /dev/ipod link is not created. I know the udev rules work, because it will create the correct link for /dev/pilot when I plug in my Palm.
Help! I'm trying hard to wrap my brain around this, and I don't understand why it's not creating the /dev/ipod link. I've restarted the computer and restarted hal and reloaded udev rules multiple times with no changes.
Thanks!
ScottAhhh....thank you! If I take out the 'last_rule' option it does indeed show up on pcmanfm. However, I think it's happening somewhere outside the parsing of the udev rules (perhaps HAL???) because even if I moved the local rules to the very last (99-local.rules) but kept in the 'last_rule' option, it would still not show up.
Now, second problem is trying to distinguish between flash drive and ipod. I thought you could use a != on an attribute. The rules below still result in /dev/sdb2 on the ipod getting mounted twice .... once to /media/ipod and once to /media/usbhd-sdb2.
## Automount usb drives
#Prevent sd?1 of the ipod from being mounted
KERNEL=="sd?1", ATTRS{manufacturer}=="Apple*", ATTRS{product}=="iPod*", OPTIONS="last_rule"
KERNEL=="sd?2", ATTRS{manufacturer}=="Apple*", ATTRS{product}=="iPod*", SYMLINK+="ipod", NAME="%k", GROUP="storage"
ACTION=="add", KERNEL=="sd?2", ATTRS{manufacturer}=="Apple*", ATTRS{product}=="iPod*", RUN+="/bin/mount -t vfat -o rw,noauto,shortname=mixed,flush,dirsync,quiet,noatime,nodiratime,uid=1000,utf8,umask=077,nodev,nosuid /dev/ipod /media/ipod"
#Automount flash drives to /media/usbdh-sd??
ACTION=="add", ATTRS{product}!="iPod*", KERNEL=="sd[b-z][0-9]", RUN+="/bin/mkdir -p /media/usbhd-%k"
KERNEL=="sd[b-z]", ATTRS{product}!="iPod*", NAME="%k", SYMLINK+="usbhd-%k", GROUP="storage"
ACTION=="add", KERNEL=="sd[b-z][0-9]", ATTRS{product}!="iPod*", SYMLINK+="usbhd-%k", GROUP="storage", NAME="%k"
ACTION=="add", KERNEL=="sd[b-z][0-9]", ATTRS{product}!="iPod*", RUN+="/bin/mkdir -p /media/usbhd-%k"
ACTION=="add", KERNEL=="sd[b-z][0-9]", ATTRS{product}!="iPod*", RUN+="/bin/ln -s /media/usbhd-%k /mnt/usbhd-%k"
ACTION=="add", KERNEL=="sd[b-z][0-9]", ATTRS{product}!="iPod*", PROGRAM=="/lib/udev/vol_id -t %N", RESULT=="vfat", RUN+="/bin/mount -t vfat -o rw,noauto,flush,dirsync,quiet,nodev,nosuid,noatime,nodiratime,dmask=000,fmask=111 /dev/%k /media/usbhd-%k"
ACTION=="add", KERNEL=="sd[b-z][0-9]", ATTRS{product}!="iPod*", RUN+="/bin/mount -t auto -o rw,noauto,async,dirsync,nodev,noatime /dev/%k /media/usbhd-%k"
#Unmount everything on removal
ACTION=="remove", KERNEL=="sd[a-z][0-9]", RUN+="/bin/rm -f /mnt/usbhd-%k"
ACTION=="remove", KERNEL=="sd[a-z][0-9]", RUN+="/bin/umount -l /dev/%k"
ACTION=="remove", KERNEL=="sd[a-z][0-9]", RUN+="/bin/rmdir /media/usbhd-%k"
Any ideas?
Thanks, Scott -
AutoMounting / Udev and HAL
Hey fellow Archers,
Sorry if this is a bit of a Noob Question.
But I am having issues with automounting usb drives that etc.
I am running eeepc 1000 and everything works fine out of the box. But I have shown Arch to a friend of mine and we can't gain access to the usb drive with free.desktop permission error. I have read the wiki and forum posts. However I have found the are for much older versions of HAL and Udev, and they are contradictory.
Please if you could help me clarfiy a solutions. Should Udev handle to mounting and permission rule or should I add HAL policy ?.
If HAL if the best solution could be so kind as to provide a example of Hal policy as my previous attempt to edited HAL has failed.
Kind Regards
Mac TzuMac Tzu wrote:
Great thanks SpeedVin
Could you Show me w copy of your Hal polcy?
No problem
1 <!DOCTYPE busconfig PUBLIC
2 "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
3 "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
4 <busconfig>
5
6 <!-- This configuration file specifies the required security policies
7 for the HAL to work. -->
8
9 <!-- Only root or user hal can own the HAL service -->
10 <policy user="hal">
11 <allow own="org.freedesktop.Hal"/>
12 </policy>
13 <policy user="root">
14 <allow own="org.freedesktop.Hal"/>
15 </policy>
16
17 <!-- Allow anyone to invoke methods on the Manager and Device interfaces -->
18 <policy context="default">
19 <allow send_destination="org.freedesktop.Hal"
20 send_interface="org.freedesktop.DBus.Introspectable"/>
21 <allow send_destination="org.freedesktop.Hal"
22 send_interface="org.freedesktop.DBus.Properties" />
23
24 <allow send_destination="org.freedesktop.Hal"
25 send_interface="org.freedesktop.Hal.Device"/>
26 <allow send_destination="org.freedesktop.Hal"
27 send_interface="org.freedesktop.Hal.Manager"/>
28
29 <allow send_destination="org.freedesktop.Hal"
30 send_interface="org.freedesktop.Hal.Device.CPUFreq"/>
31 <allow send_destination="org.freedesktop.Hal"
32 send_interface="org.freedesktop.Hal.Device.DockStation"/>
33 <allow send_destination="org.freedesktop.Hal"
34 send_interface="org.freedesktop.Hal.Device.KillSwitch"/>
35 <allow send_destination="org.freedesktop.Hal"
36 send_interface="org.freedesktop.Hal.Device.KeyboardBacklight"/>
37 <allow send_destination="org.freedesktop.Hal"
38 send_interface="org.freedesktop.Hal.Device.LaptopPanel"/>
39 <allow send_destination="org.freedesktop.Hal"
40 send_interface="org.freedesktop.Hal.Device.Leds"/>
41 <allow send_destination="org.freedesktop.Hal"
42 send_interface="org.freedesktop.Hal.Device.LightSensor"/>
43 <allow send_destination="org.freedesktop.Hal"
44 send_interface="org.freedesktop.Hal.Device.Storage"/>
45 <allow send_destination="org.freedesktop.Hal"
46 send_interface="org.freedesktop.Hal.Device.Storage.Removable"/>
47 <allow send_destination="org.freedesktop.Hal"
48 send_interface="org.freedesktop.Hal.Device.SystemPowerManagement"/>
49 <allow send_destination="org.freedesktop.Hal"
50 send_interface="org.freedesktop.Hal.Device.Volume"/>
51 <allow send_destination="org.freedesktop.Hal"
52 send_interface="org.freedesktop.Hal.Device.Volume.Crypto"/>
53 <allow send_destination="org.freedesktop.Hal"
54 send_interface="org.freedesktop.Hal.Device.WakeOnLan"/>
55
56 </policy>
57
58 </busconfig>
59
Nuber's are from Vim
Maybe you are looking for
-
My iphone is broken and i am getting a new one sent out. How do i get everything from my old phone copied to the new one so its exactly the same??
-
Dear All, At the time of GRN posting SAP throw the error as " The characteristics values for the batch is incomplete" at the time of GRN the batch number is seted automatically. i have created teh same batch in MSC1N for that same plant
-
Hi, I've had my imac for just over 2months now and I love it. But, what I'm wondering now is, should I be doing any maintenance on it? (I think I've seen it called "housekeeping" here) It's my first computer so there was no migration from another sys
-
A few G580 questions/problems/issues
So I recently got my Lenovo G580 and I'm loving it, but there are a few annoying things that I would like to get help with. 1. When turning it on it offers to give me and "EE Optimizing Boost" and if I wait for it to load and finish, then it doesn't
-
Basic Flash Page, Script Help Please!
So, I realize I'm an idiot, but I'm trying to teach myself flash because I need to make a basic flash page. I am going by this tutorial: http://www.flash-game-design.com/flash-tutorials/basic-Website-flash-tutorial.html I have modified it (going ste