Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Jul 2017 10:42:08 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        freebsd-questions@freebsd.org
Subject:   Re: Unusual Question
Message-ID:  <afc0558b-5193-7ca8-96b0-ed33cb86d99e@infracaninophile.co.uk>
In-Reply-To: <d3a607c8-c600-5ade-46a4-8b7cf0261f7d@FreeBSD.org>
References:  <888578F8-AD68-4993-823C-152789F3C929@mail.sermon-archive.info> <d3a607c8-c600-5ade-46a4-8b7cf0261f7d@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--ed7MQaNtSWjSnRCL6HjF2vEtoBmqdvLTC
Content-Type: multipart/mixed; boundary="jA5AC8MJ2iOVC1E4bTQkMm6wf1GcbDUME";
 protected-headers="v1"
From: Matthew Seaman <m.seaman@infracaninophile.co.uk>
To: freebsd-questions@freebsd.org
Message-ID: <afc0558b-5193-7ca8-96b0-ed33cb86d99e@infracaninophile.co.uk>
Subject: Re: Unusual Question
References: <888578F8-AD68-4993-823C-152789F3C929@mail.sermon-archive.info>
 <d3a607c8-c600-5ade-46a4-8b7cf0261f7d@FreeBSD.org>
In-Reply-To: <d3a607c8-c600-5ade-46a4-8b7cf0261f7d@FreeBSD.org>

--jA5AC8MJ2iOVC1E4bTQkMm6wf1GcbDUME
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

On 2017/07/10 10:34, Matthew Seaman wrote:
> On 2017/07/09 10:57, Doug Hardie wrote:
>> I have a FreeBSD 9.3 remote server that needs to be purged.  I know
>> that rm -rf / will remove all the directory entries, but I need to
>> write over the drive.  I thought that dd if=3D/dev/zero of=3D/dev/ada0=

>> might do the trick, but it gives an not permitted error.  The whole
>> thing can crash and burn at the end.  This is an unmanned site so
>> moving drives is not viable.
>=20
> I'd do this by usinf dd(1) but slightly more carefully.  You need a
> small, temporary, bootable partition that contains dd(8).  This could b=
e
> either by booting from install media -- although as you say, the machin=
e
> is in an unmanned location so that may not be feasible -- or you could
> possibly re-purpose an existing swap partition.  You can then zero out
> each of the other partitions /dev/ada0p1 etc on your drive -- the idea
> being not to try and delete the OS you're running from, as that will
> likely crash in the middle and leave things half deleted.
>=20

Um.. to clarify.  The temporary partition should contain /not only/
dd(8) but also at minimum /all the other basic stuff the system needs to
boot into a single user shell/ -- given you haven't got a remote
console, then you'ld all the stuff so you could configure it with
networking and bring it up multiuser.

	Cheers,

	Matthew



--jA5AC8MJ2iOVC1E4bTQkMm6wf1GcbDUME--

--ed7MQaNtSWjSnRCL6HjF2vEtoBmqdvLTC
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

iQJ8BAEBCgBmBQJZY0vwXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQxOUYxNTRFQ0JGMTEyRTUwNTQ0RTNGMzAw
MDUxM0YxMEUwQTlFNEU3AAoJEABRPxDgqeTnpY8P/jNrYIeDMapXdGMFIjXKYRen
ETFJn8knt8075Oa7QSJupuG6qKvI7cAavcQNf1c5Z0Zg2ukSH21DHBOMD8CAg9M8
/u5/k+wdnzev48OWg+DkqZ9lLOy3tmeocM1T2MYIX8rx57kl7fagnEUknc8YszOR
tGjbxDXhD9Pn14Atov4aOUYmquuk6rxkf0jPZGzDLkQI/Iq9yx332DgcB/6EnTpu
4RTM+wvAdX5lqi6Eyr1bV2ayiyUDz6EVn8ySW1+ku/AVcNq5bibMIUVkZqLdWjrO
wemxUCYCxUPWbB81K17yFTKNn5Ku+YHUK0X7x+luK38pFcuIPMi6hg76v7rr55Tx
zPdsBZUD5vfGx37FUHiykXz5IwI3rLKvR6mIqOtDWzg4gy2u0rDWtEowUR3OUSDL
ctQkNMLily1iTw7qsjioPPl9usYz401vCQDbaAxJDF6oRpLTfWtWa2avkc8IezYR
OhYwnIq3VLz0QfqpTcKRfaod5pA4HSc+8jeB1QcHQMiMpPEB6HtgjcRKahA/kRXa
5dnSrgW0DeJrO9ugHZbturawTEtMyqjXUV//QgOqK763dSiJiAQQiLyQCKO7PN9u
7+ZucdnHVgcUuotDud7p7IsXEpgpzmOYlq//plAg6bHWXidzmyUvGW+e96ux3Vpa
qEEdkc9nBQWbrfUOmRyh
=5b2H
-----END PGP SIGNATURE-----

--ed7MQaNtSWjSnRCL6HjF2vEtoBmqdvLTC--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?afc0558b-5193-7ca8-96b0-ed33cb86d99e>