Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
As i said in title, we need to erase all datas from harddisk before distroy our old servers.
Quote:
dd if=/dev/zero of=/dev/hda bs=1M
Quote:
shred -fzuv -n 100 /dev/hda
1. Which is the best practice to erase data, dd or shred?
2. How can i execute these commands in running server, do i need to re-boot the servers as RESCUE mode using bootable cd?
Using a count of 100 is absurdly high. After 2 writes of random data, I doubt anyone will be able to read them.
I would recommend using DBAN to securely erase the disk drives.
Even better is to use a tool that uses a function in the drives themselves to do the same.
You could also take a drill and drill through the drives. Many modern drives have ceramic platters so a large hammer would word to smash the platters to bits.
1. Can i do this task in RESCUE mode by booting bootable CD?
OR
2. Can i do this in single user mode?
we don't reuse this hardware, just only need to erase the data
If you have a sledgehammer lying around and some safety goggles that will work fine too and it'll take less time. Thermite is also an option, as are large magnets.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.