Is there an easy command that I can use to zero out the last 1MB of a hard drive?
For the start of the drive I would dd if=/dev/zero of=/dev/sdx bs=1M count=1
. The seek
option for dd looks promising, but does someone have an easy way to determine exactly how far I should seek?
I have a hardware RAID appliance, that stores some of the RAID configuration at the end of the drive. I need the RAID appliance to see the drives as un-configured, so I want to remove the RAID configuration without having to spend the time to do a full wipe of the drives. I have a dozen 2TB drives, and a full erase of all of those drives would take a long time.