CHKDSK for Linux

Further to a recent catestrophic failure of a LVM in my server I am in a
position where I have several hard-drives which I am rebuilding my
environment on.

It would seem that there is an error on one of them (8 disks in total)
but I don’t know which!

Before I re-build and put data onto a potential bad disk, is there a
tool / utility that I can use to check the disk before hand?


badger_fruit

badger_fruit’s Profile: http://forums.opensuse.org/member.php?userid=2099
View this thread: http://forums.opensuse.org/showthread.php?t=401294

fsck.ext3
reiserfsck (if using ReiserFS)
xfs_check and xfs_repair (for XFS)


‘Get h264enc’ (http://h264enc.sourceforge.net) - ‘Get xvidenc’
(http://xvidenc.sourceforge.net)
- ‘Get divxenc’
(http://divxenc.sourceforge.net)

microchip8’s Profile: http://forums.opensuse.org/member.php?userid=163
View this thread: http://forums.opensuse.org/showthread.php?t=401294

if you also want to check the disk itself, use badblocks


‘Get h264enc’ (http://h264enc.sourceforge.net) - ‘Get xvidenc’
(http://xvidenc.sourceforge.net)
- ‘Get divxenc’
(http://divxenc.sourceforge.net)

microchip8’s Profile: http://forums.opensuse.org/member.php?userid=163
View this thread: http://forums.opensuse.org/showthread.php?t=401294

badger fruit wrote:

>
> Further to a recent catestrophic failure of a LVM in my server I am in a
> position where I have several hard-drives which I am rebuilding my
> environment on.
>
> It would seem that there is an error on one of them (8 disks in total)
> but I don’t know which!
>
> Before I re-build and put data onto a potential bad disk, is there a
> tool / utility that I can use to check the disk before hand?

>
>

fsck etc only work on file systems - to do a hardware check you’ll probably
need specialist software supplied by the HDD manufacturer

Check out Ultimate Boot CD http://www.ultimatebootcd.com/

Alan


email =~ s/nospam/fudokai/

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

If you’re using a server-class system, especially w/hardware RAID, this
should be fairly standard stuff. For anything else having a filesystem
check will probably do a decent job of finding failures that are
consistent or easy to reproduce. If the disk is really going bad I
would expect either to find a problem. Depending on how bad it is you
may get errors just trying to overwrite the entire disk with some
utility made to do as much, from “Dan’s Boot and Nuke” (DBAN) down to
something simple like ‘dd’.

Good luck.

ajp wrote:
> badger fruit wrote:
>
>> Further to a recent catestrophic failure of a LVM in my server I am in a
>> position where I have several hard-drives which I am rebuilding my
>> environment on.
>>
>> It would seem that there is an error on one of them (8 disks in total)
>> but I don’t know which!
>>
>> Before I re-build and put data onto a potential bad disk, is there a
>> tool / utility that I can use to check the disk before hand?

>>
>>
>
> fsck etc only work on file systems - to do a hardware check you’ll probably
> need specialist software supplied by the HDD manufacturer
>
> Check out Ultimate Boot CD http://www.ultimatebootcd.com/
>
> Alan
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJPTsM3s42bA80+9kRAv1fAJ48/HRCdxRKz8bxzpS62MdsJJ6NDwCdH6bt
3e+dN2YgS47VRCqcfxRppko=
=lN4l
-----END PGP SIGNATURE-----

Also, if the disks have smart functionality (and it’s enabled), you
might get good readings from that.

Basically use smartctl to read out the values for each disk (e.g.
smartctl /dev/sda -a).

Cheers,
Wj


Have allot of fun! WJM

Magic31’s Profile: http://forums.opensuse.org/member.php?userid=289
View this thread: http://forums.opensuse.org/showthread.php?t=401294

In addition, have a look here on how to use smart(ctl):

‘Linux Harddisk Monitoring with SmartMonTools (smartctl)’
(http://www.captain.at/howto-linux-smartmontools-smartctl.php)

There also an option to let a disk do a self test (quick upto rigid).


Have allot of fun! WJM

Magic31’s Profile: http://forums.opensuse.org/member.php?userid=289
View this thread: http://forums.opensuse.org/showthread.php?t=401294