• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 559
  • Last Modified:

How to delete each disk mounted on filesystem using dd command

I am using redhat Linux
0
supportpro
Asked:
supportpro
1 Solution
 
jb1devCommented:
Check here:
http://sleepyhead.de/howto/?href=other

Delete

# dd if=/dev/zero of=/dev/hdc                         # Delete full disk
# dd if=/dev/urandom of=/dev/hdc                      # Delete full disk better
0
 
Duncan RoeSoftware DeveloperCommented:
You  should unmount the disks before doing this. They will not be mountable afterwards, until you re-run mke2fs on them (or whatever)
0
 
jghelfman40Commented:
to truly delete, you may want to use the command "wipe"

should be available via rpm. This does a scrub of the disk.
0
 
sergiu1103Commented:
I did not exaclty understand what you want to do. Do you need to delete ALL the used disks, or just some?

If you want to get rid of all, then I suggest you boot using a live cd, and perform the dd command on all the detected disks. You are able to "see" them using fdisk -l

For sure you need them unmounted before.
0
 
supportproAuthor Commented:
Thanks
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now