Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

HDD diagnostic test

3 views
Skip to first unread message

Vipul J

unread,
Dec 7, 2009, 7:36:31 PM12/7/09
to
Hi All,

I would like to write my own diagnostic tool for Linux in which I
would like to use Generic SCSI Driver and send SCSI read commands to
read the complete HDD drive and repeat the process and verify both the
writes. Now my question is I have 320GB of HDD so where should I store
both the HDD images. I don't have additional disk. Please kindly let
me know your kind opinions.


Regards,
Vipul.

Robert Heller

unread,
Dec 7, 2009, 7:53:19 PM12/7/09
to

Is there any reason you cannot use dd and cmp? --

dd if=/dev/sda of=/bigdisk/sda.copy1
dd if=/dev/sda of=/bigdisk/sda.copy2
cmp -l /bigdisk/sda.copy1 /bigdisk/sda.copy2

>
>
> Regards,
> Vipul.
>

--
Robert Heller -- 978-544-6933
Deepwoods Software -- Download the Model Railroad System
http://www.deepsoft.com/ -- Binaries for Linux and MS-Windows
hel...@deepsoft.com -- http://www.deepsoft.com/ModelRailroadSystem/

Vipul J

unread,
Dec 7, 2009, 10:45:59 PM12/7/09
to
On Dec 7, 4:53 pm, Robert Heller <hel...@deepsoft.com> wrote:

> At Mon, 7 Dec 2009 16:36:31 -0800 (PST) Vipul J <vipu...@gmail.com> wrote:
>
>
>
> > Hi All,
>
> >    I would like to write my own diagnostic tool for Linux in which I
> > would like to use Generic SCSI Driver and send SCSI read commands to
> > read the complete HDD drive and repeat the process and verify both the
> > writes. Now my question is I have 320GB of HDD so where should I store
> > both the HDD images. I don't have additional disk. Please kindly let
> > me know your kind opinions.
>
> Is there any reason you cannot use dd and cmp? --
Yes, Because I want to test my ONLY existing(ONLY one disk I have on
system) completely.
So I am just thinking how to go about it as I don't have another disk
that I can use as my temp space.

Regards,
Vipul.

>
> dd if=/dev/sda of=/bigdisk/sda.copy1
> dd if=/dev/sda of=/bigdisk/sda.copy2
> cmp -l /bigdisk/sda.copy1 /bigdisk/sda.copy2
>
>
>
> > Regards,
> > Vipul.
>
> --
> Robert Heller             -- 978-544-6933

> Deepwoods Software        -- Download the Model Railroad Systemhttp://www.deepsoft.com/ -- Binaries for Linux and MS-Windows
> hel...@deepsoft.com       --http://www.deepsoft.com/ModelRailroadSystem/

Message has been deleted
0 new messages