You are not logged in.

#1 2008-05-20 18:26:06

Xherziu
Member
Registered: 2008-04-16
Posts: 58

Error with mounting CDs

When I try mount or unmount it gives me an error saying, "Cannot obtain lock on media/.hal-mtab"

Offline

#2 2008-05-20 19:04:36

bangkok_manouel
Member
From: indicates a starting point
Registered: 2005-02-07
Posts: 1,556

Offline

#3 2008-05-20 19:22:02

Xherziu
Member
Registered: 2008-04-16
Posts: 58

Re: Error with mounting CDs

I've already read that a couple of times

Offline

#4 2008-05-20 19:34:37

bangkok_manouel
Member
From: indicates a starting point
Registered: 2005-02-07
Posts: 1,556

Re: Error with mounting CDs

- how does your fstab look like ?
- what are the daemons running ?
- which groups is your user member of ?

Offline

#5 2008-05-20 19:59:32

Xherziu
Member
Registered: 2008-04-16
Posts: 58

Re: Error with mounting CDs

#
# /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/cdrom   auto    rw,user,auto,unhide   0      0
/dev/dvd /media/dvd   auto    rw,user,auto,unhide   0      0
/dev/fd0 /media/fd0   auto    user,noauto   0      0
/dev/sda1 /boot ext2 defaults 0 1
/dev/sda2 swap swap defaults 0 0
/dev/sda3 / ext3 defaults 0 1
/dev/sda4 /home ext3 defaults 0 1

Daemons running: (syslog-ng network netfs crond portmap fam hal) ... I installed autoFS before this and had it run as a daemon a couple of times before taking it off.  Would that create any conflicts with HAL?

My user is in groups:  audio optical storage users

EDIT - I've  also tried commenting out my devices on fstab but that didn't work either.  Its not that big of a deal, its just really annoying having to manually umount it before pressing the eject button.

Last edited by Xherziu (2008-05-20 20:04:11)

Offline

#6 2008-05-20 20:04:33

bangkok_manouel
Member
From: indicates a starting point
Registered: 2005-02-07
Posts: 1,556

Re: Error with mounting CDs

Xherziu wrote:
#
# /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/cdrom   auto    rw,user,auto,unhide   0      0
/dev/dvd /media/dvd   auto    rw,user,auto,unhide   0      0
/dev/fd0 /media/fd0   auto    user,noauto   0      0
/dev/sda1 /boot ext2 defaults 0 1
/dev/sda2 swap swap defaults 0 0
/dev/sda3 / ext3 defaults 0 1
/dev/sda4 /home ext3 defaults 0 1

Daemons running: (syslog-ng network netfs crond portmap fam hal) ... I installed autoFS before this and had it run as a daemon a couple of times before taking it off.  Would that create any conflicts with HAL?

My user is in groups:  audio optical storage users

http://bbs.archlinux.org/viewtopic.php? … 31#p369931 means you should try:

#
# /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/cdrom   auto    rw,user,auto,unhide   0      0
#/dev/dvd /media/dvd   auto    rw,user,auto,unhide   0      0
/dev/fd0 /media/fd0   auto    user,noauto   0      0
/dev/sda1 /boot ext2 defaults 0 1
/dev/sda2 swap swap defaults 0 0
/dev/sda3 / ext3 defaults 0 1
/dev/sda4 /home ext3 defaults 0 1

Offline

#7 2008-05-20 20:21:15

Xherziu
Member
Registered: 2008-04-16
Posts: 58

Re: Error with mounting CDs

Just commenting out the devices?  I've tried that, doesn't do anything

Last edited by Xherziu (2008-05-20 20:21:50)

Offline

#8 2008-05-20 20:24:27

bangkok_manouel
Member
From: indicates a starting point
Registered: 2005-02-07
Posts: 1,556

Re: Error with mounting CDs

which de/wm+file manager are you using out of curiosity ?

Offline

#9 2008-05-20 20:27:12

Xherziu
Member
Registered: 2008-04-16
Posts: 58

Re: Error with mounting CDs

Im not sure, when I boot udev is what starts

Offline

#10 2008-05-20 20:50:31

Davigetto
Member
From: In your mind
Registered: 2007-05-10
Posts: 266

Re: Error with mounting CDs

/dev/cdrom /media/cdrom   auto    rw,user,auto,unhide   0      0
/dev/dvd /media/dvd   auto    rw,user,auto,unhide   0      0
/dev/fd0 /media/fd0   auto    user,noauto   0      0

if commenting this 3 lines doesn't work...

Show us your /etc/groups file. Make sure you are in the optical group and you have permissions. Try to mount a cd as root using mount command. If this works, you have a permission problem.


Only deaths can see the end of battles.

Blog: http://djmartinez.co.cc -> The life of a Computer Engineer

Offline

#11 2008-05-20 22:22:41

Xherziu
Member
Registered: 2008-04-16
Posts: 58

Re: Error with mounting CDs

The problem is unmounting, when I insert a cd it mounts fine.  When I push the eject button it gives me the error.  I have to manually unmount before I can take the cd out.

root::0:root
bin::1:root,bin,daemon
daemon::2:root,bin,daemon
sys::3:root,bin
adm::4:root,daemon
tty::5:
disk::6:root
lp::7:daemon
mem::8:
kmem::9:
wheel::10:root
ftp::11:
mail::12:
uucp::14:
log::19:root
smmsp::25:
games::50:
network:x:90:
video:x:91:
audio::92:xherziu
optical::93:hal,xherziu
floppy:x:94:hal
storage:x:95:hal,xherziu
power:x:98:
nobody::99:
users::100:
locate:x:21:
dbus:x:81:
hal:x:82:
avahi:x:84:
gdm:x:101:
camera:x:97:

Offline

#12 2008-05-20 22:28:44

Davigetto
Member
From: In your mind
Registered: 2007-05-10
Posts: 266

Re: Error with mounting CDs

Are you using XFCE? In xfce there is a bug that prevent CD unit to be unmounted.

Also, make sure that the CD is not used by any process of your PC (including console). I.E: If in your yakuake (terminal emulator extremely recommended for me) you have done (suposing disk mounted on /media/disk):

~$ cd /media/disk
/media/disc~$ sudo eject

If you try to do this, for example, you cannot eject disk cause your terminal is ocuppiying the /media/disk folder, reserving system resources for the unit.

Try again big_smile


Only deaths can see the end of battles.

Blog: http://djmartinez.co.cc -> The life of a Computer Engineer

Offline

#13 2008-05-21 03:01:35

Xherziu
Member
Registered: 2008-04-16
Posts: 58

Re: Error with mounting CDs

Im using gnome.  Nothing seems to work, I will keep twinking with it.  Thanks for the help so far everyone.

Offline

#14 2008-05-21 08:30:18

Davigetto
Member
From: In your mind
Registered: 2007-05-10
Posts: 266

Re: Error with mounting CDs

add you to disk group. Maybe it will works.


Only deaths can see the end of battles.

Blog: http://djmartinez.co.cc -> The life of a Computer Engineer

Offline

#15 2008-05-21 17:54:35

Xherziu
Member
Registered: 2008-04-16
Posts: 58

Re: Error with mounting CDs

Now it lets me eject but still gives me the error, something is wrong with with .hal-mtab

Well, at least it lets me eject the cd now smile  I can live with this.  The only problem is clicking ok on the error..  Thanks for that suggestion Davi

Offline

Board footer

Powered by FluxBB