arisuchan    [ tech / cult / art ]   [ λ / Δ ]   [ psy ]   [ ru ]   [ random ]   [ meta ]   [ all ]    info / stickers     temporarily disabledtemporarily disabled

/tech/ - technology

Name
Email
Subject
Comment

formatting options

File
Password (For file deletion.)

Help me fix this shit. https://archive.arisuchan.jp/q/res/2703.html#2703

Kalyx ######


File: 1501349522190.jpg (92.2 KB, 1024x725, seagate_hard_disk.jpg)

 No.932

A friend let me part out one of his old computers and I ended up getting RAM and an HDD. He wants me to wipe it before using it. How exactly does one go about that?

The last time I did so, I used some linux live disk and some one told me what to type. I'd like to do 3 to 7 passes of random data.

 No.933

just use dd:

assuming the disk is sda,

dd if=/dev/urandom of=/dev/sda

will copy psuedo random data from /dev/urandom onto the disk device, sda, until its full.

be absolutley sure that sda is actually the disk you want, as if you over write something you want to save with this, it will be basically impossible to do.

if you want to do multiple passes, just repeat the command once it finishes. you can also do /dev/zero (in place of urandom), which fills the disk with 0's, and works considerably faster but less useful for concealing the size of data stored on the disk, if you later want to encrypt it, though if you are doing several passes, it is probably acceptable to do say, two of /dev/zero followed by one /dev/urandom for the same essential effect.

if you do not care about encryption and just want to cover up all the data, then /dev/zero is probably the way to go.

 No.934

>>933
I guess that's one way to do it, though the real way to do it is with the "shred" command.

basically: # shred /dev/sdX
this will take a long time, though, since shred does 3 passes (same as multiple military institutions around the world do). A better way would be # shred -n 1 -z /dev/sdX
which will do one pass and set all bits to 0.

 No.935

>933
>934
Both of these are very valid ways of doing this, but OP, what are you trying to get out of this?

 No.944

>>935
Do I just copy paste this into a terminal? How does this all work?

I want a clean. HDD

 No.945

Just format it then.
I'll assume you're using linux or have a familiarity with it since you're on this site.
Boot from a secondary harddrive or usb (NOT THE ONE YOU'RE WIPING) then open up your favorite terminal emulator and type in
lsblk
This will show all your storage attached to the computer, find the harddrive you want to wipe. It should be /dev/sdb or /dev/sdc or something like that. You should be able to tell from the size.
After you found that type in
cfdisk /dev/xxx
where you replace xxx with the sdb/sdc/whatever you found earlier.
Then use the gui to delete your partitions and then use the write button.

This should be fine for what you need.

 No.973

>>933
urandom is better than zero, as it assures that you are actually writing data to every sector, not just labelling portions of the disk to be read as "zeroed out"

>>944
Doesn't that just create a large file? That would still leave the locations of file headers

 No.974

File: 1502152868263.jpg (70.09 KB, 448x342, 1345953966.78234736.jpg)

>>973
I think this guy just wants to use the harddrive without (rm -rf)ing the drive, and possible using his own partitions.
I think everyone here is over thinking it. I don't think he's trying to destroy data.

 No.981

>>974
Yes I was trying to destroy data. I ended up using Boot and Nuke.



[Return] [Go to top] [ Catalog ] [Post a Reply]
Delete Post [ ]