• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Quicky about a DD command in linux in recovery mode.

Tal

Golden Member
Anyone know if when I run a "dd if=/dev/random of=/dev/sda" if I should see something after I hit enter.
It doesn't go right back to the shell prompt, but I can't tell if it's doing anything. It's a scsi dive obviously, and the HD light doesn't appear to be doing anything. Did I run the command wrong? Thanks, -Tal
 
Selling a box on FS/FT and am paranoid... 😛

I'm not that worried, but I just wanted to do a quick wipe.

Can't find a verbose option in dd--help and it said o outputed when I Ctrl-C'd the one that was running.

Any other relatively quick (by tommorrow morning) tools to wipe a 18GB SCSI drive?
 
Originally posted by: Tal
Selling a box on FS/FT and am paranoid... 😛

I'm not that worried, but I just wanted to do a quick wipe.

Ah. 😉

Try:

"dd -v if=/dev/random of=/dev/sda"
 
If I create a partition and mount it, I can write a GIANT ASS 18GB file to it it looks like. Maybe that's enough...

Man and info don't work as I'm in the recovery mode.
 
Originally posted by: Tal
If I create a partition and mount it, I can write a GIANT ASS 18GB file to it it looks like. Maybe that's enough...

Man and info don't work as I'm in the recovery mode.

Ah, I wasn't sure if they'd work or not.

Manpage link
 
That's not going to work; you're assuming dd will dump random bits onto that drive indefinitely until it's full.

If you're being paranoid, you need a 7-pass DoD grade disk scrubber anyhow.
 
Originally posted by: manly
That's not going to work; you're assuming dd will dump random bits onto that drive indefinitely until it's full.

If you're being paranoid, you need a 7-pass DoD grade disk scrubber anyhow.

Like "Scrub"??
 
Originally posted by: Tal
Originally posted by: manly
That's not going to work; you're assuming dd will dump random bits onto that drive indefinitely until it's full.

If you're being paranoid, you need a 7-pass DoD grade disk scrubber anyhow.

Like "Scrub"??
Like Heisenberg's recommendation.
 
That's not going to work; you're assuming dd will dump random bits onto that drive indefinitely until it's full.

And unless I'm reading that incorrectly, that's what will happen.
 
Originally posted by: Nothinman
That's not going to work; you're assuming dd will dump random bits onto that drive indefinitely until it's full.

And unless I'm reading that incorrectly, that's what will happen.
I believe you'd have to at least instruct dd to write out the number of bytes necessary (see the bs and count flags), and it would still take a god-awful amount of time for the random bit bucket to fill the drive if I'm not mistaken.
 
I believe you'd have to at least instruct dd to write out the number of bytes necessary (see the bs and count flags), and it would still take a god-awful amount of time for the random bit bucket to fill the drive if I'm not mistaken.

No, with no bs or count options it goes forever or until a read or write error occurs. But yes it would take a really long time since /dev/random blocks until randomness can be generated, /dev/urandom would be better but would still take a while.
 
Originally posted by: Nothinman
I believe you'd have to at least instruct dd to write out the number of bytes necessary (see the bs and count flags), and it would still take a god-awful amount of time for the random bit bucket to fill the drive if I'm not mistaken.

No, with no bs or count options it goes forever or until a read or write error occurs. But yes it would take a really long time since /dev/random blocks until randomness can be generated, /dev/urandom would be better but would still take a while.



Exactly. dd if=urandom of=/dev/sda will write until the disk is full. Once it is full it will give you a error because it ran out of space.

And it will take a while because your actually writing a file big enough to fill the entire disk. If you have a 30gig disk your making a 30 gig file of gibberish.

I've done this myself a few times to help correct errors on disks....
 
Back
Top