try fuser, it should show if someone or something is in the directory in question.
so man fuser eg [EMAIL PROTECTED] etc]# fuser /mnt/ (gives no return) [EMAIL PROTECTED] etc]# cd /mnt/ [EMAIL PROTECTED] mnt]# fuser /mnt/ /mnt/: 16337c [EMAIL PROTECTED] mnt]# ps aux |grep 16337 root 16337 0.0 0.0 4268 1372 pts/0 S 08:19 0:00 -bash root 16408 0.0 0.0 3676 676 pts/0 S 08:25 0:00 grep 16337 So this shows "me" as root in a bash shell in /mnt so /mnt cannot be ejected/unmounted while "I" am in there. This should work for where ever the cd is mounted. regards S -----Original Message----- From: Eric M. Monsler [mailto:[EMAIL PROTECTED] Sent: Friday, 30 July 2004 5:34 a.m. To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Ever solve eject problem? Jerry, you reported: > I get the same problem even as root: > debian:/home/jerry# mount /dev/hdc > debian:/home/jerry# umount /dev/hdc > debian:/home/jerry# eject /dev/hdc > eject: unable to eject, last error: Invalid argument ...two weeks ago in a thread on ejecting a CD problem. Did you ever find a solution? I've got the exact same problem on my recently Debianed box. I didn't see any solution on the list, although other threads discussed when only root can eject. I can't eject, even as root: habanero:/etc# eject /dev/hdc eject: unable to eject, last error: Invalid argument habanero:/etc# eject /media/cdrom eject: unable to eject, last error: Invalid argument habanero:/etc# My fstab is: # /etc/fstab: static file system information. # # <file system> <mount point> <type> <options> <dump> <pass> proc /proc proc defaults 0 0 /dev/hda6 none swap sw 0 0 /dev/hda3 / ext3 defaults,errors=remount-ro 0 1 /dev/hda5 /home ext3 defaults 0 2 /dev/hdc /media/cdrom iso9660 ro,user,noauto 0 0 /dev/fd0 /media/floppy auto rw,user,noauto 0 0 endor:/export/home6/emonsler /home/emonsler/nethome nfs defaults,_netdev Finally, uname -s reports: Linux habanero 2.4.26-1-686-smp #1 SMP Fri Jul 9 22:32:32 JST 2004 i686 GNU/Linux Thanks, Eric -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]