You are not logged in.

#1 2010-01-03 14:23:08

leniviy
Member
Registered: 2009-05-23
Posts: 177

"/media/cd" gets deleted when cd ejected although it's in /etc/fstab

For better wine compatibility I uncommented this line in /etc/fstab:

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

Then manually created the directory /media/cd
Now cdroms automount there instead of "/media/${label}"

But when I eject the cdrom, /media/cd is removed. If I insert the cdrom again, it's not mounted complaining that "/media/cd" doesn't exist.

Error mounting: mount exited with exit code 1: helper failed with:
mount: mount point /media/cd does not exist

Last edited by leniviy (2010-01-03 14:25:08)


Arch 64, xfce4

Offline

#2 2010-01-03 17:29:03

chsims1
Member
From: Holderness, UK
Registered: 2008-11-25
Posts: 83

Re: "/media/cd" gets deleted when cd ejected although it's in /etc/fstab

Is this a hal conflict? Automounting with hal doesn't need the fstab entries.

Offline

#3 2010-01-03 18:27:07

leniviy
Member
Registered: 2009-05-23
Posts: 177

Re: "/media/cd" gets deleted when cd ejected although it's in /etc/fstab

chsims1 wrote:

Is this a hal conflict? Automounting with hal doesn't need the fstab entries.

Without fstab entry hal mounts removable medias to /media/${label} which is not what I want.
If I remember correctly, in previous versions the devices which were listed in fstab were just ignored and you had to mount them manually.

I was so glad they changed it so hal uses fstab entries as hints telling where to mount. But it doesn't work for 100%.


Arch 64, xfce4

Offline

#4 2010-01-03 19:49:31

jac
Member
From: /home/jac
Registered: 2009-05-19
Posts: 431
Website

Re: "/media/cd" gets deleted when cd ejected although it's in /etc/fstab

I don't know if this has anything to do with it, but I read that manually created folders should go in /mnt instead of /media as that is reserved for automounting things. Might be another program deleting it because it has been unmounted.

Offline

#5 2010-01-03 20:27:04

leniviy
Member
Registered: 2009-05-23
Posts: 177

Re: "/media/cd" gets deleted when cd ejected although it's in /etc/fstab

jac wrote:

I don't know if this has anything to do with it, but I read that manually created folders should go in /mnt instead of /media as that is reserved for automounting things. Might be another program deleting it because it has been unmounted.

Traditionally you don't mount to /mnt/cdrom, you mount to /mnt itself.


Arch 64, xfce4

Offline

#6 2010-01-03 22:36:13

jac
Member
From: /home/jac
Registered: 2009-05-19
Posts: 431
Website

Re: "/media/cd" gets deleted when cd ejected although it's in /etc/fstab

Haha, then I'm doing that untraditionally, I thought it worked like that so you could have multiple mounts... Does that help anything?

Offline

Board footer

Powered by FluxBB