Sponsored Content
Full Discussion: Erase hard disk
Operating Systems AIX Erase hard disk Post 302369992 by shiniraz on Tuesday 10th of November 2009 05:50:53 AM
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..
 

9 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

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 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

7. 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

8. 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

9. 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
isohybrid(1)						      General Commands Manual						      isohybrid(1)

NAME
isohybrid -- Post-process an ISO 9660 image generated with mkisofs or genisoimage to allow hybrid booting as a CD-ROM or as a hard disk. SYNOPSIS
isohybrid [OPTIONS] <boot.iso> DESCRIPTION
The isohybrid utility modifies a an ISO 9660 image generated with mkisofs, genisoimage, or compatible utilities, to be bootable as a CD-ROM or as a hard disk. OPTIONS
-h <X> Number of default geometry heads -s <X> Number of default geometry sectors -e <X>, --entry <X> Specify parititon entry number (1-4) -o <X>, --offset <X> Specify partition offset (default 0) -t <X>, --type <X> Specify MBR ID (default random) -u, --uefi Build EFI bootable image -m, --mac Add Apple File Protocol partition table support --forcehd0 Assume we are laoded as disk ID 0 --ctrlhd0 Assume disk ID 0 if the Ctrl key is pressed --partok Allow booting from within a partition -?, --help Display help -v, --verbose Display verbose output -V, --version Display version information SEE ALSO
mkisofs(1) isohybrid 17 Jan 2014 isohybrid(1)
All times are GMT -4. The time now is 01:22 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy