Wednesday, October 28, 2009

Automount in Karmic

Since "Hal" is being deprecated, and ubuntu moved to devicekit-disks, i had a hard time figuring out how to set my drives to autmount on startup like i used to do with editing /etc/hal/fdi/policy/preferences.fdi and setting automount to ture.

i just found a solution for it, thanks to this

do this

sudo gedit /lib/udev/rules.d/95-devkit-disks.rules

at the end BEFORE:

LABEL="devkit_disks_end"

just add

RUN+="/bin/mount -t auto /dev/sda6 /media/Programs"

of course replace /dev/sda6 with ur drive number and /media/Programs with the mount point u like.

i also added this rule, dunno if its needed, it was supposed to set me as the owner but i still have to enter my pass if i wana unmount and remount a drive again but i dont care...

KERNEL=="/dev/sda[0-9]", OWNER="user"

FINALLY! found a solution for this it has been bugging me like hell!