I was reading an old sysadmin manual and it said to use the badblocks program to feed e2fsck with the -l parameter the bad cylinders, but newer "guides" are saying to use the -c switch instead.
I am unsure and cannot piece together the man pages or guides, an example situation:
What if I were diagnose that a server had a faulty filesystem (corrupted, or had bad blocks), how would I properly run the program (assuming an ext2/3 filesystem) in a way that will do as described?
How can I unmount the partition and run the check, if the e2fsck program is on that partition? I clearly do not understand the process in this.
I hope I am clear in what I am intending to do.