You are not logged in.

#1 2015-04-30 02:50:18

Hacksign
Member
Registered: 2012-07-30
Posts: 137

[SOLVED]Thunar can not detect USB disk.

When I pluged in an usb disk (ntfs filesystem),thunar can not show this usb on its sidebar.
but another laptop can show it automaticly.

here is what I installed.
any one know why thunar can not detect usb disks ?

hacksign@XSign [10:35:42] : ~                                                                                                                                                                                                            
>> pacman -Q|grep gvfs
gvfs 1.24.1-1
gvfs-smb 1.24.1-1
hacksign@XSign [10:35:47] : ~                                                                                                                                                                                                            
>> pacman -Q|grep thunar
thunar 1.6.7-2
thunar-archive-plugin 0.3.1-5
thunar-media-tags-plugin 0.2.1-2
thunar-volman 0.8.1-1
hacksign@XSign [10:35:52] : ~                                                                                                                                                                                                            
>> pacman -Q|grep udisk
udisks2 2.1.5-1
hacksign@XSign [10:35:52] : ~                                                                                                                                                                                                            
>> pacman -Q|grep ntfs
ntfs-3g 2015.3.14-1

Last edited by Hacksign (2015-05-05 10:08:53)

Offline

#2 2015-04-30 06:48:56

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: [SOLVED]Thunar can not detect USB disk.

When you plug the stick, what is the output of:

dmesg|tail

Jin, Jîyan, Azadî

Offline

#3 2015-04-30 08:05:21

Alad
Wiki Admin/IRC Op
From: Bagelstan
Registered: 2014-05-04
Posts: 2,420
Website

Re: [SOLVED]Thunar can not detect USB disk.

Also post "uname -a && pacman -Q linux"


Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby

Offline

#4 2015-04-30 09:16:41

Hacksign
Member
Registered: 2012-07-30
Posts: 137

Re: [SOLVED]Thunar can not detect USB disk.

Head_on_a_Stick wrote:

When you plug the stick, what is the output of:

dmesg|tail
[root@localhost work]# dmesg | tail
[24018.578006] usb-storage 3-1.5:1.0: USB Mass Storage device detected
[24018.578068] scsi host7: usb-storage 3-1.5:1.0
[24019.579212] scsi 7:0:0:0: Direct-Access     Generic  USB  SD Reader   1.00 PQ: 0 ANSI: 0 CCS
[24019.580674] sd 7:0:0:0: [sdb] 15523840 512-byte logical blocks: (7.94 GB/7.40 GiB)
[24019.581174] sd 7:0:0:0: [sdb] Write Protect is off
[24019.581179] sd 7:0:0:0: [sdb] Mode Sense: 4b 00 00 08
[24019.581661] sd 7:0:0:0: [sdb] No Caching mode page found
[24019.581663] sd 7:0:0:0: [sdb] Assuming drive cache: write through
[24019.595330]  sdb: sdb1
[24019.597662] sd 7:0:0:0: [sdb] Attached SCSI removable disk

Offline

#5 2015-04-30 09:17:16

Hacksign
Member
Registered: 2012-07-30
Posts: 137

Re: [SOLVED]Thunar can not detect USB disk.

Alad wrote:

Also post "uname -a && pacman -Q linux"

[root@localhost work]# uname -a && pacman -Q linux
Linux localhost 4.0.1-1-ARCH #1 SMP PREEMPT Wed Apr 29 12:00:26 CEST 2015 x86_64 GNU/Linux
linux 4.0.1-1

Offline

#6 2015-04-30 20:11:39

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: [SOLVED]Thunar can not detect USB disk.


Jin, Jîyan, Azadî

Offline

#7 2015-05-03 02:50:22

Hacksign
Member
Registered: 2012-07-30
Posts: 137

Re: [SOLVED]Thunar can not detect USB disk.

Head_on_a_Stick wrote:

USB is 16Gb
and the following configuration means automount plugged in device without one extra click the device's ico.any way the device ico will show on thunar's sidebar.
my problem is the device ico doesn't show on sidebar.

 Click configure and check the following items:

    Mount removable drives when hot-plugged.
    Mount removable media when inserted.

Offline

#8 2015-05-03 14:22:52

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: [SOLVED]Thunar can not detect USB disk.

Have you checked the "Enable Volume Management" box in the "Advanced" tab under Edit → Preferences?


Jin, Jîyan, Azadî

Offline

#9 2015-05-03 15:40:53

Chazza
Wiki Maintainer
Registered: 2013-06-02
Posts: 506

Re: [SOLVED]Thunar can not detect USB disk.

You don't say how you're starting your session but I reckon you're doing it in a way that doesn't launch dbus which in turn means that gvfsd won't get started. Assuming I'm right, add the following to your .xinitrc:

if [ -d /etc/X11/xinit/xinitrc.d ] ; then
 for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
  [ -x "$f" ] && . "$f"
 done
 unset f
fi

Offline

#10 2015-05-05 05:46:46

Hacksign
Member
Registered: 2012-07-30
Posts: 137

Re: [SOLVED]Thunar can not detect USB disk.

Yes, it is enabled.

Head_on_a_Stick wrote:

Have you checked the "Enable Volume Management" box in the "Advanced" tab under Edit → Preferences?

Offline

#11 2015-05-05 05:49:39

Hacksign
Member
Registered: 2012-07-30
Posts: 137

Re: [SOLVED]Thunar can not detect USB disk.

Chazza wrote:

You don't say how you're starting your session but I reckon you're doing it in a way that doesn't launch dbus which in turn means that gvfsd won't get started. Assuming I'm right, add the following to your .xinitrc:

if [ -d /etc/X11/xinit/xinitrc.d ] ; then
 for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
  [ -x "$f" ] && . "$f"
 done
 unset f
fi

This pice of code is originally exists in /etc/X11/xinit/xinitrc

and I checked dbus service status, and the deamon, all looks good :

[root@localhost xinit]# systemctl status dbus
● dbus.service - D-Bus System Message Bus
   Loaded: loaded (/usr/lib/systemd/system/dbus.service; static; vendor preset: disabled)
   Active: active (running) since Tue 2015-05-05 13:41:18 CST; 6min ago
     Docs: man:dbus-daemon(1)
 Main PID: 313 (dbus-daemon)
   CGroup: /system.slice/dbus.service
           └─313 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation

May 05 13:41:18 localhost systemd[1]: Started D-Bus System Message Bus.
May 05 13:41:19 localhost dbus[313]: [system] Successfully activated service 'org.freedesktop.systemd1'
May 05 13:41:19 localhost systemd[1]: Starting D-Bus System Message Bus...
May 05 13:41:46 localhost dbus[313]: [system] Activating via systemd: service name='org.freedesktop.UDisks2' unit='udisks2.service'
May 05 13:41:47 localhost dbus[313]: [system] Activating via systemd: service name='org.freedesktop.PolicyKit1' unit='polkit.service'
May 05 13:41:48 localhost dbus[313]: [system] Successfully activated service 'org.freedesktop.PolicyKit1'
May 05 13:41:48 localhost dbus[313]: [system] Successfully activated service 'org.freedesktop.UDisks2'
May 05 13:44:54 localhost dbus[313]: [system] Activating via systemd: service name='org.freedesktop.RealtimeKit1' unit='rtkit-daemon.service'
May 05 13:44:54 localhost dbus[313]: [system] Successfully activated service 'org.freedesktop.RealtimeKit1'
[root@localhost xinit]# ps aux|grep dbus
dbus       313  0.0  0.0  34392  3436 ?        Ss   13:41   0:00 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation
work       415  0.0  0.0  18028  1892 ?        S    13:41   0:00 /usr/bin/dbus-launch --autolaunch 4b1adf39464c4af4af98d23830d1cf02 --binary-syntax --close-stderr
work       416  0.0  0.0  34340  2556 ?        Ss   13:41   0:00 /usr/bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session
work       487  0.0  0.0  34524  3128 ?        Ss   13:41   0:00 /usr/bin/dbus-daemon --fork --print-pid 5 --print-address 7 --config-file /usr/share/fcitx/dbus/daemon.conf
work       495  0.0  0.0  10836   116 ?        SN   13:41   0:00 /usr/bin/fcitx-dbus-watcher unix:abstract=/tmp/dbus-wCPejzUPHb,guid=1e2d57d359068a9a4301ccbb55485816 487
work       498  0.0  0.0  34120  3152 ?        S    13:41   0:00 /usr/bin/dbus-daemon --config-file=/etc/at-spi2/accessibility.conf --nofork --print-address 3
work       879  0.0  0.0  18028  1856 pts/0    S    13:43   0:00 dbus-launch --sh-syntax --exit-with-session
work       880  0.0  0.0  34120   304 ?        Ss   13:43   0:00 /usr/bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session
root      1116  0.0  0.0  12396  2512 pts/0    S+   13:48   0:00 grep dbus

Offline

#12 2015-05-05 07:54:39

Chazza
Wiki Maintainer
Registered: 2013-06-02
Posts: 506

Re: [SOLVED]Thunar can not detect USB disk.

and I checked dbus service status, and the deamon, all looks good :

Yes dbus-daemon is fine but you also need to be running a session instance of dbus and you do this by running dbus-launch on login.

This pice of code is originally exists in /etc/X11/xinit/xinitrc

Sure, but if you have a .xinitrc file in your home dir then you need that code in your .xinitrc file as that is the one that takes precedence. The point of that piece of code is to execute the scripts in /etc/X11/xinit/xinitrc.d

The one of significance to this case is 30-dbus.sh.

Offline

#13 2015-05-05 10:08:09

Hacksign
Member
Registered: 2012-07-30
Posts: 137

Re: [SOLVED]Thunar can not detect USB disk.

Chazza wrote:

and I checked dbus service status, and the deamon, all looks good :

Yes dbus-daemon is fine but you also need to be running a session instance of dbus and you do this by running dbus-launch on login.

This pice of code is originally exists in /etc/X11/xinit/xinitrc

Sure, but if you have a .xinitrc file in your home dir then you need that code in your .xinitrc file as that is the one that takes precedence. The point of that piece of code is to execute the scripts in /etc/X11/xinit/xinitrc.d

The one of significance to this case is 30-dbus.sh.

Thanks man, problem solved.

Offline

#14 2015-05-05 19:05:02

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: [SOLVED]Thunar can not detect USB disk.

For future reference, this command will show all active dbus sessions:

busctl

Jin, Jîyan, Azadî

Offline

Board footer

Powered by FluxBB