LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 12-31-2008, 09:15 PM   #1
esters
LQ Newbie
 
Registered: Oct 2006
Distribution: Slackware 12.2
Posts: 12

Rep: Reputation: 0
Automounting fails on xfce


Running Slackware 12.2 with Xfce 4.4.3. For device mounting I have dbus, hal, thunar-volman and pmount. Neither do USB devices or CD/DVD discs are autmounted.

/etc/fstab

Code:
/dev/sda2        swap             swap        defaults         0   0
/dev/sda1        /                ext3        defaults         1   1
/dev/sda3        /home            ext3        defaults         1   2
#/dev/cdrom      /mnt/cdrom       auto        noauto,owner,ro  0   0
#/dev/fd0         /mnt/floppy      auto        noauto,owner     0   0
devpts           /dev/pts         devpts      gid=5,mode=620   0   0
proc             /proc            proc        defaults         0   0
tmpfs            /dev/shm         tmpfs       defaults         0   0
/etc/group

Code:
cat /etc/group | grep esters
lp:!:7:lp,esters
audio:x:17:root,esters
video:x:18:root,esters
cdrom:x:19:root,esters
plugdev:x:83:root,esters
power:!:84:esters
users:!:100:esters
When I plug in an ipod, lshal -m says
Code:
Start monitoring devicelist:
-------------------------------------------------
04:10:10.757: usb_device_5ac_1260_000A270019A4A4F8 added
04:10:10.928: usb_device_5ac_1260_000A270019A4A4F8_if0 added
04:10:10.936: usb_device_5ac_1260_000A270019A4A4F8_usbraw added
04:10:10.949: usb_device_5ac_1260_000A270019A4A4F8_if0_scsi_host added
04:10:15.757: usb_device_5ac_1260_000A270019A4A4F8_if0_scsi_host_0 added
04:10:15.764: usb_device_5ac_1260_000A270019A4A4F8_if0_scsi_host_0_scsi_device_lun0 added
04:10:15.832: usb_device_5ac_1260_000A270019A4A4F8_if0_scsi_host_0_scsi_device_lun0_scsi_generic added
And in the mean time thunar-volman gives this
Code:
thunar-volman: No property info.capabilities on device with id /org/freedesktop/hal/devices/usb_device_5ac_1260_000A270019A4A4F8
I'm running hal and dbus with stock config files. Thanks.
 
Old 01-01-2009, 12:18 AM   #2
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,490

Rep: Reputation: Disabled
Try xfce4-mount-plugin from slackbuilds.org. xfce4-volstatus-icon is useful as well.

Brian
 
Old 01-01-2009, 07:09 AM   #3
esters
LQ Newbie
 
Registered: Oct 2006
Distribution: Slackware 12.2
Posts: 12

Original Poster
Rep: Reputation: 0
Thanks for the suggestions BCarey but none of them work I get the thunar-volman No property info.capabilities on device with id message every time I plug in an removable USB device.
 
Old 01-01-2009, 08:10 AM   #4
wadsworth
Member
 
Registered: Aug 2007
Distribution: Slackware64 13.37
Posts: 215

Rep: Reputation: 65
Have you listed the devices you want pmount to handle in pmount.allow?

There's a note on the slackbuilds.org page for pmount:
Quote:
NOTE: It seems that detection of removable devices via hal no longer
works correctly, and pmount also seems unmaintained as of right now.
You should be able to populate /etc/pmount.allow with a list of your
removable devices to work around it; see pmount's man page for more
detailed information.
 
Old 01-01-2009, 08:40 AM   #5
esters
LQ Newbie
 
Registered: Oct 2006
Distribution: Slackware 12.2
Posts: 12

Original Poster
Rep: Reputation: 0
Thanks for the tip wadsworth, but it doesn't work :<

dmesg

Code:
usb 1-2: new high speed USB device using ehci_hcd and address 6
usb 1-2: configuration #1 chosen from 1 choice
scsi4 : SCSI emulation for USB Mass Storage devices
usb 1-2: New USB device found, idVendor=13fe, idProduct=1f00
usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-2: Product: DataTraveler 2.0
usb 1-2: Manufacturer: Kingston
usb 1-2: SerialNumber: 5B871100013B
usb-storage: device found at 6
usb-storage: waiting for device to settle before scanning
fdisk -l

Code:
Disk /dev/sdd: 1000 MB, 1000341504 bytes
16 heads, 32 sectors/track, 3816 cylinders
Units = cylinders of 512 * 512 = 262144 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sdd1               1        3816      976880    e  W95 FAT16 (LBA)
pmount -d /dev/sdd1

Code:
resolved /dev/sdd1 to device /dev/sdd1
Checking for device '/dev/sdd1' in '/etc/fstab'
mount point to be used: /media/sdd1
no iocharset given, current locale encoding is UTF-8
locale encoding uses UTF-8, setting iocharset to 'utf8'
Cleaning lock directory /var/lock/pmount_dev_sdd1
Checking for device '/dev/sdd1' in '/etc/mtab'
Checking for device '/dev/sdd1' in '/proc/mounts'
device_whitelist: checking /etc/pmount.allow...
device_whitlisted(): nothing matched, returning 0
find_sysfs_device: looking for sysfs directory for device 8:49
find_sysfs_device: checking whether /dev/sdd1 is on /sys/block/ram0 (1:0)
find_sysfs_device: checking whether /dev/sdd1 is on /sys/block/ram1 (1:1)
find_sysfs_device: checking whether /dev/sdd1 is on /sys/block/ram2 (1:2)
find_sysfs_device: checking whether /dev/sdd1 is on /sys/block/ram3 (1:3)
find_sysfs_device: checking whether /dev/sdd1 is on /sys/block/ram4 (1:4)
find_sysfs_device: checking whether /dev/sdd1 is on /sys/block/ram5 (1:5)
find_sysfs_device: checking whether /dev/sdd1 is on /sys/block/ram6 (1:6)
find_sysfs_device: checking whether /dev/sdd1 is on /sys/block/ram7 (1:7)
find_sysfs_device: checking whether /dev/sdd1 is on /sys/block/ram8 (1:8)
find_sysfs_device: checking whether /dev/sdd1 is on /sys/block/ram9 (1:9)
find_sysfs_device: checking whether /dev/sdd1 is on /sys/block/ram10 (1:10)
find_sysfs_device: checking whether /dev/sdd1 is on /sys/block/ram11 (1:11)
find_sysfs_device: checking whether /dev/sdd1 is on /sys/block/ram12 (1:12)
find_sysfs_device: checking whether /dev/sdd1 is on /sys/block/ram13 (1:13)
find_sysfs_device: checking whether /dev/sdd1 is on /sys/block/ram14 (1:14)
find_sysfs_device: checking whether /dev/sdd1 is on /sys/block/ram15 (1:15)
find_sysfs_device: checking whether /dev/sdd1 is on /sys/block/loop0 (7:0)
find_sysfs_device: checking whether /dev/sdd1 is on /sys/block/loop1 (7:1)
find_sysfs_device: checking whether /dev/sdd1 is on /sys/block/loop2 (7:2)
find_sysfs_device: checking whether /dev/sdd1 is on /sys/block/loop3 (7:3)
find_sysfs_device: checking whether /dev/sdd1 is on /sys/block/loop4 (7:4)
find_sysfs_device: checking whether /dev/sdd1 is on /sys/block/loop5 (7:5)
find_sysfs_device: checking whether /dev/sdd1 is on /sys/block/loop6 (7:6)
find_sysfs_device: checking whether /dev/sdd1 is on /sys/block/loop7 (7:7)
find_sysfs_device: checking whether /dev/sdd1 is on /sys/block/hda (3:0)
find_sysfs_device: checking whether /dev/sdd1 is on /sys/block/hdb (3:64)
find_sysfs_device: checking whether /dev/sdd1 is on /sys/block/sda (8:0)
find_sysfs_device: major device numbers match
find_sysfs_device: minor device numbers do not match, checking partitions...
find_sysfs_device: checking whether device /dev/sdd1 matches partition 8:0
find_sysfs_device: checking whether device /dev/sdd1 matches partition 8:1
find_sysfs_device: checking whether device /dev/sdd1 matches partition 8:2
find_sysfs_device: checking whether device /dev/sdd1 matches partition 8:3
find_sysfs_device: checking whether /dev/sdd1 is on /sys/block/sdb (8:16)
find_sysfs_device: major device numbers match
find_sysfs_device: minor device numbers do not match, checking partitions...
find_sysfs_device: checking whether device /dev/sdd1 matches partition 8:16
find_sysfs_device: checking whether device /dev/sdd1 matches partition 8:17
find_sysfs_device: checking whether device /dev/sdd1 matches partition 8:18
find_sysfs_device: checking whether /dev/sdd1 is on /sys/block/sdc (8:32)
find_sysfs_device: major device numbers match
find_sysfs_device: minor device numbers do not match, checking partitions...
find_sysfs_device: checking whether device /dev/sdd1 matches partition 8:32
find_sysfs_device: checking whether device /dev/sdd1 matches partition 8:33
find_sysfs_device: checking whether /dev/sdd1 is on /sys/block/sdd (8:48)
find_sysfs_device: major device numbers match
find_sysfs_device: minor device numbers do not match, checking partitions...
find_sysfs_device: checking whether device /dev/sdd1 matches partition 8:48
find_sysfs_device: checking whether device /dev/sdd1 matches partition 8:49
find_sysfs_device: -> partition matches, belongs to block device /sys/block/sdd
device_removable: could not find a sysfs device for /dev/sdd1
Error: device /dev/sdd1 is not removable
policy check failed
 
Old 01-01-2009, 09:45 AM   #6
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,490

Rep: Reputation: Disabled
Could there be a problem with the physical drive itself? Could you try a different USB key?

Brian
 
Old 01-01-2009, 09:56 AM   #7
esters
LQ Newbie
 
Registered: Oct 2006
Distribution: Slackware 12.2
Posts: 12

Original Poster
Rep: Reputation: 0
No, because I plugged the key into a laptop and it worked without problems.
 
Old 01-01-2009, 10:16 AM   #8
Ilgar
Member
 
Registered: Jan 2005
Location: Istanbul, Turkey
Distribution: Slackware 14.1, Slackware64 14.1
Posts: 930

Rep: Reputation: 96
Is your user in the plugdev gorup?
 
Old 01-01-2009, 10:17 AM   #9
esters
LQ Newbie
 
Registered: Oct 2006
Distribution: Slackware 12.2
Posts: 12

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Ilgar View Post
Is your user in the plugdev gorup?
Yes

groups esters
esters : users lp audio video cdrom plugdev power
 
Old 01-02-2009, 04:14 PM   #10
Ilgar
Member
 
Registered: Jan 2005
Location: Istanbul, Turkey
Distribution: Slackware 14.1, Slackware64 14.1
Posts: 930

Rep: Reputation: 96
Do you see any files in the subdirectories of /etc/hal/fdi/ ? Any rules that disable polling?
 
Old 01-02-2009, 04:35 PM   #11
SqdnGuns
Member
 
Registered: Aug 2005
Location: Fountain Valley, CA / Thailand
Distribution: Slackware64 14.0
Posts: 981

Rep: Reputation: 88
From the pmount SBo README:

Code:
NOTE: It seems that detection of removable devices via hal no longer
works correctly, and pmount also seems unmaintained as of right now.
You should be able to populate /etc/pmount.allow with a list of your
removable devices to work around it; see pmount's man page for more
detailed information.
http://slackbuilds.org/slackbuilds/1.../pmount/README
 
Old 01-02-2009, 06:27 PM   #12
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,490

Rep: Reputation: Disabled
Have you enabled the automounting in thunar Preferences? Also, pmount shouldn't be necessary to do this, anyway. Maybe you should remove it.

Brian
 
Old 01-03-2009, 03:42 AM   #13
Eternal_Newbie
Member
 
Registered: Jun 2005
Location: The Pudding Isles
Distribution: Slackware 13.37
Posts: 573

Rep: Reputation: 59
If I remember correctly, for thunar itself to handle automounting you need to autostart it with XFCE. Create a .desktop file for thunar to ~/.config/autostart/ and call it thunar.desktop (BTW most filemanagers have an annoying habit of hiding the .desktop extension on a properly formed .desktop file).

This is the contents of mine:
Code:
[Desktop Entry]
Type=Application
Name=thunar
Comment=Needed for automounting
Exec=thunar --daemon
StartupNotify=false
Terminal=false
Hidden=false
Edit: copying the thunar.desktop file there and changing the command to thunar --daemon should work too.

Last edited by Eternal_Newbie; 01-03-2009 at 03:58 AM.
 
Old 01-03-2009, 08:56 AM   #14
Ilgar
Member
 
Registered: Jan 2005
Location: Istanbul, Turkey
Distribution: Slackware 14.1, Slackware64 14.1
Posts: 930

Rep: Reputation: 96
I'm using XFCE, but automounting works without starting Thunar at login. Just install the Thunar-volman-plugin and from Thunar preferences->Advanced, enable volume management (and configure the options). No other software is needed.
 
Old 01-03-2009, 05:34 PM   #15
esters
LQ Newbie
 
Registered: Oct 2006
Distribution: Slackware 12.2
Posts: 12

Original Poster
Rep: Reputation: 0
Thanks for the advice, but I ditched Slackware.
 
  


Reply

Tags
automount, slackware, usb


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
XFce and Compiz : xfce doesn't manage the desktop naaman Linux - Desktop 0 07-16-2008 02:39 AM
XFCE Network ServersI use XFCE (sometimes) but I can not find my network folders on a holzster Ubuntu 0 10-24-2006 06:48 PM
Xfce problems with task bar and xfce-panel aeruzcar Linux - Software 4 06-26-2006 06:29 AM
Xfce installer fails make at file manager xxmaddjxx Linux - Software 1 09-07-2005 09:01 PM
automounting?? graffitici Linux - Hardware 6 07-04-2003 04:58 AM


All times are GMT -5. The time now is 09:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration