Erase hard disk


 
Thread Tools Search this Thread
Operating Systems AIX Erase hard disk
# 1  
Old 10-13-2009
MySQL Erase hard disk

Hi ...
How to erase bootable hard disk in Pseries...

Last edited by sumathi.k; 10-14-2009 at 02:32 AM..
# 2  
Old 10-13-2009
Export VG, create a new VG and write it full with something, for example with dd. Also there might be some professional tools out there - not sure if they do more or better than this.
# 3  
Old 10-13-2009
boot from NIM and then use the smitty menus and run the SCSI erase procedure.
# 4  
Old 11-10-2009
Debian

Hello sumarthi,

You have 2 options here:

Option 1:Wipe disk using Diag boot
**************************
1. Assuming it is rootvg disk, you have to start(boot) the server using AIX Diagnostic CD.
2. Task Selection -> Format Media (if the disks are from datavg, make sure you format rootvg disk last in sequence)
-> select disk(select disk using enter, proceed using F7 rootvg disk do in sms mode)
-> Erase Disk -> Enter, Yes-> Write patterns to drive
-> choose number of different pattern to write (3 patterns is sufficient, according to dept of defense standard, others option optional) -> F7(commit)


Option 2:Zero Filled the hdisk manually using cmd line
*****************************************
1. Depending on your requirements there are a couple of ways to do this.
If your requirment is to keep the average hacker from getting to the
data then the following dd command works great:

# dd if=/dev/zero of=/dev/rhdisk0 bs=1m
(dd the disks with the rootvg last)

2. eg:
hdisk0 00c7ae3a90d38044 rootvg active
hdisk1 00c7ae3a95f249c6 datavg active
hdisk3 00c7ae3ae5ec7b97 datavg2 active
hdisk4 0002c6bf97d139ad testvg active

Set a loop script with the rootvg hard disk last to be wiped:

"for x in 4 3 1 0
do
dd if=/dev/zero of=/dev/rhdisk$x bs=1m
done"

Then I do other stuff and check it after a few hours.
Test to see if the machine will boot, definitely it won't. Success!



p/s : Thanks Neo for the nomination. Appreciate!

GOOD LUCK!
Shiniraz
Malaysia

Last edited by shiniraz; 11-10-2009 at 07:20 AM..
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Linux

C++ Code to Access Linux Hard Disk Sectors (with a LoopBack Virtual Hard Disk)

Hi all, I'm kind of new to programming in Linux & c/c++. I'm currently writing a FileManager using Ubuntu Linux(10.10) for Learning Purposes. I've got started on this project by creating a loopback device to be used as my virtual hard disk. After creating the loop back hard disk and mounting it... (23 Replies)
Discussion started by: shen747
23 Replies

2. AIX

How to use dd command to erase the data in disk

how to use dd command to erase the data in disk, such as hdisk2? (9 Replies)
Discussion started by: rainbow_bean
9 Replies

3. SCO

declare disk driver for IDE hard disk

hi I've a fresh installation of SCO 5.0.7 on the IDE hard disk. For SCSI hard disk I can declare, for example blc disk driver using: # mkdev hd 0 SCSI-0 0 blc 0but it works for IDE hard disk? (3 Replies)
Discussion started by: ccc
3 Replies

4. AIX

Erase AIX rootvg system disk

Hello all, I need help for erasing IBM P5 machine running AIX 5.3. I have 2 system disks (Hardware mirror) and i'm looking for a way like a LIVE CD bootable CD so I can boot with the cd and then format the system disks with a "secure erase" software. (7 Replies)
Discussion started by: kobi gabai
7 Replies

5. UNIX for Dummies Questions & Answers

Hard Disk at 99% Help!

:eek: I use this Solaris to run CMS a call acounting software package for my job. No one could run reports today because it said the this when you logged on "The following file systems are low, and could adversely affect server performance: File system /: 99%full" Can some one please explain... (9 Replies)
Discussion started by: mannyisme
9 Replies

6. AIX

Erase hard disk data

How to erase/format hard disk data in RS6000 AIX PowerPC model 43 :confused: ? (8 Replies)
Discussion started by: kenloong
8 Replies

7. Solaris

how to reformat a hard disk

hi i need help on how to reformat a hard disk. what should i do since i don't have any bootable disk. i'm using solaris 1 & 2 and also need to make a backup copy of the current hard disk. appreciate all the help i can get... (14 Replies)
Discussion started by: mr_balodoy
14 Replies

8. UNIX Desktop Questions & Answers

Hard Disk

I have a cuestion. How Can I to add other hard disk to my computer? I need to configurate anyone? (4 Replies)
Discussion started by: hmaraver
4 Replies

9. UNIX for Dummies Questions & Answers

Hard Disk Problem

Does anyone know of any commands that offer the same sort of facilities of scandisk on windows. My Linux server (Mandrake 6.2) keeps crashing and gives hard disk errors when I reboot. I've used fcsk to fix any problems that arise but when I use dumpe2fs to display disk information it says that... (1 Reply)
Discussion started by: DGM
1 Replies
Login or Register to Ask a Question