Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Gentoo: User

Want to seriously test a NEW hard drive

 

 

First page Previous page 1 2 3 Next page Last page  View All Gentoo user RSS feed   Index | Next | Previous | View Threaded


alan.mckinnon at gmail

Aug 9, 2012, 8:29 AM

Post #51 of 53 (118 views)
Permalink
Re: Want to seriously test a NEW hard drive [In reply to]

On Thu, 09 Aug 2012 08:53:27 -0500
Dale <rdalek1967 [at] gmail> wrote:

> Alex Schuster wrote:
> > Dale writes:
> >
> >> I have seen where people use dd to do this sort of thing to. I
> >> read somewhere that if you do a dd and put in all 1's, then all
> >> 0's then back again that it is very hard to get any data back off
> >> the drive. I think if you do it like over a dozen times, it is
> >> deemed impossible to get anything back. I think that is the
> >> Government standard of it's gone.
> > There's no need for multiple passes of dd with different values.
> >
> > http://www.h-online.com/security/news/item/Secure-deletion-a-single-overwrite-will-do-it-739699.html
> >
> > Wonko
> >
> >
>
>
> I wonder what some Government org like NSA would think about this?
> Then again, they may want us to believe this so they can get stuff
> back. ;-) ;-)
>
> That said, I always wondered how something can be there when it is
> erased. On paper, I can see that because it made a physical change to
> the paper but on magnetic media, it is magnetic not physical.

It's quite simple once you understand how disks work.

In textbooks we need to keep things simple, so we say things like "the
magnetic particles are all aligned this way for a 0 and that way for a
1". This gets the concept across but it also let's people believe that
bits on a disk are very much binary - like a light switch or a
transistor they are either on or off.

In practice, nothing could be further from the truth.

With disk magnetic media, you aren't dealing with a single isolated
thing (such as a chunk of disk that can only be one way), you are
dealing with a very very large number of magnetic particles that go to
make up one bit. It's how they average out that makes the drive think
it's a 0 or a 1. It all works much like tape cassettes - the head has a
little coil of wire in it and current flows through the coil. It passes
near a magnetic field on the tape, and the current in the coil changes.
Read the amount of change using fancy electronics, and voila! you have
audio. In the case of disks, it's voila! you have a stream of bits.

Disk drives can't afford to be almost right like audio tape though,
they have to be exactly right so the drive has some amazing maths built
into it for error-correction and redundancy. I believe something like
40% of the space containing raw data is pure error checking (so your 3T
drive is actually 4.1T, but you will only ever get to use 3T)

The trick is, when you overwrite an area of the disk, you don't erase
everything, there are some traces left behind.

Pencil and paper is a good analogy. Write something in pencil. Erase
wit with a rubber eraser, and write something else in the same space.
Now hold the paper up to the light and if you know how to look you can
see the indents in the paper from the first thing you wrote. Train your
eyes to ignore what's written there now and only look at dented paper
with no lead marks, and you can read things quite clearly. James Bond
was especially good at this but that's a movie so real life isn't
*that* quick.

Sekrit magic disk software does a very similar thing - it ignores the
current data and looks for traces left behind from the last write, and
the ones before that.

This trick isn't universal of course. As drive technology advances and
IBM figures out new ways to do it, they come up with ideas like using
the _depth_ of the magnetic material too. Neat trick - you can double
the data stored in the same surface area. With each technology advance,
things change a lot, so the amount of reading backwards you can do is
always changing and depends very much on exactly what drive you have.


--
Alan McKinnon
alan.mckinnon [at] gmail


rdalek1967 at gmail

Aug 10, 2012, 1:53 AM

Post #52 of 53 (116 views)
Permalink
Re: Want to seriously test a NEW hard drive [In reply to]

Dale wrote:
> Hmmm, then I guess I didn't do something right the first time I tried
> cgdisk then. It said it wasn't aligned right but I couldn't figure out
> how to get it to do it. Then I used Gparted and it seemed to do it
> without me telling it anything. The only difference I saw was the
> little 1Mb partition. Well, I plan to dd the thing and start over with
> LVM and all so I'll see what it does next time. Maybe I just didn't do
> something right. Since I have nothing windoze on here, do I really
> need to worry about DOS booting? All I have is Gentoo here. Dale :-) :-)

OK. I tested this drive pretty well and I think it is going to be OK.
I ran the Smart test, copied over 800Gbs of data over, deleted it then
copied it over again. After that I ran dd to put it back like new. I
only did the first 100Gbs or so, not the whole thing. I then ran the
Smart test again and it reported no problems. Then I set up LVM and
such which leads me to one more question.

Instead of making a partition, I just told LVM to use the whole disk.
Just a bit ago, I realized that means it may not be doing this alignment
thing since I did it this way. So, is it OK to leave it as is or should
I go back and create a partition and tell LVM to use that?

When I was copying the stuff over, I used dstat to monitor the speed.
It was hitting right at 360Mbs a second at its peak when *writing*
data. I'm only 3Gbs/sec here. Seems pretty fast to me.

OK to leave it like it is or go back and create a partition?

Thoughts?

Dale

:-) :-)

--
I am only responsible for what I said ... Not for what you understood or how you interpreted my words!


michaelkintzios at gmail

Aug 10, 2012, 6:40 AM

Post #53 of 53 (114 views)
Permalink
Re: Want to seriously test a NEW hard drive [In reply to]

On Wednesday 08 Aug 2012 13:53:22 Dale wrote:

> I don't use USB for drives, except the USB stick thingys.
>
> I have a question sort of related to this. Anyone can share info. I
> see boxes that hold drives in them and connect via ethernet or something
> like that. Do those work really well? I thought about getting one
> someday but I don't know what they do and how they do it EXACTLY. Is it
> like a small puter in there or some other means of getting the data
> across?
>
> Right now, I like having my drives in my Cooler Master case. The fan
> blows right on the drives so they stay nice and cool. But, I have given
> thought to having the non OS drives in one of those little boxes, maybe
> using RAID and mirroring the data on two drives.
>
> Just what magic is in those things?

These cradles/caddies and the like typically use USB and e-sata connectors.
--
Regards,
Mick
Attachments: signature.asc (0.19 KB)

First page Previous page 1 2 3 Next page Last page  View All Gentoo user RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.