[SFS] how to erase the crap out of (off from?) an old RAID/LVM/whatever disk
kevink
kevink at propaas.com
Mon Mar 12 11:11:51 MDT 2018
Ask Hillary Clinton ;)
On 03/12/2018 10:57 AM, Chris Fedde wrote:
> I use a sledge hammer.
>
> On Sat, Mar 10, 2018 at 3:59 AM, David L. Willson
> <DLWillson at thegeek.nu <mailto:DLWillson at thegeek.nu>> wrote:
>
> I knew there was a tool for the job, but I couldn't remember the
> name. Thanks for the reminder, Zack!
>
>
>
> Sent from my Verizon, Samsung Galaxy smartphone
>
>
> -------- Original message --------
> From: Zack Coffey <clickwir at gmail.com <mailto:clickwir at gmail.com>>
> Date: 3/9/18 21:38 (GMT-07:00)
> To: "David L. Willson" <DLWillson at thegeek.nu
> <mailto:DLWillson at thegeek.nu>>
> Cc: sfs at lists.sofree.us <mailto:sfs at lists.sofree.us>
> Subject: Re: [SFS] how to erase the crap out of (off from?) an old
> RAID/LVM/whatever disk
>
> I've used wipefs before.
>
> http://manpages.courier-mta.org/htmlman8/wipefs.8.html
> <http://manpages.courier-mta.org/htmlman8/wipefs.8.html>
>
> On Mar 9, 2018 6:01 PM, "David L. Willson" <DLWillson at thegeek.nu
> <mailto:DLWillson at thegeek.nu>> wrote:
>
> This was hard enough to find that I want to stick in my
> journal. Hello, journal.
>
> ```
> # wait for /dev/sdc to become available
> while ! blockdev --getsz /dev/sdc; do sleep 5; done
> # erase the tail - gets the RAID config
> dd bs=512 if=/dev/zero of=/dev/sdc count=2048 seek=$(( $(
> blockdev --getsz /dev/sdc ) - 2048))
> # erase the head - gets the partition table
> dd bs=512 if=/dev/zero of=/dev/sdc count=1024
> # cleanly disconnects
> eject /dev/sdc
> ```
>
> --
> David L. Willson
> Teacher, Engineer, Evangelist
> COA LFCS CCAH RHCE CLP
> Mobile 720-333-LANS(5267)
> http://sofree.us
>
> This is a good time for a r3VOLution.
>
>
> _______________________________________________
> SFS mailing list
> SFS at lists.sofree.us <mailto:SFS at lists.sofree.us>
> http://lists.sofree.us/cgi-bin/mailman/listinfo/sfs
> <http://lists.sofree.us/cgi-bin/mailman/listinfo/sfs>
>
>
> _______________________________________________
> SFS mailing list
> SFS at lists.sofree.us <mailto:SFS at lists.sofree.us>
> http://lists.sofree.us/cgi-bin/mailman/listinfo/sfs
> <http://lists.sofree.us/cgi-bin/mailman/listinfo/sfs>
>
>
>
>
> _______________________________________________
> SFS mailing list
> SFS at lists.sofree.us
> http://lists.sofree.us/cgi-bin/mailman/listinfo/sfs
--
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sofree.us/pipermail/sfs/attachments/20180312/c6c3b059/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: email3.png
Type: image/png
Size: 70967 bytes
Desc: not available
URL: <http://lists.sofree.us/pipermail/sfs/attachments/20180312/c6c3b059/attachment-0001.png>
More information about the SFS
mailing list