Destroy GPT partition scheme absolutely, how?
Miroslav Lachman
000.fbsd at quip.cz
Mon Sep 26 13:39:30 UTC 2016
Hartmann, O. wrote on 09/26/2016 15:01:
[...]
> Using a fresh/new SD or USB resolves the problem. But the question
> remains: how can I destroy any relevant GPT information on a Flash
> drive (or even harddisk) to avoid unwanted remains of an foul image
> installation?
>
> First guess was to write the last couple of bytes on such a flash drive
> by letting dd(1) counting backwards, but I couldn't figure out how to
> let dd(1) do such a procedure. The nightmare didn't end, while trying,
> the SD flash card died :-(
I use dd if=/dev/zero almost everytime when I need to install system on
used HDD.
I rewrite about 10MB on its start and then about 10MB on the end.
I have some script to do this - simply takes media size from diskinfo
command, substract 10MB and then dd with seek
Hope that it will help you
Miroslav Lachman
More information about the freebsd-current
mailing list