You are not logged in.

#1 2008-09-17 00:57:38

OneEyedPimp
Member
Registered: 2008-05-02
Posts: 103

Xfce4 automount thumb drive

Hello all,

I have xfce up an running and it will automount cds and such for me, but it wont automount my thumb drive. It gives me a really weird message:

Unable to mount "DRIVE":

A security policy in place prevents this sender from sending this message to this recipient, see message bus configuration file 
(rejected message had interface "org.freedesktop.Hal.Device.Volume" member "Mount" error name "(unset)" destination "org.freedesktop.Hal")

I see the icon for drive on the desktop, and I am in the hal and storage groups.  I dont know how else to get this sucker mounted. It works as root, but not as a regular user. Any suggestions?

After I get this working I am going to try to encrypt this drive with LUKS, can xfce mount an encrypted drive if supplied with the passphrase?

Offline

#2 2008-09-17 01:35:43

byte
Member
From: Düsseldorf (DE)
Registered: 2006-05-01
Posts: 2,046

Re: Xfce4 automount thumb drive

Install pmount.


1000

Offline

#3 2008-09-17 01:59:35

OneEyedPimp
Member
Registered: 2008-05-02
Posts: 103

Re: Xfce4 automount thumb drive

Hmm, well it appears that I already have it installed. I just checked and reinstalled for good measure. Do I need to somehow enable it?

Offline

#4 2008-09-17 23:42:16

OneEyedPimp
Member
Registered: 2008-05-02
Posts: 103

Re: Xfce4 automount thumb drive

So I have searched and tried everything, does anyone know how I go about auto mounting my usb stick as a non-root user?

Offline

#5 2008-09-18 01:38:32

scrawler
Member
Registered: 2005-06-07
Posts: 318

Re: Xfce4 automount thumb drive

if the device is not in fstab, you can just do

$ pmount /dev/sd(whatever)

and it will mount in /media/sd(whatever)

Offline

#6 2008-09-18 02:00:28

OneEyedPimp
Member
Registered: 2008-05-02
Posts: 103

Re: Xfce4 automount thumb drive

Ok cool. So say that I wanted to partition it with two partitions. One of them will be encrypted with LUKS. How do I go about mounting the LUKS volume on the thumb drive? Thanks for all of your help!

Offline

#7 2008-09-18 07:21:32

byte
Member
From: Düsseldorf (DE)
Registered: 2006-05-01
Posts: 2,046

Re: Xfce4 automount thumb drive

> How do I go about mounting the LUKS volume on the thumb drive?

With pmount. :]

I use this in my .bashrc:

alias exhd='if [ ! -d /media/exhd ]; then pmount -A -t ext3 /dev/disk/by-uuid/<stuff> exhd; else pumount /dev/disk/by-uuid/<stuff>; fi'

(man pmount; I'm lazy and don't want two aliases for mounting and unmounting)
To figure out your UUID (you can't use labels and the other stuff might change depending on when/where you plug the stick): unplug and replug the stick after you created the LUKS partition and run 'grep LUKS /etc/blkid.tab'


1000

Offline

Board footer

Powered by FluxBB