Hard Disk Problem

Does anyone know of any commands that offer the same sort of facilities of scandisk on windows. My Linux server (Mandrake 6.2) keeps crashing and gives hard disk errors when I reboot. I've used fcsk to fix any problems that arise but when I use dumpe2fs to display disk information it says that the file system is still not clean. Any ideas how to make it clean and check for erros (i.e. bad blocks etc)

Thanks for your help

:slight_smile:

Here is what the manual says:

Will keep you bust for a while...

fsck - check and repair file systems

OPTIONS
-FFSType Specify the file system type on which to operate.

 -m        Check but do not repair. This option  checks  that
           the  file system is suitable for mounting, return-
           ing the appropriate exit status. If the file  sys-
           tem  is ready for mounting,  fsck  displays a mes-
           sage such as:

           ufs fsck: sanity check: /dev/rdsk/c0t3d0s1 okay

  f         Force checking of file  systems  regard-
                     less  of  the state of their super block
                     clean flag.

           p         Check  and  fix  the  file  system  non-
                     interactively  \("preen"\).  Exit  immedi-
                     ately if there is  a  problem  requiring
                     intervention. This option is required to
                     enable parallel file system checking.

           w         Check writable file systems only.

EXIT STATUS
0 file system is okay and does not need checking

 1         erroneous parameters are specified

 32        file system is unmounted and needs checking  \(fsck
           -m only\)

 33        file system is already mounted

 34        cannot stat device

 36        uncorrectable errors detected - terminate normally

 37        a signal was caught during processing

 39        uncorrectable errors detected - terminate  immedi-
           ately

SEE ALSO
clri(1M), crash(1M), fsck_cachefs(1M), fsck_s5fs(1M),
fsck_ufs(1M), fsdb_ufs(1M), fsirand(1M), fstyp(1M),
mkfs(1M), mkfs_ufs(1M), mountall(1M), newfs(1M), reboot(
1M), fs_ufs(4), vfstab(4), attributes(5), largefile(5)