To fsck or not to fsck ? reinstall is best ?
Submitted by atang1 on Tue, 11/06/2007 - 15:45.
Learned from Microsoft? Dos scandisk tries to fix the software and always made a mess. Even had troubles to reformat the hard disk drive after failure to correct all the errors.
Eventually, Microsoft windows scandisk changed tactics and reinstalls corrupted files from compressed library of their operating system. It restores perfectly
Fsck is not only not perfect, it depends on ext2, ext3 or reiser4fs. So, give up fsck. Do not use fsck! Always have a cd or dvd copy of your operating system. Ready to reinstall from your permanent copy of operating system.
Backup your data, often; as insurance because reinstall will get rid of all corruption, which is your data fragmentations.
»
- Login or register to post comments
- Printer friendly version
- 605 reads


re: To fsck or not to fsck?
I beg to differ. It works pretty good most of the time. I agree to have backups for sure for anything you don't want to lose just in case. But yeah, do try to fsck first. It's saved me a lots of work several times.
(Of course with gentoo, you'll do anything to avoid a reinstall!)
changing technology in error correction ? example ?
In the beginning of hdd fixes, Microsoft DOS scandisk tried to scan the magnetic surface for errors and rewrite in different area for corrections. The problem is that error correction of a single byte is easily fixed by checksum, but many bytes of error can not be fixed by FAT table info. So fixing errors from two copies of FAT table(front and rear of a partition) is a disaster.
Windows scandisk technology is now totally improved. It is done by finding files that are corrupted, reinstalled that file from the compressed library of the operating system. Once the OS is whole, the FAT table(front and rear) is rewritten. The data you have may be corrected, but maybe also lost. Your computer however can be operated without fuss.
Fsck is like dos scandisk, used to fix file systems. As file system improve, fsck may lag behind. Fsck has to be used with synaptic file manager to reinstall some files from repositories, or from a dvd/cd source, needed sooner than later.
The problems are generally generated from FAT table on hdd; not having more space for more than six fragmentations of any file. Drupal used to have this problem where apache and mysql had difference of checksum, fsck may save the day. Gentoo compiled kernel files(except config files if changed freqently) generally do not have to be reinstalled in the file system, if it is not fragmented in the FAT table.
When fsck tried to do it on the whole file system; it may be much better to just reinstall file by file pending on checksum fidelity alone.