You are not logged in.

#1 2012-10-26 16:52:42

megagram
Member
Registered: 2007-12-26
Posts: 46

Automount Optical CD DVD Drive with no Desktop Environment, systemd

Hey, hope I crammed most of my issue into the subject there! Basically running a newly-converted systemd install. It boots up and using the autologin.service starts an X session via mingetty which loads xbmc-standalone which is in my .xinitrc file. Everything works fantastically.

Except I can not figure out how to auto mount CD and DVD discs when I insert them.

To be honest, I have no idea what the best way to do this is so I'd prefer if someone with the know how could point me in the right direction.

Thanks!

Offline

#2 2012-10-26 17:04:31

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

Re: Automount Optical CD DVD Drive with no Desktop Environment, systemd

afaik xbmc should do this for you automatically if you have udisks installed (it's an optdepends of xbmc).

This is definitively not systemd's job.

Offline

#3 2012-10-26 17:18:56

megagram
Member
Registered: 2007-12-26
Posts: 46

Re: Automount Optical CD DVD Drive with no Desktop Environment, systemd

OK thanks. I thought udisks was part of udev which was merged with systemd which is why I thought it was a systemd thing.

I'll try the XBMC/udisks thing for now..

What if I want the system to take care of the mounting for me? Like if I'm not in X, and just in a console session?

Offline

#4 2012-10-26 17:29:33

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

Re: Automount Optical CD DVD Drive with no Desktop Environment, systemd

Although I never tested this, one of the may automount wrappers should work:
https://wiki.archlinux.org/index.php/Udev#Udisks

Offline

#5 2012-10-26 17:57:46

megagram
Member
Registered: 2007-12-26
Posts: 46

Re: Automount Optical CD DVD Drive with no Desktop Environment, systemd

65kid, thanks for pointing that out! Udevil + Devmon work like a charm and have no reliance on xbmc to be running. Cheers!

Offline

Board footer

Powered by FluxBB