From owner-freebsd-questions@FreeBSD.ORG Fri Oct 7 22:22:55 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 5D2A916A420 for ; Fri, 7 Oct 2005 22:22:55 +0000 (GMT) (envelope-from youshi10@u.washington.edu) Received: from mxout2.cac.washington.edu (mxout2.cac.washington.edu [140.142.33.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id D3A6743D46 for ; Fri, 7 Oct 2005 22:22:54 +0000 (GMT) (envelope-from youshi10@u.washington.edu) Received: from smtp.washington.edu (smtp.washington.edu [140.142.33.9]) by mxout2.cac.washington.edu (8.13.4+UW05.04/8.13.4+UW05.09) with ESMTP id j97MMsi8017026 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 7 Oct 2005 15:22:54 -0700 X-Auth-Received: from [128.208.4.96] (dzihan.cs.washington.edu [128.208.4.96]) (authenticated authid=youshi10) by smtp.washington.edu (8.13.4+UW05.04/8.13.4+UW05.09) with ESMTP id j97MMrQv008829 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Fri, 7 Oct 2005 15:22:53 -0700 Message-ID: <4346F53D.1070508@u.washington.edu> Date: Fri, 07 Oct 2005 15:22:53 -0700 From: Garrett Cooper User-Agent: Mozilla Thunderbird 1.0.6-1.1.1.1vy+fc4a (X11/20050728) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <20051007145730.W41030@wolf.pjkh.com> In-Reply-To: <20051007145730.W41030@wolf.pjkh.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='__CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0, __USER_AGENT 0' 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: Fri, 07 Oct 2005 22:22:55 -0000 Philip Hallstrom wrote: > Hi all - > > I've built a live CDROM based off of the cdroot package and 4.x. It's > designed to be popped into a machine, wipe the hard drive, install a > custom image, and that's it. > > Everything works great with one exception. > > I would *love* to be able to have the CDROM automatically eject when > it's finished (and/or shutdown). This way a user could power on a > headless box, pop in the cd, reboot, let it's do it's thing and know > it was done when the CDROM ejected. > > I know the drives can do it because I've seen some other CD's (most > recent a seagate disk utility) do it. > > But the closest I can come is: > > cdcontrol -f acd0 eject > > and then I can press the eject button and it will eject. > > This is fine for me, but I don't want the people doing this to have to > know to wait for the disk lights to stop. > > Any suggestions? > > Thanks! > > -philip It'd be better to shut down probably because many machines automatically retract the CD tray after rebooting. -Garrett