Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 02-10-2004, 07:09 PM   #1
LQ Newbie
Registered: Jan 2004
Posts: 6

Rep: Reputation: 0
fsck failed

For a few years I've been happily running Caldera Open Linux 2.4 (kernel 2.2.14) which was pre-installed on an IBM ThinkPad A21m G1U 2628. Besides the root account we have two user accounts. I also run vmware when I need to use Windows.

Today my wife (user 2) experienced a power failure, not having noticed that the plug that brought the electricity from the wall to the machine was almost out, and in fact it did come out. (We have never used the battery.) She reattached the power plug.

She rebooted and got a failure on check file systems. As root I moused around and tried to figure out the problem. I asked for a description of file systems and got this:

Filesystem 1k-blocks Used Available Use% Mounted on
/dev/hda1 4054179 2103224 1783125 54% /
devpts ditto ditto ditto 54% /dev/pts
/proc ditto ditto ditto 54% /proc
/dev/hda5 ditto ditto ditto 54% /home
unknown: (pid693) do ditto ditto 54% /auto

Unable to do anymore (I am a newbie and always will be), I used the halt command to get out. At the end of the shutdown process this message appeared:

fsck failed (see output on tty11!)
Please repair manually and reboot. Please note that the root file system is currently mounted read-only. To remount it read-write:

# mount -n -o remount,rw /

So I got the unsuccessful reboot going again and gave that command at the command line. That by itself did not solve the problem. I also hunted around for the file tty11. I found something called that in the /dev directory. I used vi to try to see it, but it came up empty.

Any suggestions? I'd hate to have to reinstall everything.

Bob Hueckstedt
University of Virginia
Old 02-10-2004, 11:48 PM   #2
Registered: Sep 2003
Location: chikyuu (E103N6)
Distribution: Redhat 8.0 (2.4.25-custom), Fedora Core 1 (2.4.30-custom)
Posts: 357

Rep: Reputation: 30
Some ideas:

fsck should NOT be run when the disk is mounted.

maybe you can try booting in rescue mode with installation cd or boot to single user mode.

Just some suggestions.
Old 02-11-2004, 06:34 AM   #3
Registered: Oct 2003
Location: Tucson, AZ
Distribution: Linux Mint
Posts: 194

Rep: Reputation: 32
tty11 is a device (that's why it's in the /dev dir). Specifically it's a virtual terminal ("teletype" iirc). You access each virtual terminal via CTRL+ALT+F(n). In this case it looks like you'd be able to see the output by pressing CTRL+ALT+F11. That seems kinda odd though, considering F7-F12 are usually reserved for X sessions.
Old 02-13-2004, 08:17 PM   #4
LQ Newbie
Registered: Jan 2004
Posts: 6

Original Poster
Rep: Reputation: 0
Problem resolved.

For anyone who may run into the same or a similar problem. Here's what happened.

When I turn on my machine (IBM ThinkPad A21m G1U 2628) Linux (kernel 2.2.14 Caldera OPen Linux 2.4) begins its boot, in this fashion:

loading kernel
booting kernel

Loading default modules:

Minimum system preparations:
Checking filesystems FAIL

At this point the user is asked for the root password, which I gave. This gives me the command line.

I cd'ed into /dev, and using the suggestion from one of the posts above I gave the command CTRL-ALT-F11. (By the way, the reason why X may be involved here is that my wife was in the middle of using Star Office when the power went off.) That turned up this:

[/sbin/fsck.ext1 -- /] fsck.ext2 -a/dev/hda1
/dev/hda1: clean, 122882/1050624 files, 2244818/4195768 blocks
[/sbin/fsck.ext2 -- /home] fsck.ext2 -a/dev/hda5
/dev/hda5 contains a file system with errors, check forced
/dev/hda5: Duplicat or bad block in use!
/dev/hda5: Duplicate blocks found. . . invoking duplicate block passes.
Pass 1B: Rescan for duplicat/bad blocks
/dev/hda5: Duplicat/bad block(s) in inode 2067:/dev/hda5: 9000/dev/hda5:
/dev/hda5: Duplicat/bad block(s) in inode 2083:/dev/hda5: 9000/dev/hda5:
/dev/hda5: Pass 1C: Scan directories for inodes with dup blocks.
/dev/hda5: Pass 1D: Reconciling duplicate blocks
/dev/hda5: (There are 2 inodes containing duplicat/bad blocks.)
/dev/hda5: File /merjian/.Xauthority (inode #2083, mod time Tue Feb 10 14:12:33 2004)
has 1 duplicat block(s), shared with 1 file(s):
/dev/hda5: /merjian/.xsession-errors (inode #2067, mod time Tue Feb 10 14:25:21 2004)
(i.e., without -a or -p options)
/proc is empty (not mounted?)

So, I ran fsck.ext2 /dev/hda5. I answered the questions with the default yes answer and all worked out.

A question: Is it possible, without fouling things up, simply to delete (now) the .xsession-error files?

Bob Hueckstedt
Old 02-15-2004, 02:11 AM   #5
Registered: Oct 2003
Location: Tucson, AZ
Distribution: Linux Mint
Posts: 194

Rep: Reputation: 32
I don't see why not; .xsession-error files should just be plain text logs.


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
fsck failed laonei Linux - Newbie 9 10-12-2005 10:27 AM
fsck failed on raid 5 setup Sinn Linux - Newbie 0 09-24-2005 05:25 AM
NEW KERNEL = fsck failed on ext3 dezza Linux - General 0 08-28-2005 01:53 PM
fsck failed blabla Linux - General 2 04-26-2005 06:16 PM
fsck.ext3 failed.... frankietomatoes Linux - General 1 12-02-2002 03:34 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:12 PM.

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