Avatar of prav83
 asked on

Erase UNIX Harddrive

I have some stand alone AIX(AIX 5.2) production server with a root and other disks, What is the most efficient way to erase the hard drive. Please suggest me of all possible means.
Unix OS

Avatar of undefined
Last Comment

8/22/2022 - Mon
Gerwin Jansen

What kind of hardware is this? Can you boot from USB or CDROM?

My suggestion would be to get a boot cd and erase from there.


Like gparted bootcd or ultimate bootcd

Most server RAID controllers include utilities that allow you to do something like a "low-level" format on the disks.

If you just need to make the drives available for use again, gparted or fdisk and removing all partitions is good enough.

If you need to make sure that the data is not recoverable, you will want to "scrub" it with tools like shred or wipe.

You can burn a bootable CD/DVD or USB with SystemRescueCD that will allow you to use any of these:

Your help has saved me hundreds of hours of internet surfing.

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question

If this disk is a root disk...????

If the disk is the root disk then the command will wipe it and eventually you won't be able to run anything.  You can change the command to not include the root disk, or you could remove the for loop and run the dd on the disk or disks you wish to wipe.

Come on guys, AIX does not run on PCs (ROFL)
You need AIX boot media. 1st disk allows to run a shell and dd zeroes to disk.
Alternatively connect disks so scsi/sas/ssa controller of a desktop pc and erase with cheapo tools offered above.
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
Gerald Connolly

It depends why you are erasing the disk?

If it is to reuse/repurpose the disks then the software routes already suggested are fine.

If it is to dispose of the disks then a hammer or even better a metal shredder is the most secure way.

Fire is good too...