Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a task that involves wiping data from hard drives before disposal.
Current solution is to put hdd into Linux box and use dd to write random numbers all over it.
Is it possible to construct a single bootable floppy with sufficient software to create a running system, so I can execute a small number of utilities?
DBAN will do the job. For a somewhat similar purpose (wiping out the MBR on all disks in the system) I created a very small (about 5MB, if I remember correctly) Linux system that can be booted from CD/USB/network. It was pretty easy, I did it this way:
1. Use Slackware's mkinitrd command to create a filesystem tree for being used as root file-system
2. Modify the init script to just initialize the hardware (using Busybox's mdev) and then use dd to write zeroes to the disk.
3. Create a kernel config that only contains the drivers you need (in this case disk controller drivers) and point it to the filesystem tree with the modified root filesystem.
4. Compile the kernel.
After that you can use the bootloader of your choice (like Isolinux for CD, Syslinux/Extlinux for USB, Pxelinux for network boot) to load that kernel, it will automatically do the job.
Keep in mind that if you want to boot from USB not to compile the driver for USB storage devices, or you will overwrite the USB disk also.
The only problem with floppy based distro's is the age of the kernel needed. You may not have driver support. Not even sure you can get linux on a single floppy anymore. If your system is supported then the old Tom's boot disk was "the most linux on a floppy" and there are a few others out there still
A pxe or gpxe of live usb live cd sort of deal could be made to do automated boots and work for larger images as noted above.
If you are simply disposing of them then get an old demagnetizer.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.