Hello everyone,
I had found my machine to be unbootable this morning
I solved the problem but thought if anybody else gets in the problem in future he/she should get the answer just by searching the linuxquestions.org
The kernel got uncompressed and it showed following error and refused to boot in the single user mode also.
The error:-
EXT3fs: error loading journal.
mount: error 22 mounting ext3
ERROR opening /dev/console!!!!:2
error dup2'ing fd of 0 to 0
error dup2'ing fd of 0 to 1
error dup2'ing fd of 0 to 2
switchroot: mount failed: 22
Kernel panic: Attempted to kill init!
___________________________________________
What I did:-
I have one more linux (differnet distro ) installed on the same machine . I got console using that distro and then
I fired following command:
tune2fs -jf /dev/hdc2
#(hdc2 is where my / partition on that distro resides)
and voila everything was ok!
If you want to use rescue mode:-
pop up an installation disk and enter
linux rescue
#(most distributions support that)
then without chrooting give the command:
tune2fs -jf /dev/hdc2
The problem was with journal and with the above command i removed the journal and added a new.
Aniruddha