PDA

View Full Version : Disk Error


Igoraus
2005-07-29, 02:59 AM CDT
Hi all

How to fix disk error's. Founding log like this:

Errors logged 49 errors detected

Is there some tools for check disk and repair??

ghaefb
2005-07-29, 03:12 AM CDT
The command is '/sbin/fsck' you need to run this as root and on UNMOUNTED filesystem.
So if you need to check the /dev/hda2. umount it first and then do a: fsck /dev/hda2

If you want to check the / root filesystem the best way to do this is to run this: shutdown -Fr NOW

Igoraus
2005-07-29, 04:15 AM CDT
There is nothing else like no unmounted before?

ghaefb
2005-07-29, 05:55 AM CDT
Well you can run it on mounted filesystem, but you will receive an warningWARNING!!! Running e2fsck on a mounted filesystem may cause
SEVERE filesystem damage.
It's not recommended.

But the 'shutdown -Fr NOW' will work ok, why don't you do that ?

Igoraus
2005-07-29, 06:37 AM CDT
Yes at end I do that command but fedora check all my disks but fedora didn't repair anything :(

steve941
2005-07-29, 11:18 AM CDT
Are they 'bad sectors'? ..you could try fixing them but will probably loose all data...
download your hard drive's diagnostics ex google 'hitachi diagnostics' usually these are able to perform a full media scan and a full write zeros which have fixed my drive when I used it, but again you might loose data if you just do full media scan and you will loose everything if you do that along with write zeros.