Re: FS Error



W. Watson wrote:

Aragorn wrote:

On Friday 17 February 2006 02:09, W. Watson stood up and spoke the
following words to the masses in /comp.os.linux.misc...:/


I'm having trouble booting. I had to power down my machine to get out
of a hang. Something is not happy with the fs. I get (RH Linux 9]:

Contains fs with errors. Check forced.
Inode xxxx has illegal blocks.
UNEXPECTED CONSISTENCY. RUN fsck MANUALLY
(i.e., w/o -A or -P)



That must have been one Hell of a hang and one Hell of a power-off... Was this a /reiserfs/ filesystem or an /ext3?/ I'm asking because it
seems that /reiserfs/ - _if_ it screws up - tends to cause filesystem
corruption much rather than actual data loss, as opposed to e.g. /XFS./


So do I enter just fsck at the command prompt or with some other
parameters? I'm logged on as root.



Yes and no... It all depends on what filesystem we're talking about
here, by which I mean what directory it is mounted on. If it's the
root filesystem, then you're better off booting from a Live CD or an
install CD in "rescue mode", and running (the correct variant of)
/fsck/ from there.

If it's not the root filesystem, then boot up in single-user mode first. This will have only the root filesystem mounted. _Caution:_ This is
not the case when _dropping_ to runlevel 1 from within a normal working
environment. It is best that the damaged filesystem is *not* mounted when checked -
you would risk further filesystem corruption - *especially* *not* in
read/write mode.

Never heard of reiserfs. I'm pretty sure it's ext3. I'm not well versed in Linux, but how do I tell if it's the root file system at this point? There's only one 13G HD on the system. I'm in single user mode. Forced there by the circumstances of the problem. I do have Knoppix on a CD.
Well, on to new problems. I used fsck -t ext3 -V -r -a, and answered all questions with yes. I meant to type -A but so be it. Both boots, linux and rtlinux, are up. Possibly I lost something in the app install, since I saw a message about 'delete missing in smodules.o', and that is an app module. Well, onward. If I run into app problems, I'll re-install it. If the problem s are worse, I get to start over.


Wayne T. Watson (Watson Adventures, Prop., Nevada City, CA)
(121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
Obz Site: 39° 15' 7" N, 121° 2' 32" W, 2700 feet
--
"When you get to the end of your rope, tie a knot
and hang on." -- Franklin D. Roosevelt

Web Page: <home.earthlink.net/~mtnviews>
.



Relevant Pages

  • Re: FS Error
    ... That must have been one Hell of a hang and one Hell of a power-off... ... If it's not the root filesystem, then boot up in single-user mode first. ... I'm not well versed in Linux, but how do I tell if it's the root file system at this point? ...
    (comp.os.linux.misc)
  • Re: Can a user app hang a *IX system?
    ... > I have a situation where our programcompletely hang the system. ... > OS is MontaVista Embedded Linux on a xscale big-endian cpu. ... > Our app starts and hangs, and also hangs the system, can't ctrl-brk the ... driver hang the motherboard. ...
    (comp.unix.programmer)
  • Re: System Hang...problem is HDD or OS.
    ... what can i do my pc have a hang problem. ... You can even get a copy of Prime95 that runs under Linux, ... If you have two cd/dvd drives, a writer and a ROM, boot the live cd from ... It has a collection of tools for testing hard drives, ...
    (microsoft.public.windowsxp.hardware)
  • Re: read-only linux and /etc
    ... >possible, so I intend on going for the read-only linux configuration, ... Most Linux distributions start with the root filesystem mounted ro ... you might mount a rw filesystem on /etc instead of remounting /. ...
    (comp.os.linux.security)
  • serioup problem after running fsck
    ... When I restarted My linux with Linux ... " Checking root filesystem ... Eoor reading block 35063145 (Attempt to read block from filesystem ... Thanks for suggestion. ...
    (RedHat)