![]() ![]() Here’s an example of shred which by default does 25 pass!: Or for an RPM based distribution such as Fedora: If you want to install it on a Debian based distribution, you can use the following command: shred utility allows to do this easily and it is available on SystemRescueCD. It is recommended to repeat the procedure several times to be sure that none of recovery procedures fail. ![]() The method above may be considered insufficient for the most paranoid among us. You just have to use dcfldd command that does the same thing as dd but display the number of megabytes processed:Ħ144 blocks (192Mb) written… Deleting a drive with the shred command Most of the time, these commands take a lot of time and no progress is shown. For example (for 2 drives):ĭd if=/dev/zero of=/dev/sda dd if=/dev/zero of=/dev/sdb If you only want to delete one partition, add the partition number:Īnd if you want to format all partitions of all drives, you can concatenate commands. ![]() To delete an hard drive with dd, you can use the following command that fill the drive /dev/sda with zero on every sector: If the example above, the drive /dev/sda is found with 3 partitions and a 1.8 TB capacity in total. In order to know the exact path for your drive, you can use the fdisk command as root or sudoer:ĭisk /dev/sda: 1887.4 GB, 1887436800000 bytesĢ55 heads, 63 sectors/track, 229467 cylinders Finding the location of a drive or partition If the partitions you want to delete are system (boot) partitions you’ll need to start your system with a live CD / USB such as SystemRescueCD or GParted. This can be useful in case you want to sell, throw away your hard drive / computer or have doubtful activities. With those methods you won’t be able to recover the data. Here are 2 methods to completly dlete the content of an hard drive with dd and shred commands. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |