You are not logged in.
Hi,
I am working with a newly installed archlinux+awesome+thunar laptop (install media 2012-11-01). But when I plug in any usb disks/flash disks, there is no response from thunar. After searched the forum, I found some related threads:
https://bbs.archlinux.org/viewtopic.php?id=152265
https://bbs.archlinux.org/viewtopic.php?id=152356
However, these threads did not help me. Can anybody give me some instructions?
1 I have installed the latest thunar thunar-volman gvfs gvfs-afc udisk2 from the repo and added myself to the groups storage and optical.
2 my fstab
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
tmpfs /tmp tmpfs nodev,nosuid 0 0
# UUID=27445969-2fb8-4d07-9808-1c26cb2ae777
/dev/sda1 / ext4 defaults,relatime 0 1
# UUID=5211da87-b547-4f5e-9e3c-6eb6af5f8b22
/dev/sda3 /home ext4 defaults,relatime 0 2
# UUID=a562b86e-ec95-4f3b-877e-a68793521d0d
/dev/sda2 none swap defaults 0 0
# mobile device
# vbox usb
none /proc/bus/usb usbfs devmode=666 0 0
3. $dmesg | tail -20 results after I plugged a usb disk.
[ 1256.044952] usb 1-4: USB disconnect, device number 4
[ 1282.973256] usb 1-4: new high-speed USB device number 5 using ehci_hcd
[ 1283.100140] usb-storage 1-4:1.0: Quirks match for vid 05e3 pid 0702: 520
[ 1283.100185] scsi4 : usb-storage 1-4:1.0
[ 1284.104190] scsi 4:0:0:0: Direct-Access TOSHIBA MK6006GAH 0014 PQ: 0 ANSI: 0
[ 1284.108775] sd 4:0:0:0: [sdb] 117210240 512-byte logical blocks: (60.0 GB/55.8 GiB)
[ 1284.109930] sd 4:0:0:0: [sdb] Write Protect is off
[ 1284.109940] sd 4:0:0:0: [sdb] Mode Sense: 03 00 00 00
[ 1284.111021] sd 4:0:0:0: [sdb] No Caching mode page present
[ 1284.111030] sd 4:0:0:0: [sdb] Assuming drive cache: write through
[ 1284.114771] sd 4:0:0:0: [sdb] No Caching mode page present
[ 1284.114780] sd 4:0:0:0: [sdb] Assuming drive cache: write through
[ 1284.123511] sdb: sdb1
[ 1284.126955] sd 4:0:0:0: [sdb] No Caching mode page present
[ 1284.126961] sd 4:0:0:0: [sdb] Assuming drive cache: write through
[ 1284.126965] sd 4:0:0:0: [sdb] Attached SCSI disk
[ 1304.088964] usb 1-4: USB disconnect, device number 5
[ 1310.629919] usb 1-4: new high-speed USB device number 6 using ehci_hcd
[ 1310.756925] usb-storage 1-4:1.0: Quirks match for vid 05e3 pid 0702: 520
[ 1310.756971] scsi5 : usb-storage 1-4:1.04 $ loginctl show-session $XDG_SESSION_ID
Id=1
Timestamp=Fri, 2012-11-09 00:53:20 CET
TimestampMonotonic=15340303
DefaultControlGroup=name=systemd:/user/zpxing/1
VTNr=1
TTY=tty1
Remote=no
Service=login
Leader=237
Audit=1
Type=tty
Class=user
Active=yes
State=active
KillProcesses=no
IdleHint=yes
IdleSinceHint=1352420046438688
IdleSinceHintMonotonic=1261607446
Name=zpxingLast edited by zpxing (2012-11-09 00:36:16)
Offline
How do you start X?
He hoped and prayed that there wasn't an afterlife. Then he realized there was a contradiction involved here and merely hoped that there wasn't an afterlife.
Douglas Adams
Offline
I am using startx. And my .xinit
#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)
setxkbmap -option terminate:ctrl_alt_bksp
xmodmap ~/.Xmodmap &
exec awesomeLast edited by zpxing (2012-11-09 00:37:48)
Offline
As stated in the *multiple* other posts about mounting with thunar, using groups will not help if you are truly running systemd. Refer to the news about switching from consolekit to logind, you need to switch to systemd.
Time is a great teacher, but unfortunately it kills all its pupils ... - Louis Hector Berlioz
Offline
I am using pure systemd now. But what is the service name of automounting usb disks? There is no exlplain in systemd/gvfs/udisks wiki pages. The udisks page says it work automatically. But that is not true. I have to seek help from udiskie.
Offline
It is only not true if there is something improperly configured in your system. Logind provides the same functionality as consolekit did before (and so much more). So if you are logging in to an active session, it should work just as described.
Offline
I tracked the wiki page https://wiki.archlinux.org/index.php/Sy … emd-logind
Below is the results. I think I am not using any consolekit.
If automount is a service created by gvfs, would anyone please to tell me how to start it?
zpxing@123~ $ loginctl
SESSION UID USER SEAT
1 1000 zpxing seat0
1 sessions listed.
zpxing@123 ~ $ loginctl show-session $XDG_SESSION_ID
Id=1
Timestamp=Fri, 2012-11-09 04:31:25 CET
TimestampMonotonic=20922160
DefaultControlGroup=name=systemd:/user/zpxing/1
VTNr=1
TTY=tty1
Remote=no
Service=login
Leader=248
Audit=1
Type=tty
Class=user
Active=yes
State=active
KillProcesses=no
IdleHint=yes
IdleSinceHint=1352431953372275
IdleSinceHintMonotonic=88559671
Name=zpxing
zpxing@123 ~ $ sudo systemctl start gvfs-
gvfs-cat gvfs-ls gvfs-monitor-file gvfs-rename gvfs-trash
gvfs-copy gvfs-mime gvfs-mount gvfs-rm gvfs-tree
gvfs-info gvfs-mkdir gvfs-move gvfs-save
gvfs-less gvfs-monitor-dir gvfs-open gvfs-set-attribute
zpxing@123 ~ $ sudo systemctl start gvfs-mount
Failed to issue method call: Unit gvfs-mount.service failed to load: No such file or directory. See system logs and 'systemctl status gvfs-mount.service' for details.Last edited by zpxing (2012-11-09 06:15:54)
Offline
There is nothing to start. If your desktop is setup properly you don't need to do anything. Check out this thread--especially comments from 65kid at the end: https://bbs.archlinux.org/viewtopic.php?id=152324
Time is a great teacher, but unfortunately it kills all its pupils ... - Louis Hector Berlioz
Offline
I tracked the wiki page https://wiki.archlinux.org/index.php/Sy … emd-logind
Below is the results. I think I am not using any consolekit.
If automount is a service created by gvfs, would anyone please to tell me how to start it?
gvfs start is somehow related to dbus (didn't figured it out yet so don't ask how it works). In order to make automount working I had to start my openbox session this way:
~/.xinitrc:
exec dbus-launch --exit-with-session openbox-session
(I've removed gnome recently and prior to this most likely gdm was responsible for it, now I use systemd autologin without gdm).
W.
Offline
There is nothing to start. If your desktop is setup properly you don't need to do anything. Check out this thread--especially comments from 65kid at the end: https://bbs.archlinux.org/viewtopic.php?id=152324
Yes, it is helpful. I removed myself from the storage group and remove udiskie from my laptop. Then add
/dev/sdb1 /media/usb auto user,noauto 0 0to /etc/fstab. and mkdir /media/usb. After startx, thunar show a usb directory in the left panel automatically even I do not insert a flash disk. But it really works. After the flash disk is plugged in, a popup notice of awesomeWM say the device is mounted automatically. And I can right click on the usb icon to eject the flash disk.
Is there any other solution than re-writing /etc/fstab? Now the usb icon appears on the left panel always, even no usb device is inserted. I am afraid that this could not be a perfect method.
Last edited by zpxing (2012-11-11 06:05:18)
Offline