Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Aug 2015 12:58:18 +0100
From:      Matthew Seaman <matthew@FreeBSD.org>
To:        freebsd-questions@freebsd.org
Subject:   Re: Stop using a SATA drive
Message-ID:  <55DEFB5A.3080408@FreeBSD.org>
In-Reply-To: <55DEF869.1010202@sneakertech.com>
References:  <CAPi0psvT5aaHR7kU%2B28qwVDdutyMn7LjhFUGZRWctz4gGfgvgw@mail.gmail.com> <20150824214252.53aa04c6.freebsd@edvax.de> <55DEF869.1010202@sneakertech.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?55DEFB5A.3080408>