LinuxQuestions.org
Visit Jeremy's Blog.
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 06-27-2008, 01:35 PM   #1
kayaksport15
LQ Newbie
 
Registered: Jun 2008
Posts: 3

Rep: Reputation: 0
Question what to do when automatic file system check of the root filesystem fails?


ok...so my Gateway tablet laptop is running Ubuntu...im pretty sure it's the second latest one... my computer just started running full system checks before it would start up all the way and now it fails claiming that a "manual fsck (file system check) must be performed, then the system restarted. the fsck should be performed in maintenance mode with the root filesystem mounted in read-only mode
*the root filesystem is currently mounted in read-only mode. a maintenance shell will now be started. after performing system maintenance, press control-d to terminate the maintenance shell and restart the system."

how do i perform a manual fsck and what can i do to prevent this from happenning again in the future???

oh yeah... it's also saying that "the program 'apt-get' is currently not installed. you can install it by typing apt-get install apt" but when i type that in it just repeats itself... what can i do for that?

Last edited by kayaksport15; 06-27-2008 at 01:44 PM.
 
Old 06-28-2008, 06:17 AM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
When the computer screen shows that you are already in maintenance mode you should also already be logged on as root. Then you simply run the fsck command on the system partition. For example if the system partition is /dev/hda1 you would enter the following command.
Code:
fsck -y /dev/hda1
If the fsck command says that it doesn't support the -y option then just retype the command without the -y option. More information about fsck can be found in the manual pages. You can read the fsck manual page by entering the man fsck command.
Code:
man fsck
Once you have done this then your system should not require you to do this very often. If you find that you have to do this frequently then you may have a hardware problem or you may be doing something such as turning off the power without shutting down Linux properly. Either way if you see this requirement to run fsck manually on the system partition more than once a year then something else is wrong. Most people would never see this or they would see it if their disk drive was failing.

If your Linux system does not have apt-get then you will have to install it from the CD-ROM that you used to install Linux. You probably will have to boot the CD-ROM and find some sort of system repair option. First see if you have apt-get by using the find command.
Code:
find / -name apt-get
If the find command lists apt-get somewhere such as /usr/bin/apt-get then your problem is probably that the directory containing apt-get is not in your path. If the find command does not list apt-get anywhere then it is probably missing.

Last edited by stress_junkie; 06-28-2008 at 06:26 AM.
 
Old 07-08-2008, 01:55 AM   #3
kayaksport15
LQ Newbie
 
Registered: Jun 2008
Posts: 3

Original Poster
Rep: Reputation: 0
Question ummmm... it didn't work

sooo... i entered the fsck -y /dev/sda1 but it didn't work...so what should i do? it just opens up to the same page. i think i will need to get the ubuntu cd to get apt get... can i get one sent to me possibly?
 
Old 07-08-2008, 02:18 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,314

Rep: Reputation: 1032Reputation: 1032Reputation: 1032Reputation: 1032Reputation: 1032Reputation: 1032Reputation: 1032Reputation: 1032
Try remounting it as rw first
Code:
mount -o remount,rw /
 
Old 07-08-2008, 07:31 AM   #5
resetreset
Senior Member
 
Registered: Mar 2008
Location: India
Distribution: Dynebolic, Ubuntu 10.10
Posts: 1,320

Rep: Reputation: 51
Quote:
Originally Posted by syg00 View Post
Try remounting it as rw first
Code:
mount -o remount,rw /
No i dont think youre supposed to mount.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Root file system check and superblock now corrupt rooman Linux - Newbie 4 03-14-2008 02:20 AM
Forced Root File System Check? snobird Linux - Newbie 5 11-20-2006 10:17 PM
filesystem check fails during boot quinnk Linux - Software 1 08-01-2004 09:27 AM
cannot login because file system check fails because of bad magic number trutnev Linux - Newbie 1 03-23-2004 06:44 PM
File-system check on boot fails-- ALSA hang vivalinux Mandriva 6 11-25-2003 08:24 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration