Unable to umount Cdrom drive.

Randy Grafton rgrafton at indatacorp.com
Wed Oct 13 17:05:27 PDT 2004


Mike Jeays wrote:

>On Wed, 2004-10-13 at 14:22, Laszlo Antal wrote:
>  
>
>>Hi,
>>
>>I have FreeBSD 4.10 installed.
>>When I mount the cdrom with #mount -t cd9660 /dev/acd0c /cdrom
>>everything works fine.I can get to my ports and everything
>>But when I want to swap cds and I type #umount /cdrom
>>I get this error message:: Unable to umount /cdrom, Device is busy.
>>If I do the umont from KDE I get the same error message.
>>What I'm doing wrong??
>>
>>Thank you for all the help.
>>
>>Laszlo
>>
>>
>>--lantal
>>_______________________________________________
>>freebsd-questions at freebsd.org mailing list
>>http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>>To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
>>    
>>
>
>I use a script "eject", as follows. It CDs back to my home directory,
>and then ejects the CD. Lazy but effective.
>
>
>#!/bin/sh
>cd $HOME
>umount /cdrom
>cdcontrol -f /dev/acd0c eject
>
>
>
>_______________________________________________
>freebsd-questions at freebsd.org mailing list
>http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
>
>
>  
>
Most of the time this message pops up because either you are in the 
/cdrom (mounted) directory or a file form that directory is still in use.
The 'eject' script is a pretty good idea.

-Randy


More information about the freebsd-questions mailing list