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!

2 comments:

  1. Nice post.
    But what is devicekit-disks ?
    I know that HAL is the hardware abstraction layer, but that's employed by the kernel. They are not abstracting hardware anymore or what :S ?

    ReplyDelete
  2. devicekit includes devicekit-power, devicekit-disks and others which are the "new" abstraction layer replacing HAL in the kernel.

    HAL according to David Zeuthen (1 of its developers) contain lots of redundancy with other packages in the kernel and the only missing part is to enumerate the devices and display notifications on addition/removal of any hardware.

    but y is it that no body even cares about the simplicity of things arround here? i mean, they added Disk Utility which is used by red hat and is supposed to be a "new" piece of software to ease device management, even though till now the only functionality i saw is mounting and unmounting drives :S, but anyway why didnt any1 even think of adding the tiny option of automounting devices on startup to it? how hard could it be i mean? a small tiny check box :S

    ReplyDelete