Xfce Forum

Sub domains
 

You are not logged in.

#1 2007-02-02 14:15:35

yongyi
Member
Registered: 2007-01-28
Posts: 16

[SOLVED]thunar can't mount/umount removible devices automaticaly

hello.I come again.

my os is slk 11.0+xfce4.4.0. I have installed hunar-Bundle-0.8.0-installer.run , xfce-goodies-4.4.0-installer.run  and xfce4-4.4.0-installer.run.

my problems is that Thunar don't recognize any of my removible devices, such as DVD-ROM (with data or video), CD-ROM (with data or audio) , my SD Card,and usb disk. I put in the usb disk,but the Xfce-Desktop  and  thunar also doesn't appera the usb disk icon.

I can mount my usb disk by myself.

#fdisk -l:
Disk /dev/sda: 125 MB, 125698048 bytes
4 heads, 60 sectors/track, 1022 cylinders
Units = cylinders of 240 * 512 = 122880 bytes

I have installed udev-104    hal-0.5.8.1     dbus-1.0.2-i486      dbus-glib-0.72     pmount-0.9.13

AND
I have search this forum,and read this post:
http://forum.xfce.org/index.php?topic=2961.0

Offline

#2 2007-02-02 14:29:50

Nick
Dev
From: ~
Registered: 2005-02-17
Posts: 1,144
Website

Re: [SOLVED]thunar can't mount/umount removible devices automaticaly

Thunar volman should take care of this: Goto thunar > edit > preferences > advanced > select the thunar volman checkbox. Then run 'Thunar --daemon' when you start Xfce.

Offline

#3 2007-02-02 14:47:41

yongyi
Member
Registered: 2007-01-28
Posts: 16

Re: [SOLVED]thunar can't mount/umount removible devices automaticaly

Thunar volman should take care of this: Goto thunar > edit > preferences > advanced > select the thunar volman checkbox. Then run 'Thunar --daemon' when you start Xfce.

All above have done,but still can't.

I run 'Thunar --daemon' by add it to xfce's autostart.

Offline

#4 2007-02-02 20:59:56

acobar
Member
Registered: 2007-02-02
Posts: 15

Re: [SOLVED]thunar can't mount/umount removible devices automaticaly

Is HAL working properly? What kernel are you using?

Offline

#5 2007-02-03 01:58:12

ljones
Member
Registered: 2007-01-27
Posts: 14

Re: [SOLVED]thunar can't mount/umount removible devices automaticaly

I'm having a similar problem on an x86 system running slamd64 (64-bit slackware), even after compiling hal, dbus, policykit etc. I've even tried some packages from here ( http://saxa.droplinegnome.org/x86_64/2.16/2.16.2/ ) . My cdrom drive is *never * mounted, it is simply ignored. To date everything I have tried has failed sad . Sometimes if I restart hal & dbus as root, leave a cdrom in the drive and start xfce4 as non-root, I'll get a cd icon up but if I eject it, it remains on the screen! Same goes for xfce4 in root as well. Occasionally starting up xfce4 after starting hal & dbus causes the screen to go almost completely blank and all I get is a "X" cursor on the screen with nothing else.

Even more strange, if I do the following.... (as root within xfce4)
cd /etc/rc.d
./rc.hal restart
./rc.dbus restart

If there is a cd in the cdrom drive it's found and looked at but after that the system just seems to "forget" the cdrom drive. I can read off it and eject it, but once it's ejected that's it, putting it back in does nothing.

ljones

Offline

#6 2007-02-03 03:33:07

yongyi
Member
Registered: 2007-01-28
Posts: 16

Re: [SOLVED]thunar can't mount/umount removible devices automaticaly

acobar wrote:

Is HAL working properly? What kernel are you using?

yes ,HAL work well.
kernel:2.6.18

but,now I found my dbus have problem.
there didn't have rc.dbus in /etc/rc.d/  !!!!!!

I am checking it...

======
Can't find out reason. I try install dbus of several version,but still find /etc/rc.d/rc.dbus!!

Offline

#7 2007-02-03 07:14:08

yongyi
Member
Registered: 2007-01-28
Posts: 16

Re: [SOLVED]thunar can't mount/umount removible devices automaticaly

;D
OK.I  maked progress!
I reinstall the Dbus , dbus-glib, and Hal,
run
/etc/rc.d/rc.hal restart
in terminal.
There can see icons on the Desktop when I put in the USB-DISK or CD.
But,I still can't find /etc/rc.d/rc.dbus!!! I dont know what about it.
--
AND,
There is a new problem:
The USB-DISK or CDROM icons only appera at the Desktop,but not in the Thunar sidebar,even I refresh the Thunar.
just as the image:
1Screenshot-2.png

and , the Thunar seen to cant refresh auto.

Offline

#8 2007-02-03 08:29:10

Nick
Dev
From: ~
Registered: 2005-02-17
Posts: 1,144
Website

Re: [SOLVED]thunar can't mount/umount removible devices automaticaly

Did you compile thunar with fam/gamin? This will make Thunar (and Xfdesktop) monitor file changes.

That the device icons only appear on the desktop is just weird, because they both use thunar-vfs for that, anyway, make sure you have the dbus, hal and fam (if you use it) daemon running. And for decent device mount support install thunar-volman (and enable it in the the Thunar propeties -> advanced) and run 'Thunar --daemon' when you start Xfce.

Offline

#9 2007-02-03 09:31:58

acobar
Member
Registered: 2007-02-02
Posts: 15

Re: [SOLVED]thunar can't mount/umount removible devices automaticaly

If you compiled by source it will create "/etc/rc.d/rc.messagebus", so you can run it to start dbus. Don't forget to list it on your "/etc/rc.d/rc.local"  or "/etc/rc.d/rc.M". Also, you need to create an "messagebus" user account and change the owner of "/var/run/dbus" to "messagebus".

I think that is all about. Enjoy!

Regards.

Offline

#10 2007-02-03 11:05:53

ljones
Member
Registered: 2007-01-27
Posts: 14

Re: [SOLVED]thunar can't mount/umount removible devices automaticaly

Intresting, I am having similar (but not quite the same) problems.  I'm following all this smile though I'm finding nothing I will do changes the situation - I checked my /var/run/dbus and changed its owner but it seemed to make no difference. My system (as root) when I run xfce4 will "forget" to automount the cdrom drive for some weird reason.

The only way I can "fix" it (though sometimes I'll loose the desktop icons) is to do this in /etc/rc.d each time I need to use the cdrom

./rc.hal restart
./rc.dbus restart

ljones

Offline

#11 2007-02-03 14:04:52

Nick
Dev
From: ~
Registered: 2005-02-17
Posts: 1,144
Website

Re: [SOLVED]thunar can't mount/umount removible devices automaticaly

Maybe you guys don't have enough rights to do mounting optical devices? If the groups exist, you can try yo add yourself to the optical and storage groups (gpasswd -a you group)?

Offline

#12 2007-02-03 15:10:32

ljones
Member
Registered: 2007-01-27
Posts: 14

Re: [SOLVED]thunar can't mount/umount removible devices automaticaly

sad Didn't seem to work. I tried gpasswd for the groups messagebus, haldaemon and dbus but no change sad .

Here's my /etc/group file;

root::0:root
bin::1:root,bin,daemon
daemon::2:root,bin,daemon
sys::3:root,bin,adm
adm:!:4:root,adm,daemon,messagebus,aaaaa
tty::5:
disk::6:root,adm
lp::7:lp
mem::8:
kmem::9:
wheel:!:10:root,messagebus,aaaaa
floppy:!:11:root,messagebus,aaaaa
mail::12:mail
news::13:news
uucp::14:uucp
man::15:
audio:!:17:messagebus,aaaaa
video::18:
cdrom:!:19:messagebus,aaaaa
games::20:
slocate::21:
utmp::22:
smmsp::25:smmsp
mysql::27:
rpc::32:
sshd::33:sshd
gdm::42:
shadow::43:
ftp::50:
pop::90:pop
scanner:!:93:messagebus,aaaaa
nobody::98:nobody
nogroup::99:
users::100:
console::101:
dbus:x:70:aaaaa
haldaemon:x:71:aaaaa
messagebus:x:102:aaaaa
avahi:x:72:

nb, "aaaaa" is just a test (non-root) account.

ljones

Offline

#13 2007-02-04 00:11:19

acobar
Member
Registered: 2007-02-02
Posts: 15

Re: [SOLVED]thunar can't mount/umount removible devices automaticaly

Hum, lets try the hard way. Can you post the result of `ps -A` before and after that thing happens? I suspect that or dbus or hal or both is/are being killed or going crazy.

Do the following:
  - open one terminal;
  - type `dbus-monitor`;
  - you shold read the requests and messages exchanged.

For HAL you can try:
  - lshal.

Also, there are many steps you should accomplish. Take a look on "hal-spec.html". Have fun!

I'm still running the good old kernel 2.4.x (it means no HAL for me) but, if you can't fix the things or if someone else reports the same problem, I will install a new one just to check out.

Regards

Offline

#14 2007-02-04 04:12:44

yongyi
Member
Registered: 2007-01-28
Posts: 16

Re: [SOLVED]thunar can't mount/umount removible devices automaticaly

:? My problem is going on.
I have added the /etc/rc.d/rc.hal in rc.M,but rc.hal didnt run auto.
And I found I cant run rc.hal by myself again,when reboot the computer.This is:

root:~# /etc/rc.d/rc.hal start
Starting HAL daemon: failed

:? :twisted:

Nick wrote:

Did you compile thunar with fam/gamin? This will make Thunar (and Xfdesktop) monitor file changes.

That the device icons only appear on the desktop is just weird, because they both use thunar-vfs for that, anyway, make sure you have the dbus, hal and fam (if you use it) daemon running. And for decent device mount support install thunar-volman (and enable it in the the Thunar propeties -> advanced) and run 'Thunar --daemon' when you start Xfce.

I run xfce4-4.4.0-installer.run to  install thunar. and I think I didnt install fam.

acobar wrote:

If you compiled by source it will create "/etc/rc.d/rc.messagebus", so you can run it to start dbus. Don't forget to list it on your "/etc/rc.d/rc.local"  or "/etc/rc.d/rc.M". Also, you need to create an "messagebus" user account and change the owner of "/var/run/dbus" to "messagebus".

I think that is all about. Enjoy!

Regards.

I didnt have /etc/rc.d/rc.messagebus,but have  /etc/rc.d/init.d/rc.messagebus.And run it error:

root:/etc/rc.d/init.d# ./messagebus
./messagebus: line 24: /etc/rc.d/init.d/functions: no this file

acobar wrote:

Hum, lets try the hard way. Can you post the result of `ps -A` before and after that thing happens? I suspect that or dbus or hal or both is/are being killed or going crazy.

Do the following:
  - open one terminal;
  - type `dbus-monitor`;
  - you shold read the requests and messages exchanged.

For HAL you can try:
  - lshal.

root:/etc/rc.d/init.d# dbus-monitor
signal sender=org.freedesktop.DBus -> dest=:1.13 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameAcquired
   string ":1.13"
method call sender=:1.13 -> dest=org.freedesktop.DBus path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=AddMatch
   string "type='method_call'"
method call sender=:1.13 -> dest=org.freedesktop.DBus path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=AddMatch
   string "type='method_return'"
method call sender=:1.13 -> dest=org.freedesktop.DBus path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=AddMatch
   string "type='error'"

AND my hal cant run as above.

root:~# lshal
error: dbus_bus_get: org.freedesktop.DBus.Error.NoServer: Failed to connect to socket /var/run/dbus/system_bus_socket: Connection refused

Offline

#15 2007-02-04 10:08:27

acobar
Member
Registered: 2007-02-02
Posts: 15

Re: [SOLVED]thunar can't mount/umount removible devices automaticaly

OK, by your last post looks like you are not initializing the d-bus daemon. Put this one on on "/etc/rc.d" path (it is rc.messagebus:

#!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 97 03
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/dbus/pid
#

# Sanity checks.
#[ -x /usr/bin/dbus-daemon ] || exit 0

# Source function library.
#. /etc/rc.d/init.d/functions

# so we can rearrange this easily
#processname=dbus-daemon
#servicename=messagebus

#RETVAL=0

start() {
    echo "Starting system message bus"
    if [ -x /usr/bin/dbus-uuidgen ] ; then
        /usr/bin/dbus-uuidgen --ensure
    fi

    if [ -x /usr/bin/dbus-daemon ];then
        /usr/bin/dbus-daemon --system
    fi
    #daemon --check $servicename $processname --system
    #RETVAL=$?
    #echo
    #[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo "Stopping system message bus"

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent
    ## program name "$servicename" that should be safe-ish
    killall dbus-daemon
    #RETVAL=$?
    #echo
    #if [ $RETVAL -eq 0 ]; then
    #    rm -f /var/lock/subsys/$servicename
    #    rm -f /var/run/dbus/pid
    #fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $processname
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|reload}"
        ;;
esac
exit $RETVAL

Offline

#16 2007-02-04 10:14:11

acobar
Member
Registered: 2007-02-02
Posts: 15

Re: [SOLVED]thunar can't mount/umount removible devices automaticaly

Also, don't forget to initialize d-bus before hal.

After that, if still in trouble, post the previous outlined procedures again.

Offline

#17 2007-02-04 15:28:13

yongyi
Member
Registered: 2007-01-28
Posts: 16

Re: [SOLVED]thunar can't mount/umount removible devices automaticaly

That's intresting!
Today, I upgrade dbus dbus-glib hal that download from www.linuxpackages.net/ ,and can found rc.messagebus  in /etc/rc.d/.

AND,I list rc.messagebus and rc.hal in rc.M,then reboot.That's work well for usb-disk,but cdrom didn't!!

AND,I try ljones's way:

The only way I can "fix" it (though sometimes I'll loose the desktop icons) is to do this in /etc/rc.d each time I need to use the cdrom

./rc.hal restart
./rc.dbus restart

when I do './rc.hal restart',cdrom's icons appear on desktop,but didn't  at the thunar sidebar,and can mount or umount.
And then ,I run './rc.dbus restart',there is cdrom's icons appear at the  thunar sidebar ,but the xfce-desktop  disappear...on the Desktop,is nothing!

root:~# dbus-monitor

signal sender=org.freedesktop.DBus -> dest=:1.40 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameAcquired
   string ":1.40"
method call sender=:1.40 -> dest=org.freedesktop.DBus path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=AddMatch
   string "type='method_call'"
method call sender=:1.40 -> dest=org.freedesktop.DBus path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=AddMatch
   string "type='method_return'"
method call sender=:1.40 -> dest=org.freedesktop.DBus path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=AddMatch
   string "type='error'"

root:~# lshal | grep cdrom

process 2930: Applications must not close shared connections - see dbus_connection_close() docs. This is a bug in the application.
  D-Bus not built with -rdynamic so unable to print a backtrace
  info.linux.driver = 'ide-cdrom'  (string)
  storage.cdrom.write_speed = 4234  (0x108a)  (int)
  storage.cdrom.read_speed = 4234  (0x108a)  (int)
  storage.cdrom.support_media_changed = true  (bool)
  storage.cdrom.hddvdrw = false  (bool)
  storage.cdrom.hddvdr = false  (bool)
  storage.cdrom.hddvd = false  (bool)
  storage.cdrom.bdre = false  (bool)
  storage.cdrom.bdr = false  (bool)
  storage.cdrom.bd = false  (bool)
  storage.cdrom.dvdplusrdl = false  (bool)
  storage.cdrom.dvdplusrwdl = false  (bool)
  storage.cdrom.dvdplusrw = false  (bool)
  storage.cdrom.dvdplusr = false  (bool)
  storage.cdrom.dvdram = false  (bool)
  storage.cdrom.dvdrw = false  (bool)
  storage.cdrom.dvdr = false  (bool)
  storage.cdrom.dvd = true  (bool)
  storage.cdrom.cdrw = true  (bool)
  storage.cdrom.cdr = true  (bool)
  info.capabilities = {'storage', 'block', 'storage.cdrom'} (string list)
  storage.drive_type = 'cdrom'  (string)

Offline

#18 2007-02-04 15:32:08

ljones
Member
Registered: 2007-01-27
Posts: 14

Re: [SOLVED]thunar can't mount/umount removible devices automaticaly

acobar wrote:

Hum, lets try the hard way. Can you post the result of `ps -A` before and after that thing happens? I suspect that or dbus or hal or both is/are being killed or going crazy.

Do the following:
  - open one terminal;
  - type `dbus-monitor`;
  - you shold read the requests and messages exchanged.

For HAL you can try:
  - lshal.

Also, there are many steps you should accomplish. Take a look on "hal-spec.html". Have fun!

I'm still running the good old kernel 2.4.x (it means no HAL for me) but, if you can't fix the things or if someone else reports the same problem, I will install a new one just to check out.

Regards

Ok here's the output of the following;


ps -A (before)

  PID TTY          TIME CMD
    1 ?        00:00:00 init
    2 ?        00:00:00 ksoftirqd/0
    3 ?        00:00:00 events/0
    4 ?        00:00:00 khelper
    5 ?        00:00:00 kthread
    7 ?        00:00:00 kblockd/0
    8 ?        00:00:00 kacpid
  132 ?        00:00:00 khubd
  226 ?        00:00:00 pdflush
  227 ?        00:00:00 pdflush
  229 ?        00:00:00 aio/0
  228 ?        00:00:00 kswapd0
  230 ?        00:00:00 jfsIO
  231 ?        00:00:00 jfsCommit
  232 ?        00:00:00 jfsSync
  233 ?        00:00:00 xfslogd/0
  234 ?        00:00:00 xfsdatad/0
  830 ?        00:00:00 kseriod
  930 ?        00:00:00 ata/0
  943 ?        00:00:00 scsi_eh_0
  944 ?        00:00:00 scsi_eh_1
  949 ?        00:00:00 scsi_eh_2
  950 ?        00:00:00 scsi_eh_3
  968 ?        00:00:00 exec-osm/0
  973 ?        00:00:00 block-osm/0
  995 ?        00:00:00 kcryptd/0
 1000 ?        00:00:00 reiserfs/0
 1165 ?        00:00:00 udevd
 1822 ?        00:00:00 shpchpd_event
 1893 ?        00:00:00 khpsbpkt
 1953 ?        00:00:00 kgameportd
 2037 ?        00:00:00 scsi_eh_5
 2038 ?        00:00:00 usb-storage
 2039 ?        00:00:00 knodemgrd_0
 2102 ?        00:00:00 saa7134[0]
 2256 ?        00:00:00 kpsmoused
 2345 ?        00:00:00 syslogd
 2348 ?        00:00:00 klogd
 2853 ?        00:00:00 inetd
 2861 ?        00:00:00 sshd
 2911 ?        00:00:00 crond
 2913 ?        00:00:00 atd
 2916 ?        00:00:00 sendmail
 2919 ?        00:00:00 sendmail
 2922 ?        00:00:00 acpid
 2949 ?        00:00:00 gpm
 2956 ?        00:00:00 dbus-daemon
 2966 ?        00:00:00 hald
 2967 ?        00:00:00 hald-runner
 2973 ?        00:00:00 hald-addon-acpi
 2976 ?        00:00:00 hald-addon-keyb
 2983 ?        00:00:00 hald-addon-stor
 2995 ?        00:00:00 hald-addon-stor
 2999 tty1     00:00:00 bash
 3000 tty2     00:00:00 agetty
 3001 tty3     00:00:00 agetty
 3002 tty4     00:00:00 agetty
 3003 tty5     00:00:00 agetty
 3004 tty6     00:00:00 agetty
 3107 tty1     00:00:00 xinit
 3108 tty7     00:00:00 X
 3112 tty1     00:00:00 sh
 3119 ?        00:00:00 ssh-agent
 3124 tty1     00:00:00 dbus-launch
 3125 ?        00:00:00 dbus-daemon
 3127 tty1     00:00:00 xfce4-session
 3130 ?        00:00:00 xfce-mcs-manage
 3131 tty1     00:00:00 xfwm4
 3132 tty1     00:00:00 Thunar
 3133 tty1     00:00:00 xfdesktop
 3135 tty1     00:00:00 xfce4-panel
 3137 tty1     00:00:00 Terminal
 3138 tty1     00:00:00 xfce4-menu-plug
 3139 tty1     00:00:00 gnome-pty-helpe
 3140 pts/0    00:00:00 bash
 3142 pts/1    00:00:00 bash
 3143 pts/1    00:00:00 dbus-monitor
 3144 pts/0    00:00:00 ps

ps -A (after)

  PID TTY          TIME CMD
    1 ?        00:00:00 init
    2 ?        00:00:00 ksoftirqd/0
    3 ?        00:00:00 events/0
    4 ?        00:00:00 khelper
    5 ?        00:00:00 kthread
    7 ?        00:00:00 kblockd/0
    8 ?        00:00:00 kacpid
  132 ?        00:00:00 khubd
  226 ?        00:00:00 pdflush
  227 ?        00:00:00 pdflush
  229 ?        00:00:00 aio/0
  228 ?        00:00:00 kswapd0
  230 ?        00:00:00 jfsIO
  231 ?        00:00:00 jfsCommit
  232 ?        00:00:00 jfsSync
  233 ?        00:00:00 xfslogd/0
  234 ?        00:00:00 xfsdatad/0
  830 ?        00:00:00 kseriod
  930 ?        00:00:00 ata/0
  943 ?        00:00:00 scsi_eh_0
  944 ?        00:00:00 scsi_eh_1
  949 ?        00:00:00 scsi_eh_2
  950 ?        00:00:00 scsi_eh_3
  968 ?        00:00:00 exec-osm/0
  973 ?        00:00:00 block-osm/0
  995 ?        00:00:00 kcryptd/0
 1000 ?        00:00:00 reiserfs/0
 1165 ?        00:00:00 udevd
 1822 ?        00:00:00 shpchpd_event
 1893 ?        00:00:00 khpsbpkt
 1953 ?        00:00:00 kgameportd
 2037 ?        00:00:00 scsi_eh_5
 2038 ?        00:00:00 usb-storage
 2039 ?        00:00:00 knodemgrd_0
 2102 ?        00:00:00 saa7134[0]
 2256 ?        00:00:00 kpsmoused
 2345 ?        00:00:00 syslogd
 2348 ?        00:00:00 klogd
 2853 ?        00:00:00 inetd
 2861 ?        00:00:00 sshd
 2911 ?        00:00:00 crond
 2913 ?        00:00:00 atd
 2916 ?        00:00:00 sendmail
 2919 ?        00:00:00 sendmail
 2922 ?        00:00:00 acpid
 2949 ?        00:00:00 gpm
 2999 tty1     00:00:00 bash
 3000 tty2     00:00:00 agetty
 3001 tty3     00:00:00 agetty
 3002 tty4     00:00:00 agetty
 3003 tty5     00:00:00 agetty
 3004 tty6     00:00:00 agetty
 3107 tty1     00:00:00 xinit
 3108 tty7     00:00:01 X
 3112 tty1     00:00:00 sh
 3119 ?        00:00:00 ssh-agent
 3124 tty1     00:00:00 dbus-launch
 3125 ?        00:00:00 dbus-daemon
 3127 tty1     00:00:00 xfce4-session
 3130 ?        00:00:00 xfce-mcs-manage
 3131 tty1     00:00:00 xfwm4
 3135 tty1     00:00:00 xfce4-panel
 3137 tty1     00:00:00 Terminal
 3138 tty1     00:00:00 xfce4-menu-plug
 3139 tty1     00:00:00 gnome-pty-helpe
 3140 pts/0    00:00:00 bash
 3142 pts/1    00:00:00 bash
 3143 pts/1    00:00:00 dbus-monitor
 3146 pts/2    00:00:00 bash
 3147 pts/2    00:00:00 bash
 3156 ?        00:00:00 dbus-daemon
 3166 ?        00:00:00 hald
 3167 ?        00:00:00 hald-runner
 3173 ?        00:00:00 hald-addon-acpi
 3176 ?        00:00:00 hald-addon-keyb
 3183 ?        00:00:00 hald-addon-stor
 3195 ?        00:00:00 hald-addon-stor
 3197 ?        00:00:00 hald-addon-stor
 3200 pts/0    00:00:00 ps

dbus-monitor;

bash-3.1# dbus-monitor
signal sender=org.freedesktop.DBus -> dest=:1.4 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameAcquired
   string ":1.4"
method call sender=:1.4 -> dest=org.freedesktop.DBus path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=AddMatch
   string "type='method_call'"
method call sender=:1.4 -> dest=org.freedesktop.DBus path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=AddMatch
   string "type='method_return'"
method call sender=:1.4 -> dest=org.freedesktop.DBus path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=AddMatch
   string "type='error'"
signal sender=org.freedesktop.DBus -> dest=(null destination) path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameOwnerChanged
   string ":1.5"
   string ""
   string ":1.5"
method call sender=:1.5 -> dest=org.freedesktop.DBus path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=Hello
method call sender=:1.5 -> dest=org.xfce.Terminal3 path=/org/xfce/Terminal; interface=org.xfce.Terminal3; member=Launch
   int64 0
   array [
      string "Terminal"
      string "--default-working-directory"
      string "/etc/rc.d"
      string "--startup-id=xfce4-panel/Terminal/3135-1-darkstar_TIME47559"
      string "--default-display=:0.0"
   ]
signal sender=org.freedesktop.DBus -> dest=(null destination) path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameOwnerChanged
   string ":1.5"
   string ":1.5"
   string ""
signal sender=org.freedesktop.DBus -> dest=(null destination) path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameOwnerChanged
   string "org.xfce.FileManager"
   string ":1.0"
   string ""
signal sender=org.freedesktop.DBus -> dest=(null destination) path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameOwnerChanged
   string "org.xfce.Thunar"
   string ":1.0"
   string ""
signal sender=org.freedesktop.DBus -> dest=(null destination) path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameOwnerChanged
   string ":1.0"
   string ":1.0"
   string ""
signal sender=org.freedesktop.DBus -> dest=(null destination) path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameOwnerChanged
   string ":1.1"
   string ":1.1"
   string ""

lshal is too long to post here in full, here's the output of lshal | grep cdrom;

  info.linux.driver = 'ide-cdrom'  (string)
  storage.cdrom.write_speeds = {'8467', '7056', '5645', '4234', '2822', '1411', '706'} (string list)
  storage.cdrom.write_speed = 8467  (0x2113)  (int)
  storage.cdrom.read_speed = 8467  (0x2113)  (int)
  storage.cdrom.support_media_changed = true  (bool)
  storage.cdrom.hddvdrw = false  (bool)
  storage.cdrom.hddvdr = false  (bool)
  storage.cdrom.hddvd = false  (bool)
  storage.cdrom.bdre = false  (bool)
  storage.cdrom.bdr = false  (bool)
  storage.cdrom.bd = false  (bool)
  storage.cdrom.dvdplusrdl = true  (bool)
  storage.cdrom.dvdplusrwdl = false  (bool)
  storage.cdrom.dvdplusrw = true  (bool)
  storage.cdrom.dvdplusr = true  (bool)
  storage.cdrom.dvdram = true  (bool)
  storage.cdrom.dvdrw = true  (bool)
  storage.cdrom.dvdr = true  (bool)
  storage.cdrom.dvd = true  (bool)
  storage.cdrom.cdrw = true  (bool)
  storage.cdrom.cdr = true  (bool)
  info.capabilities = {'storage', 'block', 'storage.cdrom'} (string list)
  storage.drive_type = 'cdrom'  (string)
  info.linux.driver = 'ide-cdrom'  (string)
  storage.cdrom.write_speeds = {'7056', '5645', '4234', '3528', '2822', '1411', '706'} (string list)
  storage.cdrom.write_speed = 7056  (0x1b90)  (int)
  storage.cdrom.read_speed = 7056  (0x1b90)  (int)
  storage.cdrom.support_media_changed = true  (bool)
  storage.cdrom.hddvdrw = false  (bool)
  storage.cdrom.hddvdr = false  (bool)
  storage.cdrom.hddvd = false  (bool)
  storage.cdrom.bdre = false  (bool)
  storage.cdrom.bdr = false  (bool)
  storage.cdrom.bd = false  (bool)
  storage.cdrom.dvdplusrdl = false  (bool)
  storage.cdrom.dvdplusrwdl = false  (bool)
  storage.cdrom.dvdplusrw = false  (bool)
  storage.cdrom.dvdplusr = false  (bool)
  storage.cdrom.dvdram = false  (bool)
  storage.cdrom.dvdrw = false  (bool)
  storage.cdrom.dvdr = false  (bool)
  storage.cdrom.dvd = false  (bool)
  storage.cdrom.cdrw = true  (bool)
  storage.cdrom.cdr = true  (bool)
  info.capabilities = {'storage', 'block', 'storage.cdrom'} (string list)
  storage.drive_type = 'cdrom'  (string)

ljones

Offline

#19 2007-02-04 15:34:49

ljones
Member
Registered: 2007-01-27
Posts: 14

Re: [SOLVED]thunar can't mount/umount removible devices automaticaly

yongyi wrote:

...
when I do './rc.hal restart',cdrom's icons appear on desktop,but didn't  at the thunar sidebar,and can mount or umount.
And then ,I run './rc.dbus restart',there is cdrom's icons appear at the  thunar sidebar ,but the xfce-desktop  disappear...on the Desktop,is nothing!

That's precisely what happens to me -- though I can't use any packages from that site as there are no "official" HAL or DBUS or Policykit 64-packages avaliable x.x sad

ljones

Offline

#20 2007-02-04 15:45:28

ljones
Member
Registered: 2007-01-27
Posts: 14

Re: [SOLVED]thunar can't mount/umount removible devices automaticaly

BTW, This might help with some others out there. This dosen't fix my problem however. I forgot to mention I do have one system that does automount properly with XFCE4.4 *but* it is a 32-bit system, all the problems are on the 64-bit slamd64 system.

Note that this only works for 32-bit systems it seems -- I tried to do this for my 64-bit (slamd) system and it will not work (I get all the dbus/hal/not automounting the cdrom problems above);

For a 32-bit system (I used normal 32-bit slackware 11 running on an IBM T22 laptop to do this);

* install vte-0.14.1-i486-1mht.tgz
* dbus-0.93-i486-1mht.tgz
* dbus-glib-0.71-i486-1mht.tgz
* openssl-solibs-0.9.8d-i486-1.tgz
* hal-0.5.8.1-i486-1kjz.tgz

(Taken from http://www.linuxpackages.net/ ) .


You'll also need something called "URI-1.35", to install it --
perl Makefile.PL
make
make test
make install
(that can be found here, http://search.cpan.org/~gaas/URI-1.35/ )

Then install XFCE4.4 using the graphical installer;

./Thunar-0.8.0-installer.run
./Thunar-Bundle-0.8.0-installer.run
./xfce4-4.4.0-installer.run
./xfce-goodies-4.4.0-installer.run

You might possibly have to do ln /usr/lib/libdbus-1.so.3 /usr/lib/libdbus-1.so.2 as well

Then, as root outside of X put this in /etc/rc.d/rc.local

rm /var/run/dbus/pid
./etc/rc.d/rc.messagebus start
./etc/rc.d/rc.hal start

Might also have to edit /etc/fstab and change "owner" to user.

Then finally start xfce4.4 by typing "startxfce4" as non-root.

On that laptop I am using a linux 2.6.18 kernel btw. Unless I've forgotten to mention anything that seemed to work. Trying to adapt this either with source or by using some non-official (64-bit) packages I found here ( http://saxa.droplinegnome.org/x86_64/2.16/2.16.2/  -- thse are 64 bit btw!) does *not* work at all I get all the problems I put in my previous posts unfortunatly :-( .

While I'm here I note that the 64-bit kernel version is 2.6.16.29 . I wonder if this is causing the problems? The 64-bit one seems to be slightly older than the 32-bit laptop's 2.6.18 . Would that make a difference (I am not sure!)? From memory when installing slamd64, I used the kernel called something like "huge26.s" btw . The laptop's slackware 11 kernel was updated from my Slackware 11 (32-bit) DVD, I used the one in "/testing".

EDIT: I tried compiling a 2.6.18 kernel (x86_64) (as again there are no packages, or at least nothing that supports reiserfs) unless I missed something in the compile/config it dosen't seem to have made any difference.


ljones

Offline

#21 2007-02-04 18:38:17

ljones
Member
Registered: 2007-01-27
Posts: 14

Re: [SOLVED]thunar can't mount/umount removible devices automaticaly

AH smile now I might have an answer for this. I used some of the packages at this site ( http://saxa.droplinegnome.org/x86_64/2.16/2.16.2/ ) . However, this didn't seem to work. But I thought about trying the exact same version of dbus (dbus-0.93) as I'd done on the IBM laptop. Previously, I had been using other versions, such as dbus-0.92, 1.01, 0.95 etc.

Unless it's a fluke, it appears not using the dbus package from http://saxa.droplinegnome.org/x86_64/2.16/2.16.2/ (but I am guessing the dbus bindings would still be needed, I do not know) seems to work - if you don't have it installed, don't install it, if you do use pkgtool and get rid of it !

The following seemed to work:
* Get the source for dbus-0.93

Do the following;

/configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libdir=/usr/lib64
make
make install

groupadd -g 28 messagebus
useradd -c "D-BUS Message Daemon User" -d /dev/null -u 28 -g messagebus -s /bin/false messagebus

Weather or not it worked because the "old" (actually newer, v1.01) dbus had been there I am not sure.

ljones

Offline

#22 2007-02-04 19:59:44

wlkngowl
Member
From: Between Heaven and Earth
Registered: 2005-11-11
Posts: 77

Re: [SOLVED]thunar can't mount/umount removible devices automaticaly

Nick wrote:

Thunar volman should take care of this: Goto thunar > edit > preferences > advanced > select the thunar volman checkbox. Then run 'Thunar --daemon' when you start Xfce.

Interesting. I have the same problem, but I do not have that option in my Thunar prefs. I only have something about when to ask whether to update perms for subfolders.

Offline

#23 2007-02-04 21:57:14

Nick
Dev
From: ~
Registered: 2005-02-17
Posts: 1,144
Website

Re: [SOLVED]thunar can't mount/umount removible devices automaticaly

Then you need to install the thunar-volman package. You can read more about it here.

Offline

#24 2007-02-04 22:08:00

ljones
Member
Registered: 2007-01-27
Posts: 14

Re: [SOLVED]thunar can't mount/umount removible devices automaticaly

Well I'm glad to say I finally have it working on X86-64 (64-bit)  yikes smile ;D !

But there are a couple of mysteries. Though, more on this later. But this is what I did;

1. Install slamd64 as normal . Also installed python - this isn't installed by default by the installer btw.

2. Add a non-root user  (I added a test user, aaaaa) .

3. As root-  Install these packages from here ( http://saxa.droplinegnome.org/x86_64/2.16/2.16.2/ );

* hal-0.5.8.1-x86_64-2dl
* vte-0.14.1-x86_64_1dl
* dbus-bindings-0.92-x86_64.1dl
* cairo-1.2.6-x86_64_1dl

(now stay as root for now!)

Also openssl and its libs are needed, however it appears they are installed by default by the slamd (slackware 11 64 bit) installer smile .

4. Get URI 1.35 from here ( http://search.cpan.org/~gaas/URI-1.35/ ) . Compile and install by;

* perl Makefile.PL
* make
* make test
* make install

5. Get dbus version 0.93 - note *no* other version seems to work. It can be found here ( http://dbus.freedesktop.org/releases/ ) . 

6. Add the group & user for dbus;

*  groupadd -g 28 messagebus

* useradd -c "D-BUS Message Daemon User" -d /dev/null -u 28 -g messagebus -s /bin/false messagebus

And compile it with
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libdir=/usr/lib64
make
make install

7. Then do this;
ln -s /usr/lib/libjpeg62.0.0 /usr/local/lib/libjpeg.so
ln -s /usr/lib64/libSM.so /usr/local/lib/libSM.so

8. Download glitz-0.5.6 from here ( http://cairographics.org/snapshots/ ) and compile it. Compile with ./configure --prefix=/usr --libdir=/usr/lib64 then make & make install.

9. Install Thunar, Thunar goodies & XFCE4.4  &  XFCE4.4 goodies with the graphical installer.

10. Modify /etc/fstab - change in the line with /dev/cdrom on it from "owner" to "user".

11. chmod 0777 /media/*

12. chmod 0777 /mnt/cdrom (where my cdrom is normally mounted -- yours may differ).

13. Put rc.messagebus into /etc/rc.d

14. Edit rc.local to read;
rm /var/run/dbus/pid
./etc/rc.d/rc.messagebus start
./etc/rc.d/rc.hal start

15. Modify the files in /etc/dbus-1

Restart, start xfce by typing startxfce4 as *non* root and it should hopefully work!

smile

BTW, I had to pinch the rc.messagebus off my laptop to make this work. It should go in /etc/rc.d/

Now for the mysteries.....

A) Why won't any other version of dbus other than 0.93 work? Nothing else worked they just caused problems.

B) The modifications/creation of the files in /etc/dbus-1 I'm not sure about. I don't know what to change sad so I cheated, I pinched the ones from the laptop and used those smile .

Other notes:
* No kernel upgrade to 2.6.18 was needed after all in slamd64.

Now it seems to be working, all I need to do is to go through all this again so I can verify I've left nothing out!

ljones

Offline

#25 2007-02-05 05:09:06

yongyi
Member
Registered: 2007-01-28
Posts: 16

Re: [SOLVED]thunar can't mount/umount removible devices automaticaly

;D I finally succeed,when I installed dbus-0.93 that download from here.

AND now I had installed files for auto mount removible devices:
udev-097-i486-10.tgz
dbus-0.93-i486-1gm.tgz
dbus-glib-0.72-i486-1mht.tgz
hal-0.5.8.1-i486-1kjz.tgz

Thanks all above!

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.014 seconds, 7 queries executed - Memory usage: 746.05 KiB (Peak: 810.89 KiB) ]