From owner-freebsd-hackers Thu Nov 28 16:23:02 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id QAA20107 for hackers-outgoing; Thu, 28 Nov 1996 16:23:02 -0800 (PST) Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id QAA20102 for ; Thu, 28 Nov 1996 16:22:57 -0800 (PST) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by irz301.inf.tu-dresden.de (8.6.12/8.6.12-s1) with ESMTP id BAA19106; Fri, 29 Nov 1996 01:22:35 +0100 Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id BAA28880; Fri, 29 Nov 1996 01:22:34 +0100 Received: (from j@localhost) by uriah.heep.sax.de (8.8.2/8.6.9) id BAA26548; Fri, 29 Nov 1996 01:17:00 +0100 (MET) From: J Wunsch Message-Id: <199611290017.BAA26548@uriah.heep.sax.de> Subject: Re: eject for JAZ drives To: freebsd-hackers@freebsd.org (FreeBSD hackers) Date: Fri, 29 Nov 1996 01:17:00 +0100 (MET) Cc: imp@village.org Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <199611282315.PAA22500@lestat.nas.nasa.gov> from Jason Thorpe at "Nov 28, 96 03:14:59 pm" X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E X-Mailer: ELM [version 2.4ME+ PL17 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk As Jason Thorpe wrote: > > I wanna eject my jaz drive w/o stooping? Can I do it via software? > > It's pretty simple... if your sd driver supports something like the > DIOCLOCK and DIOCEJECT ioctls in NetBSD... If it does, you should be > able to fairly easily adapt NetBSD's eject(1) program. That's what we've got the `od' driver for. Basically similar things, though. OTOH, if the driver doesn't support it, you can still do: scsi -f /dev/rsd1.ctl -c "1b 0 0 0 2 0" -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)