On 4/1/24 15:57, Barry Scott wrote:
I tend to dd of a few MiB of zeros over the front of the disk.
A few KiB is often not enough.
In some cases you also need to overwrite at the end of the disk I have been told.
Barry
TMTOWTDI.
The dmesg output is generally *plenty* to nuke the boot sector and
render the drive unbootable, triggering a PXE boot. Depending on your
hardware, the boot sector is either 512 bytes or 4096 bytes (4K), and
the output of dmesg is over 40K on my system. So I'm lazy and just do:
dmesg > /dev/[device]
systemctl reboot
I've known folks who do:
cat /var/log/messages > /dev/[device]
systemctl reboot
or
dd if=/dev/zero of=/dev/[device] bs=1M count=1
systemctl reboot
and that works, too.
I've never heard of having to overwrite the end of the drive, but then,
I've only been working with Linux professionally since 1995. ¯\_(ツ)_/¯
--
Thomas
--
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue