[clug] Re: HAL, DBUS and co.

Andrew Janke a.janke at gmail.com
Wed Jun 3 12:06:47 GMT 2009


> Does anyone know a "clean" way to make a machine automagically mount
> USB HDD's (by label as per gnome-volume-manager in /media/<label>)
> when no user is logged in?

Don't you hate it how the second after you post something you
generally find an answer..  not quite automatic but good enough for
cron..

# first get Labels
ids=`blkid | grep backup | cut -f2 -d\  | cut -f2 -d\"`

# then use gnome-mount
for i in `echo $ids`;
do
   echo $i;
   gnome-mount -p $i;
done

Seems to work...

Now let's see if someone know something better via the use of pmount or ivman.

ta


--
Andrew Janke
(a.janke at gmail.com || http://a.janke.googlepages.com/)
Canberra->Australia    +61 (402) 700 883


More information about the linux mailing list