Results 1 to 7 of 7

Thread: CHKDSK for Linux

  1. #1
    Join Date
    Jun 2008
    Location
    /earth/europe/uk/england/west-yorkshire/leeds/mystreet/myhouse
    Posts
    248

    Default 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?

  2. #2
    Join Date
    Jun 2008
    Location
    /dev/belgium
    Posts
    1,946

    Default Re: CHKDSK for Linux

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

  3. #3
    Join Date
    Jun 2008
    Location
    /dev/belgium
    Posts
    1,946

    Default Re: CHKDSK for Linux

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

  4. #4
    ajp NNTP User

    Default Re: CHKDSK for Linux

    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/

  5. #5
    ab@novell.com NNTP User

    Default Re: CHKDSK for Linux

    -----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-----

  6. #6
    Join Date
    Jun 2008
    Location
    The Netherlands
    Posts
    1,273

    Default Re: CHKDSK for Linux

    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 a lot of fun!

  7. #7
    Join Date
    Jun 2008
    Location
    The Netherlands
    Posts
    1,273

    Default Re: CHKDSK for Linux

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

    Linux Harddisk Monitoring with SmartMonTools (smartctl)

    There also an option to let a disk do a self test (quick upto rigid).
    Have a lot of fun!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •