[BL] hard drive/fsck problem
Sindi Keesan
keesan at iamjlamb.com
Thu Jun 17 11:43:10 EDT 2004
The inodes problem discussed below apparently resulted from my powering
off the computer without rebooting, because I could not reboot when I got
into a sort of endless loop of error messages when untarring which I could
not even stop with Ctrl-C. When I looked at /usr/src/linux-2.2.16 there
were a lot of 0 length subdirectories before I fixed things.
I finally figured out that I have BL2 installed not to /dev/hdb3 but
/dev/hdb2, and I am running e2fsck /dev/hdb2 now. It asks me about things
like
Inode 41077 has illegal block(s). Clear<y>? Yes
Indoes 41080, i_size is 12915, should be 21504. Fix<y>? Yes
Too many illegal blocks in inode 41081. Clear inode<y> Yes
I answered y about 100 times and it is restarting e2fsck from the
beginning.
Still finding errors. Duplicate blocks found in two inodes.
Reconciling duplicate blocks. Clone/duplicate bad blocks? yes
Already reassigned or cloned.
Checking directory structure. Clear a deleted/unused node. yes
(Many of these, all, not surprisingly, in /usr/src/linux-2.2.16/include)
I hit the enter key 66 times.
Free inodes count wrong for group #117 (and many other groups)
Directories count wrong.... FIXED
******FILE SYSTEM WAS MODIFIED******
Rebooting and attempting to boot BL2 from hard drive again, now that it is
fixed. Booting Win98 DOS from floppy disk so that linux will boot since
it won't boot on this computer if I start with DR-DOS.
Can't find any files in c: now, strange. I have BL2 in D, luckily.
I have had similar problems before with a hard drive set up with DR-DOS
and then booted with Win98 DOS.
I have /usr/src/linux (as before) and also /usr/src/linux-2.2.16, with
subdirectories and files in them. I might risk untarring the kernel
source code tar file again since I know how to fix problems now, but I can
probably just delete it since the source code appears to be all there.
In /include there are various asm- directories. Can I safely delete
asm-alpha -arm -m68k -mips s390 spard sparc64 and keep just asm
asm-generic and asm-i386?
Do I need both /linux and /linux-2.2.16? They have identical
subdirectories in them and are both 7462 in size. Would just the latter
be enough?
BL3 has apparently rescued BL2, but would not have worked for me on this
particular computer from C: because of my problem in not being able to
boot linux from DR-DOS and having to boot from a Win98 boot disk, which
won't recognize c: when it is set up with DR-DOS.
Steven, thanks for all the useful tools, and especially for making BL3
usable from D:. (I have not yet tried the floppy disk version).
On Thu, 17 Jun 2004, Sindi Keesan wrote:
> I read about fsck and followed the instructions to run e2fsck on an
> unmounted file system (using BL3 to check the BL2 partition), both with
> and without -a (automatically fix?) option. BL2 ramdisk did not have
> fsck/e2fsck so I could not use that. The warning message when I tried to
> boot BL2 hard drive said to run e2fsck without the -a option. It also
> said to reboot immediately, which implies that I am not supposed to use
> BL2 to check itself.
>
> Both times it checked if /dev/hdb3 was mounted (it was not) and then told
> me 'clean, 11/226440 files, 29096/905184 blocks'.
> I thought this meant it had fixed the inode problem but it had not.
> BL3 does not have a lot of help on e2fsck (part of busybox?).
> Switch: -l bad_blocks-file - would this help?
> The problem is 'wrong free inode count' and something about illegal
> blocks.
>
> This computer, again, won't boot linux when I first boot into DR-DOS so I
> boot DOS from a Win98 boot disk. (The other computer at this location
> won't run Xvesa if I boot from Win98 unless I hit F5 to bypass system
> files, and booting from DR-DOS did not help.) Probably irrelevant to the
> inode problem. I have three computers of the same model with the same
> problem in linux.
>
>
>
> On Tue, 15 Jun 2004, Sindi Keesan wrote:
>
> > While trying to get the linux source code for 2.2.16 into /usr/src/
> > on my second computer (the first would not recognize the CD-ROM drive),
> > after installing bzip2 and bunzip2-ing the file from the source CD
> > (linux-2.2.16-tar.bz2 copied to the hard drive first), I did tar
> > on the resulting 75MB file (up from 13M) and was getting an occasional
> > error (reset? two lines of error, it resumed). Then I went away and came
> > back to find a screen full of error messages about reset and status and
> > command and I could not do Ctrl-C. Something wrong with hdb so I powered
> > off and tried to go back into linux.
> >
> > Linuxz contains a file system with errors, check forced.
> >
> > It got slightly into the check and gave up and told me to run fsck
> > manually. When I typed root to login there were a lot of error messages
> > about EXT2 error Wrong free inode count (followed by various numbers).
> >
> > Before logging in (I think) there was some complaint about
> > Inode 41067 has illegal blocks.
> >
> > I dutifully typed fsck without any switches but that did not help. I have
> > no idea what fsck is supposed to do or how to use it.
> >
> > This now happens every time I try to run linux.
> >
> > What got messed up? Is it a bad hard drive? Just a software problem?
> > Can I fix this? Only half the source files got installed, even though I
> > saw the others go by on the list. the /net directory is 0, as is README.
> > Would it help to reformat and reinstall Linux on there again. Change hard
> > drives? Change computers?
> >
> > THis computer is the one that used to not boot linux half the time (unless
> > I booted from Win98 DOS or MS-DOS 6) but it now boots linux without any
> > complaints until the fsck/inodes thing. I tried to use the problem-free
> > one but it could not find the CD-ROM drive. (And now my keyboard drawer
> > just fell off again....)
> >
> > I was trying to compile the kernel module for a replacement ethernet card
> > but I can put back the original card to reinstall linux with as it uses a
> > more standard ethernet module. One problem leads to too many others.
> >
> > Any ideas welcome.
> > Sindi
> >
> > _______________________________________________
> > BasLinux mailing list
> > BasLinux at lists.ibiblio.org
> > http://lists.ibiblio.org/mailman/listinfo/baslinux
> >
>
> _______________________________________________
> BasLinux mailing list
> BasLinux at lists.ibiblio.org
> http://lists.ibiblio.org/mailman/listinfo/baslinux
>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: fsck.txt
Url: http://lists.ibiblio.org/pipermail/baslinux/attachments/20040617/d3e91446/attachment.txt
More information about the BasLinux
mailing list