You are not logged in.

#1 2013-03-25 17:17:15

doragasu
Member
Registered: 2012-03-03
Posts: 160

XBMC: usb disk automount not working

I have recently made a minimal Arch install with XBMC on top of it. Almost everything is working as intended, excepting USB media auto-mount. Googling, the only information about it I have found is here, but it looks a lot outdated sad. It instructs you to install udisks and consolekit, and then launch consolekit, dbus and XBMC.

AFAIK, consolekit is no more useful, and dbus is always running when using systemd. I have installed udisks, but that didn't do the trick, xbmc doesn't mount external media sad.

Any suggestions?

Offline

#2 2013-03-25 17:27:53

jakobcreutzfeldt
Member
Registered: 2011-05-12
Posts: 1,042

Re: XBMC: usb disk automount not working

Offline

#3 2013-03-25 17:48:43

65kid
Member
From: Germany
Registered: 2011-01-26
Posts: 663

Re: XBMC: usb disk automount not working

Installing udisks should be enough. How do you login? I'm guessing you use the xbmc systemd service? This service kind of sucks because it doesn't set up your session properly which would explain why it doesn't work.

Offline

#4 2013-03-25 18:01:59

doragasu
Member
Registered: 2012-03-03
Posts: 160

Re: XBMC: usb disk automount not working

Thanks for help. I already had a look to automount:udisks, but it looks like only ldm method is automatic, and I'd like to avoid it if possible.

I tried starting xbmc both with the systemctl service and with a normal user account:

1.- login to the user (using text console, I have installed no graphical login manager).
2.- startx (starts TWM session).
3.- xbmc

None of these two methods have worked for me. USB drives are not automatically mounted sad

Offline

#5 2013-03-25 18:07:17

65kid
Member
From: Germany
Registered: 2011-01-26
Posts: 663

Re: XBMC: usb disk automount not working

wild guess: maybe xbmc only does this if you use xbmc-standalone because otherwise it assumes the the DE does the automounting?

try using the .xinitrc from /etc/skel and add only "exec xbmc-standalone" at the bottom. Then use startx.

Last edited by 65kid (2013-03-25 18:07:37)

Offline

#6 2013-03-26 17:02:39

doragasu
Member
Registered: 2012-03-03
Posts: 160

Re: XBMC: usb disk automount not working

65kid wrote:

wild guess: maybe xbmc only does this if you use xbmc-standalone because otherwise it assumes the the DE does the automounting?

try using the .xinitrc from /etc/skel and add only "exec xbmc-standalone" at the bottom. Then use startx.

Tried that but unfortunately it didn't help sad.

startx now startx XBMC instead of TWM, but media automount is still not working sad

Offline

#7 2013-05-15 16:21:53

doragasu
Member
Registered: 2012-03-03
Posts: 160

Re: XBMC: usb disk automount not working

I gave up and started trying external programs to get automount function. I have tried udiskie, udisksvm, ldm and udevil. Got udiskie and udisksvm to automount stuff, but with problems:

- If I run udisksvm with root permissions, it mounts stuff under /run/media/root/XXX. Only root can access mounted disks. If I don't run it with root permissions, it doesn't mount anything. Also it does not mount stuff already present when you power on the computer.
- udiskie spits some errors, but it looks like it works. It mounts stuff under /media/XXX. The problem, is it must be run with root permissions, and mounted disks can only be accessed by root (They have 700 permissions). I have manually tried to change permissions with chmod, but it doesn't work.

How can I make any of these programs do the work???

Offline

#8 2013-07-17 13:08:50

arokh
Member
Registered: 2013-05-30
Posts: 35

Re: XBMC: usb disk automount not working

pacman -S udevil && systemctl enable devmon@yourusername && systemctl start devmon@yourusername

That should do the trick smile

Offline

Board footer

Powered by FluxBB