From owner-freebsd-questions@FreeBSD.ORG Sat Nov 12 20:53:34 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 6F2DE16A41F for ; Sat, 12 Nov 2005 20:53:34 +0000 (GMT) (envelope-from thomas@it-sc.at) Received: from it-sc.at (static81-223-21-146.adsl.inode.at [81.223.21.146]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5D54E43D49 for ; Sat, 12 Nov 2005 20:53:32 +0000 (GMT) (envelope-from thomas@it-sc.at) Received: from it-sc.at (localhost.itsc.at [127.0.0.1]) by it-sc.at (8.13.3/8.13.3) with ESMTP id jACKfSGQ019590; Sat, 12 Nov 2005 21:41:28 +0100 (CET) (envelope-from thomas@it-sc.at) Received: (from thomas@localhost) by it-sc.at (8.13.3/8.13.3/Submit) id jACKfRVn019589; Sat, 12 Nov 2005 21:41:27 +0100 (CET) (envelope-from thomas) Date: Sat, 12 Nov 2005 21:41:27 +0100 From: Thomas Linton To: Bill Schoolcraft Message-ID: <20051112204127.GA19536@natas.it-sc.at> References: <1131744339.21074.5.camel@home-desk> <44oe4qorwz.fsf@be-well.ilk.org> <1131820287.3416.23.camel@home-desk> <20051112121453.M1200@liam.billschoolcraft.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051112121453.M1200@liam.billschoolcraft.com> User-Agent: Mutt/1.4.2.1i Cc: freebsd-questions@freebsd.org Subject: Re: How can I programatically eject a live cd? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Nov 2005 20:53:34 -0000 I believe that you can't do this because "you" are sitting on this CD. In general: # cdcontrol eject or with port /usr/ports/sysutils/eject just # eject On Sat, Nov 12, 2005 at 12:19:39PM -0800, Bill Schoolcraft wrote: > At Sat, 12 Nov 2005 it looks like Sean Bruno composed: > > >On Sat, 2005-11-12 at 09:35 -0500, Lowell Gilbert wrote: > >>Sean Bruno writes: > >> > >>>I was looking for an answer to this question. Since my CD is actually > >>>the running file system(is mounted), I cannnot eject it while the system > >>>is running. > >>> > >>>So is there a way to do this that y'all have found, or do I have to > >>>change my CD to run from memory(RAMDISK) instead of running from the CD. > >> > >>You want to eject your running root filesystem? > >>That's a *really* crazy idea. > >>Why do you want to do that? > >> > >Well, I don't "want" to eject my running root filesystem, but I need to > >have the CD eject on a reboot/halt of the system. > > > >So, is there a "nicer" way of doing this? > > > > There is on "other" Unix type OS's the command "eject" which > will actually open the CD tray. I use it all the time in the > server colo when there is some mislabed machines, I'll make sure > all the CDROM trays are shut, login to the machine and type > "eject" and the tray of the mislabed machine will pop open. > > Here is some information that "may or may not" help you in > finding a *BSD equivalent: > > ##################################################### > > [wiliweld@corten8 ~]-> ldd `which eject` > libc.so.6 => /lib/libc.so.6 (0x4002c000) > /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000) > > [wiliweld@corten8 ~]-> file `which eject` > /usr/bin/eject: ELF 32-bit LSB executable, Intel 80386, version > 1 (SYSV), dynamically linked (uses shared libs), not stripped > > [wiliweld@corten8 ~]-> > > ##################################################### > > -- > Bill Schoolcraft > PO Box 210076 > San Francisco, CA 94121 > http://billschoolcraft.com > ~ > "You do best what you like most." > > _______________________________________________ > 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" --