From owner-freebsd-questions@FreeBSD.ORG Thu Oct 14 00:05:27 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8B41C16A4CE for ; Thu, 14 Oct 2004 00:05:27 +0000 (GMT) Received: from mail.indatacorp.com (65.104.0.66.ptr.us.xo.net [65.104.0.66]) by mx1.FreeBSD.org (Postfix) with SMTP id 183ED43D31 for ; Thu, 14 Oct 2004 00:05:27 +0000 (GMT) (envelope-from rgrafton@indatacorp.com) Received: (qmail 59862 invoked by uid 0); 14 Oct 2004 00:11:36 -0000 Received: from unknown (HELO ?192.168.100.179?) (rgrafton@indatacorp.com@192.168.100.179) by netfb01.indatacorp.com with SMTP; 14 Oct 2004 00:11:36 -0000 Message-ID: <416DC2D0.1000008@indatacorp.com> Date: Wed, 13 Oct 2004 17:05:36 -0700 From: Randy Grafton User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Mike Jeays References: <1097691732.126E39B5@j29.dngr.org> <1097711419.30508.138.camel@chaucer> In-Reply-To: <1097711419.30508.138.camel@chaucer> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: Laszlo Antal cc: freebsd-questions@freebsd.org Subject: Re: Unable to umount Cdrom drive. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Oct 2004 00:05:27 -0000 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@freebsd.org mailing list >>http://lists.freebsd.org/mailman/listinfo/freebsd-questions >>To unsubscribe, send any mail to "freebsd-questions-unsubscribe@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@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-questions >To unsubscribe, send any mail to "freebsd-questions-unsubscribe@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