XFCE howto automount media
aus9
Status: Assistant
Joined: 21 Sep 2008
Posts: 358
Location: Australia
Reply Quote
hi

notes to myself but anyone having issues or want to mount /umount removable media eg usb sticks and optical discs read on

1) Ensure you have package installed

thunar-volman

2) Applications Menu -> Settings -> Session and Startup

Tab to Application Autostart

tick box for XFCE Volume Daemon

3) Applications Menu -> Settings ->Removable Drives and Media

tick box Mount removable media when inserted

4) When you insert an USB stick or removable data disc you are likely to get a notification dialog box and in Thunar contents are now viewable.

OPTIONAL

5) In the settings box (4)
tick Browse removable media when inserted
Causes any usb stick etc when inserted to auto load Thunar at the relevant folder.

Some people may prefer to not use this as you lose focus on your current task.
YMMV

6) Use the icon in Thunar to "umount" removable media or "eject" optical media



7) If eject or umount fails or loading fails, run groups to ensure you are member of
cdrom
audio
video
plugdev

:: Code ::
groups
gordon dialout cdrom floppy audio dip video plugdev users fuse scanner netdev


8) The ejection of the optical media is done by sudo eject so check that sudo is enabled for your runlevel in
sysv-rc-conf

9) The umounting of usb sticks etc uses sudo umount so again check sudo is good
Back to top
aus9
Status: Assistant
Joined: 21 Sep 2008
Posts: 358
Location: Australia
Reply Quote
nope does not rely on eject

the eject function is now exo-utils

2) if auto-mount stuff is not needed you do not need to install the volman but instead rely on
xfce4-mount-plugin

which provides

/usr/lib/xfce4-mount-plugin/xfce4/panel-plugins/xfce4-mount-plugin
Back to top
anticapitalista
Status: Contributor
Joined: 13 Jun 2008
Posts: 202
Location: Greece
Reply Quote
Is this on Debian (or a derivative -Knoppix)? and if so which repo?
Which version of xfce?
Which login manager (if any) are you using?

So many questions as I can get xfce on a Debian stable derivative using SLiM to auto-mount, but it doesn't work in Testing or sid.
Back to top
aus9
Status: Assistant
Joined: 21 Sep 2008
Posts: 358
Location: Australia
Reply Quote
hi

debian sid for me

a bit more for you if it helps

have no entries in fstab.

uninstall the thunar-volman

open thunar
insert disc or usb

click on icon should mount it

2) The reason why I started writing these online notes is because I could see a 1 second notification....I now know what it says.....when I click to umount the usb....its says....its writing data to the disk but STILL umounts

when I was I was using volman.....I could not get rid of that error.

I will rewrite above stuff when I (hopefully) help you.



:: Code ::
inxi -F
System:    Host: sid.sid.com Kernel: 3.0.0-2-686-pae i686 (32 bit) Desktop Xfce 4.8.3 Distro: Debian GNU/Linux wheezy/sid
Machine:   System: ECS product: 945GCT-M2 version: 1.x serial: 1131
           Mobo: ECS model: 945GCT-M2 version: ECS Bios: American Megatrends version: 080012 date: 05/14/2008
CPU:       Dual core Pentium CPU E5200 (-MCP-) cache: 2048 KB flags: (lm nx sse sse2 sse3 ssse3)
           Clock Speeds: 1: 2494.327 MHz 2: 2494.327 MHz
Graphics:  Card: nVidia G96 [GeForce 9500 GT] X.org: 1.11.1 driver: nvidia tty size: 80x24 Advanced Data: N/A for root
Audio:     Card: Intel N10/ICH 7 Family High Definition Audio Controller driver: HDA Intel Sound: ALSA ver: 1.0.24
Network:   Card: Realtek RTL-8139/8139C/8139C+ driver: 8139too
           IF: eth0 state: unknown speed: 100 Mbps duplex: full mac: 00:21:97:76:2d:da
Drives:    HDD Total Size: 80.0GB (9.9% used) 1: /dev/sda WDC_WD800JD 80.0GB
Partition: ID: / size: 16G used: 2.6G (17%) fs: ext3
Sensors:   Error: You do not have the sensors app installed.
Info:      Processes: 97 Uptime: 20 min Memory: 183.2/2025.5MB Client: Shell inxi: 1.7.24


2) My repo is

deb ftp.iinet.net.au/debian/debian sid main contrib non-free

3) version is in inxi

4) I am using login gdm3

Use sysv-rc-conf to disable slim and try gdm3 pls
Back to top
aus9
Status: Assistant
Joined: 21 Sep 2008
Posts: 358
Location: Australia
Reply Quote
EDIT

ok I just tested slim (altho not using autologin)

and no mounting of disks occurs

ok found error file which is
/home/name/.xsession-errors

2) a google suggested using an .xinitrc but not sure if slim sees it so
first test create an autostart entry to force thunar to run as a daemon has failed

BTW gdm3 has its one initrc in /etc/xdg/xfce4

3) I am now looking at this page

wiki.archlinux.org/index.php/ConsoleKit

but first attempt failed.

I did notice that in xfce settings I could add policy kit to autostart but reading the file its name is

polkit-gnome-(etc)
and it appears to relate to
/usr/lib/policykit-1/polkit-gnome-authentication

while if you are using slim, you may prefer the generic policy kit?

any first testing is a fail

4) ok so this page
wiki.archlinux.org/index.php/Thunar

mentions the order and
:: Quote ::
Note that ck-launch-session comes before dbus-launch. If you do them the other way around you might get "Not authorized" errors when you try to mount your drive


and so links to

bbs.archbang.org/viewtopic.php?id=289

but Debian does not use storage group udev rule

it does exist in

/lib/udev/rules.d/60-persistent-storage etc

but no group in /etc/group

YMMV
Back to top
aus9
Status: Assistant
Joined: 21 Sep 2008
Posts: 358
Location: Australia
Reply Quote
ok I think I know what I did wrong.

in the google showing to use an .xinitrc......booting into xfce4 is the last step but /etc/slim.conf has already actioned that

Hopefully on the weekend I will have a working slim.conf that uses the thunar arch wiki rule of

exec ck-launch-session dbus-launch <your wm>

I am not sure if I also need a thunar --daemon setting but I feel we need to edit slim.conf and not create any xinitrc?
Back to top
aus9
Status: Assistant
Joined: 21 Sep 2008
Posts: 358
Location: Australia
Reply Quote
hi anticapitalista

just to let you know there is a post at aptosid forum on this matter as well

aptosid.com/index.php?name=PNphpBB2&file=viewtopic&t=1632

There are a number of claims in this thread
2 of which I think are relevant

a) we need to start policykit but which one?

b) slim is no longer maintained.

2) in google slim maintainer I found this bug which appears to have no reply from the maintainer

bugs.debian.org/cgi-bin/bugreport.cgi?bug=614749

:: Quote ::
There is still no fix to make SLiM work with consolekit >0.4.1-4
SLiM works with consolekit 0.4.1-4


Therefore I can not help you.

suggest you look at the size of installing gdm3 versus slim

ii) suggest you look at not using automount if you prefer slim

good luck
Back to top
anticapitalista
Status: Contributor
Joined: 13 Jun 2008
Posts: 202
Location: Greece
Reply Quote
Thanks for all that aus9. I should have some time this weekend to try them out.
Back to top
aus9
Status: Assistant
Joined: 21 Sep 2008
Posts: 358
Location: Australia
Reply Quote
while playing around with E17 with no xfce I found

usbmount

:: Quote ::

This package automatically mounts USB mass storage devices (typically USB pens) when they are plugged in, and unmounts them when they are removed. The mountpoints (/media/usb[0-7] by default), filesystem types to consider, and mount options are configurable. When multiple devices are plugged in, the first available mountpoint is automatically selected. If the device provides a model name, a symbolic link /var/run/usbmount/MODELNAME pointing to the mountpoint is automatically created. The script that does the mounting is called by the udev daemon.

Therefore, USBmount requires a 2.6 (or newer) Linux kernel. Firewire devices are also supported by USBmount.
USBmount is intended as a lightweight solution which is independent of a desktop environment. Users which would like an icon to appear when an USB device is plugged in should use the pmount and hal packages instead.

Back to top
Display posts from previous:   

All times are GMT - 8 Hours