# Hard Disk Error checking Tools

Forgive me if this is a silly question, Newbie here that has come from a windows environment and while not New to computing, am re learning Linux after many years. SO, under DOS / Windows, I used to be able to run a command that repaired cross linked files etc on a HDisk. CHKDSK with various options..can I use a similar command in Fedora 21 ? I ask as I seem to be crashing alot, with frozen applications. usually to do with multimedia of various sorts. and YES, I run update almost everyday.

The reason I need to do this is that Fedroa 21 appears to auto reboot Often, loosing me work etc..Can I stop this? Logs do not appear to show any issues..nothing reported. HELP lol.answer gratefully received Thakns in advance

edit retag close merge delete

Sort by » oldest newest most voted

Is your computer dual boot, if so, does it also reboot in other operating systems? If it does, then it could be a HW problem. When you notice freezing GUI can you log into the console (Ctrl+Alt+F2, or Ctrl+Alt+F3), or from ssh? Please check/post your dmesg after the freezing happens. Also, check your syslog. Your file system is checked upon bootup, so it is unlikely to be FS issue.

more

The equivalent command for checking your filesystems in Linux is fsck . It has a man (manual) page here: http://linux.die.net/man/8/fsck

it might be helpful to find out what is causing your Fedora server to reboot on its own. My Fedora system runs for months - it only ever sees a restart when we've had a kernel update.

more

The analogue to chkdsk - but neither may inform you of physical defects on the drive. Use a tool that checks the drive's SMART attributes ( https://en.wikipedia.org/wiki/S.M.A.R.T . ) to check the drive health. gnome-disks provides a graphical and easy to interpret interface (red and green lights!) but command line utilities like smartctl do the same job.

Especially watch out for Reallocated Sector Count, Error Retry Rate, and Offline Uncorrectable. If these values are high or growing, you must replace the drive. Often the output of smartctl -a /dev/sda on a problematic drive is sufficient when submitting a warranty claim.

If your system is shutting off improperly, Fedora should be performing an fsck to repair the filesystems when it first boots.

more

+1 for gnome-disks, which can be installed as part of the gnome-disk-utility package.