LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-09-2011, 04:08 PM   #1
mansour
Member
 
Registered: Nov 2010
Location: Toronto, Canada
Distribution: Ubuntu 10.04 Lucid Lynx - Ubuntu 10.10 notebook - Debian 5.08 - Win XP
Posts: 172

Rep: Reputation: 2
How to run system file checker on ubuntu 10.10 without damaging the system


Hello:


I am getting occasional errors during the boot process.
One at the beginning and one or two when I switch to single user mode.I 'd like to run the system file checker to fix any possible errors.But when I run fsck in the terminal I get the message:

Code:
mansour@ubuntu-notebook:~$ fsck
fsck from util-linux-ng 2.17.2
e2fsck 1.41.12 (17-May-2010)
/dev/sda5 is mounted.  

WARNING!!!  The filesystem is mounted.   If you continue you ***WILL***
cause ***SEVERE*** filesystem damage.

Do you really want to continue (y/n)?

mansour
 
Old 04-09-2011, 04:17 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
touch /forcefsck
reboot
 
Old 04-09-2011, 04:19 PM   #3
serafean
Member
 
Registered: Mar 2006
Location: Czech Republic
Distribution: Gentoo, Chakra
Posts: 997
Blog Entries: 15

Rep: Reputation: 136Reputation: 136
Hi, there are three methods :
  • Create a file called forcefsck in the base of the root partition. "touch /forcefsck" should o the trick.
  • Pass the -F option to the shutdown program. "shutdown -rF"
  • Boot a livecd, an run fsck on the right partition from there (quite a hassle to do)
All commands are to be run from command line. Choose which suits you

As to the root of your problem : what errors?

Serafean
 
Old 04-09-2011, 04:46 PM   #4
mansour
Member
 
Registered: Nov 2010
Location: Toronto, Canada
Distribution: Ubuntu 10.04 Lucid Lynx - Ubuntu 10.10 notebook - Debian 5.08 - Win XP
Posts: 172

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by serafean View Post
Hi, there are three methods :
  • Create a file called forcefsck in the base of the root partition. "touch /forcefsck" should o the trick.
  • Pass the -F option to the shutdown program. "shutdown -rF"
  • Boot a livecd, an run fsck on the right partition from there (quite a hassle to do)
All commands are to be run from command line. Choose which suits you

As to the root of your problem : what errors?

Serafean


Hello:



I ran the first option as mentioned by previous poster.
touch /forcefsck
reboot



but I am still getting an error at the beginning of my boot process.
It goes very fast and I can't write it down for that reason.


mansour
 
Old 04-09-2011, 06:37 PM   #5
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Is it in the output of "dmesg" after you boot?
 
Old 04-09-2011, 06:59 PM   #6
mansour
Member
 
Registered: Nov 2010
Location: Toronto, Canada
Distribution: Ubuntu 10.04 Lucid Lynx - Ubuntu 10.10 notebook - Debian 5.08 - Win XP
Posts: 172

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by AlucardZero View Post
Is it in the output of "dmesg" after you boot?
Hi:


I am not sure it is something like this:


XXXXXXX Asus notebook failing to call WCP..

It goes very fast I can't see what is it?


mansour
 
Old 04-09-2011, 07:07 PM   #7
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Is the error message in the output of "dmesg" or the contents of /var/log/syslog after you boot?
 
Old 04-09-2011, 07:14 PM   #8
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
Depending on the time in the bootprocess when the message comes up, you may look into the /var/log/messages file if you can find it there.

try
Code:
grep -i wcp /var/log/messages
but if the message comes at the very beginning of the bootprocess you'll not find it in the logfile since the logging starts in the moment when the rootfilesystem is mounted.

Markus
 
Old 04-09-2011, 08:36 PM   #9
mansour
Member
 
Registered: Nov 2010
Location: Toronto, Canada
Distribution: Ubuntu 10.04 Lucid Lynx - Ubuntu 10.10 notebook - Debian 5.08 - Win XP
Posts: 172

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by AlucardZero View Post
Is the error message in the output of "dmesg" or the contents of /var/log/syslog after you boot?

I am not sure, it is the second message at the boot process.


mansour
 
Old 04-09-2011, 08:38 PM   #10
mansour
Member
 
Registered: Nov 2010
Location: Toronto, Canada
Distribution: Ubuntu 10.04 Lucid Lynx - Ubuntu 10.10 notebook - Debian 5.08 - Win XP
Posts: 172

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by markush View Post
Depending on the time in the bootprocess when the message comes up, you may look into the /var/log/messages file if you can find it there.

try
Code:
grep -i wcp /var/log/messages
but if the message comes at the very beginning of the bootprocess you'll not find it in the logfile since the logging starts in the moment when the rootfilesystem is mounted.

Markus

Code:
mansour@ubuntu-notebook:~$ grep -i wcp /var/log/messages
mansour@ubuntu-notebook:~$
The message comes at the very beginning of the bootprocess.


mansour
 
Old 04-09-2011, 11:41 PM   #11
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Quote:
Originally Posted by mansour View Post
I am not sure, it is the second message at the boot process.
Well did you look???

And on Ubuntu it's /var/log/syslog, like I've been saying. messages has a lot less than on RHEL-based distros.

We can't be much help without the exact error message.
 
Old 04-10-2011, 02:58 AM   #12
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
Quote:
Originally Posted by mansour View Post
The message comes at the very beginning of the bootprocess.

mansour
well, then you will not find the message in the logs.

Markus
 
Old 04-10-2011, 04:41 AM   #13
tommcd
Senior Member
 
Registered: Jun 2006
Location: Philadelphia PA USA
Distribution: Lubuntu, Slackware
Posts: 2,230

Rep: Reputation: 293Reputation: 293Reputation: 293
Quote:
Originally Posted by mansour View Post
I am getting occasional errors during the boot process. ...
I am not sure it is something like this:
XXXXXXX Asus notebook failing to call WCP..
Are you having any problems with the computer or the operating system?
Many errors that are displayed during boot are harmless. If it is not causing you any problems then it is likely safie to ignore these error messages.

Last edited by tommcd; 04-10-2011 at 04:45 AM.
 
Old 04-10-2011, 11:04 AM   #14
mansour
Member
 
Registered: Nov 2010
Location: Toronto, Canada
Distribution: Ubuntu 10.04 Lucid Lynx - Ubuntu 10.10 notebook - Debian 5.08 - Win XP
Posts: 172

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by AlucardZero View Post
Well did you look???

And on Ubuntu it's /var/log/syslog, like I've been saying. messages has a lot less than on RHEL-based distros.

We can't be much help without the exact error message.
Hi AlucardZero:


When you say the output of "dmesg", where would I find that output exactly?
Or should I run dmesg in command line? It is the second message that I see at the beginning of boot process.


The /var/log/syslog is a huge amount of data, I am trying to see how I could post some of it here. But has to be relevant content to our discussion here, or just would be unacceptable to the forum to post all that here.



mansour
 
Old 04-10-2011, 11:07 AM   #15
jmc1987
Member
 
Registered: Sep 2009
Location: Oklahoma
Distribution: Debian, CentOS, windows 7/10
Posts: 893

Rep: Reputation: 119Reputation: 119
Quote:
Originally Posted by serafean View Post
Hi, there are three methods :
  • Pass the -F option to the shutdown program. "shutdown
Serafean
The -F option don't work on Ubuntu for some reason. Devs didnt like it I guess lol. The best way IMO is to touch /forcecheck
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
On-line system vulnerability checker sites Completely Clueless Linux - Security 3 03-25-2009 06:16 AM
Linpus Fedora after saving files to file system, CAN'T open FILE SYSTEM from desktop! remiwa Fedora 2 01-07-2009 07:28 AM
system file checker jessj SUSE / openSUSE 2 05-28-2005 06:04 AM
System file checker for mandrake GlennsPref Mandriva 6 12-29-2004 02:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration