Solved

Boot fails, EXT2-FS Warning

Posted on 1997-04-28
3
265 Views
Last Modified: 2013-12-15
I am no longer able to boot linux

I tried to boot and it appears that e2fsck ran and tried to fix
something.  It failed and the system hang.

Subsequent reboot attemps resulted in the following just after the
partition check...

   EXT2-FS Warning (device 03:02): ext2_free_inode: bit already cleared
   for inode 43047

This message is repeated twice, then it hangs.  Attemps to boot from
floppy result in something similar.

Finally I tried a boot/root pair of floppies from Slackware 3.0
which succeeded.  fdisk shows everything just as it should be
as far as I can tell.  Moving on to mkswap I get

   invalid flag 0000 of partition table 4 ...

There is another error message that seems to flash by quickly when
running SETUP, and when mounting my root partition that I haven't
been able to read before its off the screen.

Other data points:

   - LILO seems to be ok.
   - My DOS partition appears undamaged
   - partition info

        Device  System
         hda1      DOS  C:
         hda2    LINUX  /
         hdb1      DOS  D:
         hdb2     SWAP
         hdb3     SWAP
         hdb4    LINUX  /junk

Any ideas?  How does "device 03:02" map to my hard disks and/or
partitions?  I'm hoping to save the contents of those linux partitions.

(speaking to self) I must back up more frequently ...

Please mail replies to slittle@nortel.ca

Thanks

Scott
0
Comment
Question by:slittle
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 3

Expert Comment

by:pc012197
ID: 1627289
Device number 3 is the first IDE controller. 03:02 is partition #2 of the master on the first controller, i. e. /dev/hda2.

Since /dev/hda2 is your root partition, I suppose there is a serious problem with one of the more important files. Do the Slackware boot/rootdisks mount /dev/hda2 successfully? Then you should be able to make a backup copy.

Another hint: if you're going to re-install Linux, split the system into more partitions. Use a small partition for /, bigger partitions for /var, /usr and /home. That way, chances are better that no important files are destroyed when something happens.

0
 
LVL 2

Accepted Solution

by:
dux earned 100 total points
ID: 1627290
If you really want to recover something from your linux partition, try to boot from floppies and mount partitions unchecked.

mkdir /mnt/linux1
mount /dev/hda2 /mnt/linux1
mkdir /mnt/linux2
mount /dev/hdb4 /mnt/linux2

then copy your files and reinstall linux.
0
 

Author Comment

by:slittle
ID: 1627291
I was ultimatly able to fix the filesystem on that partition.
There are two ways to do this.

1) Slakeware installation requires a boot/root floppy disk pair.
   What I didn't know when I posted my question is that it is also
   possible to create a boot/rescue disk pair (look for rescue.gz
   amongst the root disks).  The rescue disk includes e2fsck which
   was able to fix my filesystem problems.

2) If you require even more extensive repair tools, install a second copy
    of linux into another partition.  I found that I could temporarily trash
   my swap partition for this purpose.  The 16M partition was sufficient
   to install slackware's A disk series and gave me a more complete set of
   tools with which to debug my problem.  If you take this road I suggest
   that you ask slakeware's setup program to create a boot floppy for your
   second linux installation rather than reinstalling LILO.  Also remember to
   restore your swap partition before you reboot the repaired primary linux
   installation.
0

Featured Post

Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
Fine Tune your automatic Updates for Ubuntu / Debian
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

724 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question