LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   "Root has been mounted x times without checking. Check forced." (https://www.linuxquestions.org/questions/linux-newbie-8/root-has-been-mounted-x-times-without-checking-check-forced-781589/)

lupusarcanus 01-19-2010 03:15 AM

Well, I'm a fanboy but...

JFS check itself every boot. They are amazingly fast, less than second.

Whats great about this?

No more problems, no more hour waits, no more "Forced Checks"...

It works, works fast, and is stable.

if you are interested in File Systems, check it out ;)

hatzfeld 07-21-2010 05:07 AM

Root has been mounted x times without being checked. Check forced.
 
Peter wrote about forced fsck checks during system boot:

Quote:

Originally Posted by Peterken (Post 3823134)
beside from increasing the number of start-ups after which this check runs, is there another way to avoid this?
Isn't there a way to do a check after the os has been loaded?

For my SuSE 11.1 system (probably also for other recent SUSE (!) systems) I have found a way:

Edit as root both (!) files /etc/init.d/boot.rootfsck and /etc/init.d/boot.localfs by adding after the line

FSCK_RETURN=$?

this line:

if test $FSCK_RETURN -eq 32 ; then FSCK_RETURN=0; fi

Now when you are annoyed by watched the "check forced" message just press Ctrl-C.

Bye,
Hatto

johnsfine 07-21-2010 07:48 AM

How hard would it be to make a check of the / partition occur by user option on shutdown rather than automatically on boot?

A few details about what to edit/install for one of Mepis, Debian or Ubuntu would greatly appreciated.

During shutdown, the / partition is ultimately unmounted. Is there a way to check some flag at that point and then do the file system check before the true shutdown?

I'm sure there is a way (but too complicated for me to work out all the details) to:
1) Have a menu option next to the ordinary shutdown option that claims to be "shutdown after checking fs" but actually sets some flag and restarts the system.
2) During restart if that flag is set, check the fs, clear the flag, and shutdown.

That would appear to the user to be a file system check on shutdown even thought it would really be on startup.


All times are GMT -5. The time now is 02:29 AM.