You are not logged in.

#1 2015-07-14 16:32:18

hippieben
Member
Registered: 2013-10-27
Posts: 218

[probably solved] i3 USB woes

I don't expect usb devices to automatically mount under i3 because it is not a DE, however I am having trouble getting applications to see usb devices.  For example, plugging my iPod in and trying to load music with Clementine.  Works just fine under Cinnamon, but Clementine does not see the iPod even after I've manually mounted it.  Any ideas?

Last edited by hippieben (2015-07-14 18:53:29)

Offline

#2 2015-07-14 17:14:49

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

Re: [probably solved] i3 USB woes

Are you starting the session with startx by any chance? If so, you have to make sure your ~/.xinitrc is configured as per https://wiki.archlinux.org/index.php/Xinitrc

To explain why briefly, basically clemetine uses gvfs for device support. The gvfsd daemon is started by the session instance of d-bus which is supposed be started from ~/.xinitrc via the /etc/X11/xinitrc.d/30-dbus.sh script. No session instance of d-bus means no gvfsd which means no devices support.

Last edited by Chazza (2015-07-14 17:15:21)

Offline

#3 2015-07-14 18:33:40

hippieben
Member
Registered: 2013-10-27
Posts: 218

Re: [probably solved] i3 USB woes

Chazza wrote:

Are you starting the session with startx by any chance? If so, you have to make sure your ~/.xinitrc is configured as per https://wiki.archlinux.org/index.php/Xinitrc

To explain why briefly, basically clemetine uses gvfs for device support. The gvfsd daemon is started by the session instance of d-bus which is supposed be started from ~/.xinitrc via the /etc/X11/xinitrc.d/30-dbus.sh script. No session instance of d-bus means no gvfsd which means no devices support.

That's probably my issue.  I am starting my session with startx and my xinitrc only contains "exec i3"

Thanks for the reply!

I've added the necessary if block to my xinitrc and clementine is now seeing the iPod, however when I try to copy to it I'm getting all kinds of permission errors.  I am mounting to ~/mnt/usb (place I've created to mount usb devices to), however the mounted directory is owned by root:root and I cannot change that even via su.

If I mount via thunar all is well.... so non-issue?

Last edited by hippieben (2015-07-14 18:53:05)

Offline

#4 2015-07-15 08:06:23

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

Re: [probably solved] i3 USB woes

hippieben wrote:

I've added the necessary if block to my xinitrc and clementine is now seeing the iPod, however when I try to copy to it I'm getting all kinds of permission errors.  I am mounting to ~/mnt/usb (place I've created to mount usb devices to), however the mounted directory is owned by root:root and I cannot change that even via su.

I believe that only the superuser can mount devices using the mount command unless the device to be mounted is specified in /etc/fstab with the users flag.

What Thunar is ultimately using for mounting is udisks2 (a dependency of gvfs). You can use udisks2 from the command line as well:

udisksctl mount -b /dev/sdb1

Obviously change /dev/sdb1 to the appropriate device name.

If you don't want to be bothered by mounting at all, then do the following:
1) Have thunar --daemon running.
2) Ensure that under Thunar Preferences -> Advanced that "Enable volume management" is ticked.
3) Start thunar-volman-settings and ensure that "Mount removable drives when hotplugged" and "Mount removable media when inserted" are ticked.

After taking those steps, automounting should be working.

Last edited by Chazza (2015-07-15 08:20:33)

Offline

Board footer

Powered by FluxBB