LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   cdrom won't unmount! (https://www.linuxquestions.org/questions/slackware-14/cdrom-wont-unmount-113079/)

yocompia 11-06-2003 11:53 AM

cdrom won't unmount!
 
i'm well-versed in the act of mounting and unmounting media on a linux box, but i installed slack 9.1 last night and i can't eject this cdrom in my drive. i'm quite sure i've stopped all processes that access the cdrom and made sure to NOT be in the FS i'm unmounting. then i type "#eject /mnt/dvdrom" and it refuses to cooperate. here are the outputs i got:

(it starts w/ /dev/hdc="dvdrom device" mounted at /mnt/dvdrom)

root@chimaera:/# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda1 995864 304088 640372 33% /
/dev/hda3 4964188 1453496 3254456 31% /usr
/dev/hda4 68238912 167620 64549044 1% /home
/dev/hdc 640224 640224 0 100% /mnt/dvdrom
root@chimaera:/# eject /mnt/dvdrom/
eject: unable to eject, last error: Invalid argument
root@chimaera:/# eject -r -v /mnt/dvdrom/
eject: device name is `/mnt/dvdrom'
eject: expanded name is `/mnt/dvdrom'
eject: `/mnt/dvdrom' is not mounted
eject: `/dev/hdc' can be mounted at `/mnt/dvdrom'
eject: `/dev/hdc' is a multipartition device
eject: trying to eject `/dev/hdc' using CD-ROM eject command
eject: CD-ROM eject command failed
eject: unable to eject, last error: Device or resource busy
root@chimaera:/# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda1 995864 304088 640372 33% /
/dev/hda3 4964188 1453496 3254456 31% /usr
/dev/hda4 68238912 167620 64549044 1% /home

so you'll notice that it did unmount the cdrom after the eject command was issued, but it refuses to eject. anybody got suggestions? i tried to "#umount -f /mnt/dvdrom" and "#umount -l /mnt/dvdrom" to no avail.

thx for reading,
y-p

LogicG8 11-06-2003 11:57 AM

/mnt/dvdrom is a directory
I know it's supposed to work but indulge me.

try
eject /dev/hdc

if that doesn't work
try
lsof | grep dvdrom

yocompia 11-06-2003 03:42 PM

no dice on either of those:

root@chimaera:/# mount /mnt/dvdrom/
root@chimaera:/# eject /dev/hdc
eject: unable to eject, last error: Invalid argument
root@chimaera:/# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda1 995864 303696 640764 33% /
/dev/hda3 4964188 1453496 3254456 31% /usr
/dev/hda4 68238912 167756 64548908 1% /home
root@chimaera:/# mount /mnt/dvdrom/
root@chimaera:/# eject -r -v /dev/hdc
eject: device name is `/dev/hdc'
eject: expanded name is `/dev/hdc'
eject: `/dev/hdc' is mounted at `/mnt/dvdrom'
eject: unmounting `/dev/hdc'
eject: `/dev/hdc' is a multipartition device
eject: trying to eject `/dev/hdc' using CD-ROM eject command
eject: CD-ROM eject command failed
eject: unable to eject, last error: Device or resource busy

and

root@chimaera:/# lsof | grep dvdrom
root@chimaera:/# lsof | grep hdc
root@chimaera:/# lsof | grep mnt

damn, this is odd. i've never such a fritz-out with this thing.

thx for the suggestions, logic

cratos 11-07-2003 03:11 PM

Quote:

eject: unable to eject, last error: Device or resource busy
You had to have missed something. Looks like something is still using the drive.


All times are GMT -5. The time now is 07:42 AM.