LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   CD-ROM wont unmount unless logged in as root (https://www.linuxquestions.org/questions/debian-26/cd-rom-wont-unmount-unless-logged-in-as-root-265450/)

redsmoke 12-12-2004 12:02 AM

CD-ROM wont unmount unless logged in as root
 
I am using knoppix 3.7 and had to recompile my kernel with mppe support. After doing this I can't unmount my cdrom after I mount it unless I log in as root. My fstab looks as follows and I don't see a problem with it and if I reboot into the previous kernel it works fine. I assume I missed a setting of some sort in the recompile I am using 2.4.27. I just copied the config from the previous kernel except I added mppe according to instructions on pptp.sourceforge.net .

# /etc/fstab: filesystem table.
#
# filesystem mountpoint type options dump pass
/dev/hda1 / ext3 defaults,errors=remount-ro 0 1

proc /proc proc defaults 0 0
/dev/fd0 /floppy vfat defaults,user,noauto,showexec,umask=022 0 0
usbdevfs /proc/bus/usb usbdevfs defaults 0 0
sysfs /sys sysfs defaults 0 0
/dev/cdrom /cdrom iso9660 defaults,ro,user,noexec,noauto 0 0
/dev/dvd /dvd iso9660 defaults,ro,user,noexec,noauto 0 0
/dev/cdaudio /cdaudio iso9660 defaults,ro,user,noexec,noauto 0 0
tmpfs /dev/shm tmpfs defaults 0 0
/dev/cdrom1 /mnt/auto/cdrom1 auto users,noauto,exec,ro 0 0
# Added by KNOPPIX
/dev/hda2 none swap defaults 0 0

I think its an issue with knoppix's automount script but I am unsure.

valerie_tux 12-12-2004 01:56 AM

Welcome to LinuxQuestions
 
Yes your fstab seems fine. My hunch.. the cdrom is mounted already at boot up which means one of your scripts might be culprit. Check your /etc/init.d folders. Knoppix has a lot of automatic scripts which are not required after installing on the hard disk. After umounting as root can you mount it as any other user. This will show if you are able to mount in the first place or not. Its been a while working with 2.4 kernels but still I cant think of anything which explains why change of kernel should make any difference.

redsmoke 12-12-2004 02:14 AM

I just wanted to clarify it is not mounted at boot up. It is only after I mount it AS a user that I can't unmount it unless I login as root and do umount /dev/cdrom .

lewmnik 12-13-2004 07:09 AM

Hi

It seems to be a kernel bug. Check the bugreports: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=243100

Niko


All times are GMT -5. The time now is 02:49 AM.