You are not logged in.

#1 2009-09-07 14:04:39

LarryBari
Member
From: Hobart, Australia
Registered: 2008-09-01
Posts: 13

Automount CD/DVD USB etc - confused [SOLVED]

I have a dedicated media pc on which I am running ARch 64 bit with LXDE autostarted.
My question is: how do I automount my USB drives when they are plugged in, DVDs or CDs when inserted.
I have UUIDs in fstab for partitions and have commented out any other dvds/cds in fstab.  It looks like this

# /etc/fstab: static file system information
#
# <file system>        <dir>         <type>    <options>          <dump> <pass>
none                   /dev/pts      devpts    defaults            0      0
none                   /dev/shm      tmpfs     defaults            0      0

#/dev/cdrom             /media/cd   auto    ro,user,noauto,unhide   0      0
#/dev/dvd               /media/dvd  auto    ro,user,noauto,unhide   0      0
#/dev/fd0               /media/fl   auto    user,noauto             0      0

UUID=cc0ae27d-8bf6-4a75-b62a-3c13ee547dff /boot ext2 defaults 0 1
UUID=8d56d2e4-eb96-405b-9300-a853d08841a3 swap swap defaults 0 0
UUID=5184de72-4636-4876-8d02-ba38dfc18e9c /home ext3 defaults 0 1
UUID=c209de25-3dcd-4443-841d-65ee3923c98b / ext3 defaults 0 1

I have hal and dbus starting as daemons and have gamin installed.  Now I did read somewhere that it may depend on which order hal and dbus are started as daemons but I don't think this makes sense as I thought hal depends on dbus.

What are you "Archies" doing with regards to automounting when there are various media being plugged and unplugged?
Do I need to install and configure AutoFS?
Within PCMan I can mount a USB stick if I click on it, but there is no sight of the CD-ROM which is inserted.  I can run an audio cd from Xine if I wait long enough but I think it must mount it when I click the CD button.  Basically I am wondering if I need to install some other automounter, or whether it is some config file that I should tweak. 

This confused little archie would love some advice here.  And I have read wikis and search endlessly on the interwebs.
LarryBari

Last edited by LarryBari (2009-10-07 12:37:25)

Offline

#2 2009-09-08 14:30:35

LarryBari
Member
From: Hobart, Australia
Registered: 2008-09-01
Posts: 13

Re: Automount CD/DVD USB etc - confused [SOLVED]

bump: basically am just interested in being able to either mount my dvd/cd rom device for viewing within my freevo program.  Or I will disable hal and mount dvd at boot via fstab.  Can I get some direction on this, i.e. how would i find out what to put in fstab.
Cheers,
Larry

Offline

#3 2009-09-08 16:30:34

berbae
Member
From: France
Registered: 2007-02-12
Posts: 1,302

Re: Automount CD/DVD USB etc - confused [SOLVED]

Can't you uncomment the two lines :

/dev/cdrom             /media/cd   auto    ro,user,noauto,unhide   0      0
/dev/dvd               /media/dvd  auto    ro,user,noauto,unhide   0      0

and mount manually in a console ?
(you need to reboot before the change to be applied)

You can leave hal in place, and mount dvd or cd manually with or without a fstab entry.
If there are fstab entries the command is simpler, you don't need to type in the mount options :

mount /media/cd

And with the 'user' option you don't need to be root to mount.

The mount point folders should exist.

And :

[berbae@arch64 ~]$ groups
tty lp wheel log video audio optical storage camera users

This shows the list of groups I'm part of.

Also search the forum for other threads about this question.

Good luck.

Last edited by berbae (2009-09-09 08:41:04)

Offline

#4 2009-09-08 21:53:53

azleifel
Member
Registered: 2007-10-28
Posts: 486

Re: Automount CD/DVD USB etc - confused [SOLVED]

If, like me, you have an LG drive then there is a bug in the 2.6.30 kernel that prevents automounting of udf filesystems (see http://bugzilla.kernel.org/show_bug.cgi?id=14088).  I'm just living with it because it is possible to play audio CDs and video DVDs without mounting them.  The only irritation is the unable to mount blah, blah error dialogue that pops up when a DVD is inserted...

Offline

#5 2009-10-07 12:36:52

LarryBari
Member
From: Hobart, Australia
Registered: 2008-09-01
Posts: 13

Re: Automount CD/DVD USB etc - confused [SOLVED]

No worries guys.
I actually just mount the drive within freevo using the ROM_DRIVES config in freevo config files.  Perhaps  Y'all don't need to know about that though do we.
The config runs as follows:

ROM_DRIVES = [('/mnt/dvd', '/dev/sr0', 'DISC')]

which just points dev/sr0 to mount point /mnt/dvd and uses an inbuilt freevo python file to mount the device according to  cd/dvd parameters I reckon.  Shows the display name of 'DISC' within the freevo HTPC software.
Okay, maybe you guys did need to know all that.  Sorry wink
Anyway, this problem is SOLVED!

Offline

Board footer

Powered by FluxBB