From owner-freebsd-questions@freebsd.org Fri Aug 28 01:43:45 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CFA299C49A4 for ; Fri, 28 Aug 2015 01:43:45 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 95D93E28 for ; Fri, 28 Aug 2015 01:43:45 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de (port-92-195-38-7.dynamic.qsc.de [92.195.38.7]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx02.qsc.de (Postfix) with ESMTPS id A836A27825; Fri, 28 Aug 2015 03:43:42 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id t7S1hfGL002090; Fri, 28 Aug 2015 03:43:42 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Fri, 28 Aug 2015 03:43:41 +0200 From: Polytropon To: Quartz Cc: freebsd-questions@freebsd.org Subject: Re: Stop using a SATA drive Message-Id: <20150828034341.bb01cc81.freebsd@edvax.de> In-Reply-To: <55DFB16E.4090804@sneakertech.com> References: <20150824214252.53aa04c6.freebsd@edvax.de> <55DEF869.1010202@sneakertech.com> <20150828000118.31f33a35.freebsd@edvax.de> <55DFA213.4030304@sneakertech.com> <20150828020029.c3c53813.freebsd@edvax.de> <55DFAB0B.7020307@sneakertech.com> <20150828024643.c0d5d2dd.freebsd@edvax.de> <55DFB16E.4090804@sneakertech.com> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Aug 2015 01:43:45 -0000 On Thu, 27 Aug 2015 20:55:10 -0400, Quartz wrote: > >>> This is possible. > >> > >> OK, well my question (via Chris' original question) was, is there > >> currently a port or package that actually implements this? > > > > Not that I am aware of. Maybe some specific (vendor-supplied) > > control software for disk controllers ("RAID controllers") > > can do this? > > Hmm... ok. Not that I have any plans for this, but just out of > curiosity, how easy do you think it would be to write one? I'm sure this is possible. Such a tool would first have to make sure that all requests to a device (let's say a disk) would have been processed ("sync" and "umount" equivalents at driver level), issue CAM commands to the device to "say goodbye", and then talk to devfs to manipulate the device file system. When a rescan of the bus is requested, the device should probably re-appear. At least that's how I would imagine such a process. Note that I'm not a BSD system programmer, so my experience and knowledge on this topic is limited. > > There was also a menu entry: "eject floppy disk", and additionally > > a keyboard shortcut. > > Well... sorta. Even that was messed up. If you used command-E ("Eject") > you got the stupid ghost icon. You had to use command-Y ("Put Away") > which didn't really make a lot of sense. But as I said, Apple's mental > model for disconnecting disks has always been weird. Yes, I remember the somewhat strange choice of terminology in the german version of Mac OS: "Diskette weglegen". I think Apple thought of "put away" as sync+umount, and "eject" as actual eject. Luckily, you usually could't "force-remove" the disk with read or write operations pending. :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...