Using shred Linux c...
 
Notifications
Clear all

Using shred Linux command with an offset ?

5 Posts
4 Users
0 Reactions
1,477 Views
(@zul22)
Trusted Member
Joined: 13 years ago
Posts: 53
Topic starter   [#11489]

Hi,

I regularly have to zero the drives that I use as clones for data recoveries.

As the size of drive increases, this takes more and more time, typically a few hours for drives with capacity >= 1 TB.

Assume that the "shred -n 0 -z /dev/sdb" command has zeroed 400 GB when it was stopped.
Without having to create partitions, is there a command to go on the shredding from that offset ?

For security reasons, I dislike the idea of letting the drives on the table when I'm out of the office, like during the night. So, is there any solution to finish the job on the next day when using the "shred" command ?

Currently, I can see the alternative of using the "dd if=/dev/zero …" command, as it does accept the seek/skip parameters.

In Windows, softwares like HD Tune Pro also allows starting the shredding with an offset.



   
Quote
(@adampski)
Eminent Member
Joined: 13 years ago
Posts: 29
 

I don't see DD being a bad idea. Not sure how you would get a progression bar, or some sort of feedback from DD to tell you what cluster it was last working on (been a little while since I used DD).



   
ReplyQuote
minime2k9
(@minime2k9)
Honorable Member
Joined: 15 years ago
Posts: 481
 

If DD would work for you then maybe DCFLDD would provide the feedback you need?



   
ReplyQuote
binarybod
(@binarybod)
Reputable Member
Joined: 18 years ago
Posts: 272
 

I use the pv tool to give me some feedback thus

dd if=/dev/zero ibs=4096 | pv -s {size in bytes} | dd of={target} obs=4096
Experimenting with different block sizes helps with speed. Of course all this piping slows things down a bit though.



   
ReplyQuote
(@adampski)
Eminent Member
Joined: 13 years ago
Posts: 29
 

I use the pv tool to give me some feedback thus

dd if=/dev/zero ibs=4096 | pv -s {size in bytes} | dd of={target} obs=4096
Experimenting with different block sizes helps with speed. Of course all this piping slows things down a bit though.

How universal would you say the pv command to be? Is it exclusive to dd?



   
ReplyQuote
Share: