From owner-freebsd-questions@freebsd.org Thu Aug 27 11:58:34 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 691C39C4218 for ; Thu, 27 Aug 2015 11:58:34 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3cd3:cd67:fafa:3d78]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.infracaninophile.co.uk", Issuer "infracaninophile.co.uk" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 0F90C122E for ; Thu, 27 Aug 2015 11:58:33 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from zero-gravitas.local (no-reverse-dns.metronet-uk.com [85.199.232.226] (may be forged)) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.15.2/8.15.2) with ESMTPSA id t7RBwOf4083046 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO) for ; Thu, 27 Aug 2015 12:58:25 +0100 (BST) (envelope-from matthew@FreeBSD.org) Authentication-Results: smtp.infracaninophile.co.uk; dmarc=none header.from=FreeBSD.org DKIM-Filter: OpenDKIM Filter v2.10.3 smtp.infracaninophile.co.uk t7RBwOf4083046 Authentication-Results: smtp.infracaninophile.co.uk/t7RBwOf4083046; dkim=none; dkim-atps=neutral X-Authentication-Warning: lucid-nonsense.infracaninophile.co.uk: Host no-reverse-dns.metronet-uk.com [85.199.232.226] (may be forged) claimed to be zero-gravitas.local Subject: Re: Stop using a SATA drive To: freebsd-questions@freebsd.org References: <20150824214252.53aa04c6.freebsd@edvax.de> <55DEF869.1010202@sneakertech.com> From: Matthew Seaman X-Enigmail-Draft-Status: N1110 Message-ID: <55DEFB5A.3080408@FreeBSD.org> Date: Thu, 27 Aug 2015 12:58:18 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <55DEF869.1010202@sneakertech.com> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="eDkSbIpaxUuxxn89xnfNl4SSFwGEN7xGp" X-Virus-Scanned: clamav-milter 0.98.7 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on lucid-nonsense.infracaninophile.co.uk 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: Thu, 27 Aug 2015 11:58:34 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --eDkSbIpaxUuxxn89xnfNl4SSFwGEN7xGp Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 2015/08/27 12:45, Quartz wrote: > On OSX, you can access the Disk Utility app from the terminal via the > 'diskutil' command. This provides a more or less one-stop-shop for all > disk related activities, eg; you can issue 'diskutil list' to get a lis= t > of all known disk devices and their ID and partitions, you can 'diskuti= l > unmount foo' to stop all writes on disk foo, and then 'diskutil eject > foo' to completely disconnect it from the system so it no longer shows > up in /dev (using dd to read or write to the drive will fail with "No > such file or directory"). >=20 > I believe Chris was looking for an equivalent command (or equivalent to= > 'diskutil eject foo' at any rate). OSX was based on FreeBSD originally,= > so the underlying concept should be possible. Is there no port or > package that can provide this functionality? Apple has the distinct advantage of controlling the hardware. FreeBSD runs on all sorts of different kit from all sorts of different providers, hence the uniform interface that Apple has achieved is much harder. The closest thing would be camcontrol(8), but that doesn't apply to a number of RAID controllers for instance. Cheers, Matthew --eDkSbIpaxUuxxn89xnfNl4SSFwGEN7xGp Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQJ8BAEBCgBmBQJV3vtgXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQxOUYxNTRFQ0JGMTEyRTUwNTQ0RTNGMzAw MDUxM0YxMEUwQTlFNEU3AAoJEABRPxDgqeTnw0IP/An7fo2qo7V+FYUO7yBhhZx7 jHRxPTw+h7lOhzCW4ATERlMw0hcHSCIb3IDTyMLE71J+CAXbKD2ttHB2XVX3HWuZ HLuzznPxNiNpZroVJF9ROnZAlqFW/X5WQq9H7/M9N2A0HA0LEpf/sv8B9a93Rb3a mcyMYdoU//GUzT5aahAEVl6E1BuFjsgKsgNkKH+W9alici55IS0RB/yuJnIZVk05 xNH12a7YjYBhu/W9po8jtAk7i4YQjxfpT7gzvsleMnrvs0EMHzz1cqWLDDZISzW9 RnF/9/B8WZrJ/Fyk5EIg+0WRaRpuJdCXVtspLBL7Scjpem/ksBhjTq1O2eoAyciU CwZdStXoh5hcwzin/CxUxVqNUe16GHdk5Jp/TQGeEFJVAdZ+VrtURdE9c/W8tkiG 2+LouaEP7d2vCzvT1RHyduZBQ4xNOu8V34AU8kDab+ONjEJbbRwHP+WmtYb4/vZL dG9wuEs/04zvhE9RsTBmzw1p6SsIBbp2Rp7o+iH+mchSJ9ZlShL7Bu+tH6+Lmhr1 sqyXNsVvMIORtIVzx1dsK7xRkbX8b8d/2pUtluGiWaUNOsfY6jfV9Vn5BXCtfgPV 3lbXNmTEWfxLVFZrSiK1DLmHwvGTCQ8vu0Tlub9pUlLJcwwliJmL62D2y27zyAAh 2HTGWGWwHPljC6O2UgzF =mJUq -----END PGP SIGNATURE----- --eDkSbIpaxUuxxn89xnfNl4SSFwGEN7xGp--