Sponsored Content
Operating Systems AIX How to use dd command to erase the data in disk Post 302474857 by Corona688 on Thursday 25th of November 2010 05:19:30 PM
Old 11-25-2010
dd is pretty simple. Be sure to unmount anything on that disk before doing this:

Code:
dd if=/dev/zero of=/path/to/device bs=65536

the bs=65536 is optional, just makes it a bit more efficient by writing more at once.

dd will also work on partitions.

What to do with the disk after is less simple, since the filesystem and even the boot sector therein will be annihilated along with the files.

If you want a less drastic solution than dd-ing and reformatting, you could take a look at the shred command.
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Is there an unrecoverable erase command?

I am "retiring" an old unix box and need to erase all sensitive data so that it can not be recovered. Does anyone know a unix command for this? (5 Replies)
Discussion started by: snyderpa
5 Replies

2. UNIX for Dummies Questions & Answers

stty erase e command

I'm not familiar with the stty command. What would "stty erase e" do to my system and what kind of problems would it create? Also, how would I undo this command? (1 Reply)
Discussion started by: CEngel0327
1 Replies

3. SCO

Reading Data from Disk

I have a server with SCO Open Server 5 and I need to copy data files from the hard drive. Can this be completed with a Windows PC with the hard drive connected with a USB caddy? I have no other way to do this. Server not running. TIA Tim (2 Replies)
Discussion started by: taordw
2 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. Filesystems, Disks and Memory

"mt erase" command does not work

Hi I have some data in my tape which I want to erase with the command mt erase The process runs for a long time without cleaning data. What can be the problem?? krishan (2 Replies)
Discussion started by: krishan
2 Replies

6. AIX

Erase hard disk

Hi ... How to erase bootable hard disk in Pseries... (3 Replies)
Discussion started by: sumathi.k
3 Replies

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

8. UNIX for Advanced & Expert Users

How to erase tape data in unix V4.0 D?

hi! my computer is... System: Digital Personal Workstation 433a Processor: Digital Alpha 21164, 433 MHz Memory: 64 MB OS: Digital Unix Console (SRM), Digital Unix V4.0D how to erase tape data? I tried with mt erase but no success. My tape is 120m. So, how can i erase tape? ... (5 Replies)
Discussion started by: akz
5 Replies

9. OS X (Apple)

Can I erase and start my mac with unix command

I made a tragic error and erased the extensions manager from my IMac. Now, I can't get the computer to boot up. It just stays on the gray screen. I've tried using the open apple+s method, which brings up the command console (not sure if I've got the lingo down right), and I've tried everything, but... (12 Replies)
Discussion started by: ccff22290
12 Replies
gnome-cleanup(1)						   User Commands						  gnome-cleanup(1)

NAME
gnome-cleanup - cleans GNOME user preferences SYNOPSIS
gnome-cleanup user DESCRIPTION
gnome-cleanup erases all GNOME user preferences, returning the user to the default look and feel. This can be used to undo undesired pref- erence settings, or to correct the desktop if the preferences become corrupt. The GNOME preference files are automatically recreated the next time the user logs into a GNOME session. By default this program erases the configuration files for the user running the command. However, a different user can be specified on the command line. Of course, configuration files are only erased if the user running gnome- cleanup has appropriate file permissions to erase the user's configuration files. gnome-cleanup will display a listing of all preference files that it will erase before erasing any files, and prompts the user to confirm that they would like to erase these files. Files are erase only after receiving a positive confirmation from the user. gnome-cleanup cannot be run while logged into a GNOME session. Users should run this program when logged into another session, for exam- ple, the Failsafe session. If the user tries to run this program while already logged into GNOME, an error message is displayed. OPTIONS
None. OPERANDS
The following operands are supported: user Specify the user whose configuration files will be erased. The files will only be erased if the user running gnome-cleanup has file permissions to erase the user's configuration files. This is useful, for example, if you want to run the script as the root user to erase the configuration files for a specific user. If user is not specified, the user is the same as the user who runs the gnome-cleanup command. EXAMPLES
Example 1: Erase GNOME user preferences example% gnome-cleanup After displaying a list of preference files that will be erase, the following question is displayed: Do you wish to remove these files (Y/N) The files are erase only if the user provides a positive response. EXIT STATUS
The following exit values are returned: 0 Application exited successfully >0 Application exited with failure FILES
The following files are used by this application: /usr/bin/gnome-cleanup Executable for GNOME cleanup. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWgnome-panel | +-----------------------------+-----------------------------+ |Interface stability |Volatile | +-----------------------------+-----------------------------+ SEE ALSO
attributes(5) NOTES
Written by Brian Cameron, Sun Microsystems Inc., 2003, 2007. SunOS 5.11 27 Nov 2007 gnome-cleanup(1)
All times are GMT -4. The time now is 06:55 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy