All times are UTC - 5 hours [ DST ]


Switch to mobile style


Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Hard Disk How To Wipe a Sectors Range Only
PostPosted: March 12th, 2011, 11:18 
Offline

Joined: June 25th, 2006, 13:51
Posts: 139
Location: Italy
Is there any hard disk wipe utility that wipes drives from sector to sector? In few words, one hdd wipe utility that can wipe a sectors range,

I mean that allow you to choose the starting sector and erase from that sector on, some kind of offset, the final sector is welcome but not needed, it would be enough to wipe from a certain sector up to the last one.

Thank you if you have the right tip.

Vulcan kindly suggested me to use dd, but reading dd documentation, I don't understand how to use it for the purpose I ask above.

If you are practice with dd, thank you for any suggestion

C.


Top
 Profile  
 
 Post subject: Re: Hard Disk How To Wipe a Sectors Range Only
PostPosted: March 12th, 2011, 12:10 
Offline

Joined: March 6th, 2011, 23:32
Posts: 260
Location: TN
Take a look at eraser I have used it to erase specific area's of the drive. I am not sure it will do sector ranges but take a look at it. http://eraser.heidi.ie/


Top
 Profile  
 
 Post subject: Re: Hard Disk How To Wipe a Sectors Range Only
PostPosted: March 12th, 2011, 15:14 
Offline

Joined: May 6th, 2008, 22:53
Posts: 2138
Location: England
Hi again,

Thanks for starting a new thread instead of continuing to hijack the HDDErase thread. :)

Since you said that you want to wipe several whole partitions, the approach which I would take is shown below, as it avoids you needing to worry about specifying LBAs. Note that you do this at your own risk! :)

a) Take a backup onto other media (and check it is valid!) for whatever data you want to keep on that disk, in case anything goes wrong.

b) Ideally, disconnect any other disk drives in the system, leaving just the disk to have partitions erased, in order to minimise the chances of you making a mistake and erasing the wrong disk.

c) Using Linux (e.g. via a bootable "live CD"), as root run "fdisk -lu /dev/---" (where "---" is the device node for this disk drive where you want to erase some partitions - the disk device node name does not contain a number, and it depends on your system configuration e.g. /dev/sdh or /dev/hdz or whatever).

This output from fdisk will report the size & starting LBAs of each partition on that disk, and also the partition device node names, which you will need to use with dd when erasing partitions from that disk.

d) Make sure that you have correctly identified the partitions that you want to erase e.g. by confirming their size from this fdisk output, with what you expect their size to be. If you are not sure that you have correctly identified the partitions to erase, then do not continue.

e) Since you are erasing whole partitions, you don't need to worry about specifying starting LBAs to dd - you just need to specify the partition device node name, as the "of" parameter to dd.

So as an example, to erase partition /dev/sdh3, you would run (as root):

dd if=/dev/zero of=/dev/sdh3 bs=1M

Note: You need to find the correct partition device node names (these have a number at the end e.g. /dev/sdh3 or whatever) for your system, from the fdisk output.

(FYI, by using "bs=1M" you would be specifying that dd should write 1MB blocks, and although that is not necessarily the size of I/O being done to the physical disk, this will be much faster than leaving dd to use its default blocksize of 1 sector. Using this is optional.)

f) Repeat this for all the partitions that you want to wipe.

g) Run fdisk again (or parted or whatever you like) to delete the partition entries of the erased partitions, from the partition table itself.

If you wanted to run dd just once and specify a starting LBA to erase from there to the end of the disk, this is possible - but you need to be aware of the effect which using a "bs" parameter will have in that case. For simplicity, I don't recommend this, but it's your choice.

If you're doing this from Windows, without using Linux, then a similar approach could be used - except you'd need to use the port of dd to Windows http://www.chrysocome.net/dd and to identify the partitions (i.e. Windows drive letters) which you want to erase using Windows (My Computer or Disk Management etc.) or the Windows dd program "--list" option.

You can use a hex editor in Windows, or hexdump in Linux, to confirm that the specified partitions (drive letters) are wiped (zero'ed).

There is a totally different approach which you could take - after making sure you have a good, tested, backup of the partition(s) you want to keep and of the MBR, then you could erase the whole disk, and then restore what you wanted from the backup. The risk with this procedure is that you are definitely using your backup in this case, so if anything is wrong with it, then you have a big problem. That is why I would not recommend this - but it's an alternative which some people might prefer.

Hope this helps. Corrections welcome :)


Top
 Profile  
 
 Post subject: Re: Hard Disk How To Wipe a Sectors Range Only
PostPosted: March 14th, 2011, 9:45 
Offline

Joined: August 12th, 2008, 13:11
Posts: 3241
Location: USA
Corsari wrote:
Is there any hard disk wipe utility that wipes drives from sector to sector? In few words, one hdd wipe utility that can wipe a sectors range

MHDD can do this easily

_________________
You don't have to backup all of your files, just the ones you want to keep.


Top
 Profile  
 
 Post subject: Re: Hard Disk How To Wipe a Sectors Range Only
PostPosted: March 16th, 2011, 11:37 
Offline

Joined: March 7th, 2009, 12:43
Posts: 1076
Location: Angel Data Recovery
Corsari wrote:
Is there any hard disk wipe utility that wipes drives from sector to sector? In few words, one hdd wipe utility that can wipe a sectors range,

I mean that allow you to choose the starting sector and erase from that sector on, some kind of offset, the final sector is welcome but not needed, it would be enough to wipe from a certain sector up to the last one.

Thank you if you have the right tip.

Vulcan kindly suggested me to use dd, but reading dd documentation, I don't understand how to use it for the purpose I ask above.

If you are practice with dd, thank you for any suggestion

C.



WinHex:
Go to sector X
Beginning of block (Alt +1)

Go to sector Y
End of block (Alt +2)

Edit/Fill Block (Ctrl+L)


Attachments:
Filll block.JPG
Filll block.JPG [ 19.28 KiB | Viewed 9291 times ]

_________________
Angel Data Recovery
Top
 Profile  
 
 Post subject: Re: Hard Disk How To Wipe a Sectors Range Only
PostPosted: March 17th, 2011, 8:19 
Offline

Joined: October 24th, 2009, 8:16
Posts: 272
Location: Gdansk - Poland
DMDE can do it

_________________
odzyskiwanie danych z dysku


Top
 Profile  
 
 Post subject: Re: Hard Disk How To Wipe a Sectors Range Only
PostPosted: March 17th, 2011, 8:46 
Offline

Joined: February 19th, 2011, 11:05
Posts: 304
Location: Toronto
It's possible to do that in R-Studio's built-in editor. Select Fill on the Edit menu, specify the pattern to fill with, and start and end sectors.

_________________
R-Studio Data Recovery Software


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group