LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Enterprise (https://www.linuxquestions.org/questions/linux-enterprise-47/)
-   -   fsck alternative (https://www.linuxquestions.org/questions/linux-enterprise-47/fsck-alternative-583577/)

harshala09 09-10-2007 06:19 AM

fsck alternative
 
hi all,...


im new to UNIX..and..

when i turn on my PC, it asks me to run fsck command. it is straining to run manually for longer time.

Kindly let me know of any other command that automatically does this operation.


im using RHEL.


thank you.....

ilikejam 09-10-2007 08:13 AM

Hi.

If it's asking you to fsck, then the machine probably wasn't shut down cleanly. How do you shut your machine down?

Dave

harshala09 09-11-2007 05:26 AM

by the shut down option in taskbar

PTrenholme 09-11-2007 08:47 AM

Is fsck just taking a long time to run, or is it dropping you into a terminal shell with instructions to "run fsck manually?" If your problem is the "terminal shell/run manually" one, then the "quick check" run by fsck when the system boots has found some errors in you hard drive(s), and you really need to fix them before proceeding. So you should just run fsck manually to correct any errors it finds. (If it can -- sometimes the errors are that the drive is failing and needs to be replaced.)

On the other hand, if you're complaining that the "quick check" is taking too long, it may just be that fsck is running a "complete check" instead of the usual "quick check." Typically, when you create an ext2 or ext3 file system, fsck is told to run a "complete" check every 20 or 30 times the file system is mounted. (You can change the "complete check" frequency with the tune2fs command.) Let it run to completion and you should not be bothered by fsck until the next "complete check" is run.

Of course, if you have a few hundred partitions attached to you system, even a "quick" fsck can take a long time. But, if you've got that much hardware attached to you system, you really need to read a good book on Linux system administration or take some classes on administration.


All times are GMT -5. The time now is 06:43 AM.