Linux no longer boots .. successfully.

TheVrolok

Lifer
Dec 11, 2000
24,254
4,090
136
So all of a sudden I'd boot to Linux and receive ths error:

CRC Error
System halted.

And then I'd reboot and it would boot up fine. It almost seemed to alternate between this error and normal booting.
But now all of a sudden I get:

invalid compression format (err=2)
System halted.

and then when I reboot I sometimes get it to start booting and then end up at this line:
Kernel panic: No init found. Try passing init command at. ...

Is there anything I can do now short of backing up the data partition and reformatting/reinstalling?
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
I'd check memory and stuff first, you might not need a reinstall and doing so might be worse if there is a hardware problem.
 

drag

Elite Member
Jul 4, 2002
8,708
0
0
Whenever I see CRC error I think of IDE drive errors.

But they tend to look like this:

hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
hda: dma_intr: error=0x84 { DriveStatusError BadCRC }

This can be caused by running crappy IDE cables (rounded cables, to long of cables, trying to run ATA 133 speeds on a 40 wire cable instead of a 80 wire cable, bent/smashed/damaged cables. etc etc).

They also can be caused by crappy IDE controllers. My k7s5a motherboard suffered from this years ago. There was a bug in the firmware that caused corrupted data when using the standard drivers for that chipset. The first solution was to run the drives with DMA access turned off. Which worked but slowed things down. The real solution was provided by updated kernel drivers. Now it works fine at the fastest speeds.

However all CRC means is that some error checking got triggered. CRC is a type or algorthim used in error checking. Used especially in hardware.

Something bad is happening to corrupt some data flowing and it can definately be caused by memory problems.

Check out memtest98 for a free memory tester....


What may be happening also is your harddrive is beginning to get realy screwed up and the MBR is being corrupted, or another part of the drive is being corrupted.

Also linux bootloaders work in stages. Lilo boots with stage 1, then goes to your linux partition and grabs stage2 to load that up. Some kernels use a initrd image to load up stuff like raid drivers and controller drivers so the kenrel can boot up into special hardware easier.

Now if one of those things are corrupt you can be getting the "invalid compression" error. The corruption could of been caused by the same problem that your experiancing with the "CRC error", which is likely hardware related. The "no init found" means that the kernel is unable access the root partition, or the root partition isn't what the kernel thinks it is.




NOW the following may be some fixes to try, depending on how comfortable you feel

The easiest possible fix, new memory:

I would try the memory tester first and see if that comes up with anything, let it run for a few hours. Any errors would point towards a bad memory.



Next try boot options:

Try booting up from boot prompt. Assuming that your using lilo, and your selection is named "linux" then try:

linux ide=nodma acpi=off apm=off

(ide=nodma turns off dma access and will improve the reliability of the data transfer of your drive buy slowing things down drasticly)

You can specify the root partition to by doing something like this:
linux ide=nodma root=/dev/hda2 ro



Next try to use/install a new kernel image(last ditch effort for me):

If you have a alternative or older kernel installed try to boot up using that, maybe the one your using is corrupted by something like a power surge, improper shutdown, or bad drive or something.

If that doesn't work, then I'd try to boot up with a boot cd like your installation CD or knoppix or trinity rescue disk.

Then download a new kernel package for your OS. Mount the HD installed root partition to your directory, copy the new kernel package to your mounted root partition. (mount any other partitions you may need to your root partition like if you have a seperate boot partition.)

Then use the "chroot" command to "change the root" of your command line to your harddrive's root. (chroot /place/were/you/mounted/your/drive/) and then install the kernel package using your rpm tools (or whatever your OS uses).

Then edit you grub.conf or menu.lst if your using grub to make the changes, or edit your /etc/lilo.conf and rerun lilo command to make a new entry in your boot prompt.

After that, exit out of chroot, umount all your partitions, reboot, pop out your boot disk and hope for the best.

Now maybe instead of going thru all the trouble of installing a new kernel image, maybe just rerunning lilo may help, if that's what you use. If your using grub you can try reinstalling that if you want.



To use chroot it's pretty easy. Boot up with your boot disk, then switch to a xterm or a virtual terminal (ctrl+alt+Fn were Fn = F2-F6)

Now the /dev/hda1 will change depending on which partition and drive your root partition is installed in.

mkdir /mnt/hdroot
mount /dev/hda1 /mnt/hdroot
(sometimes mount proc helps)
mount -t proc proc /mnt/hdroot/proc

then

chroot /mnt/hdroot/

Then your using your installed OS as your enviroment and you can run programs and even X windows (sometimes) as if you booted up from it.
 

drag

Elite Member
Jul 4, 2002
8,708
0
0
OH OH.

I forgot one BIG thing.

When you boot up with your boot disk, before you mount anything run fsck to check the state of your harddrive.

Read the man files for fsck

man fsck

then to check a partition's health do:

fsck /dev/hda1


You also have a e2fsck command specificly for checking the quality of ext2/ext3 partitions. Also special tools if your running reiserfs or xfs or other more exotic file systems.
 

TheVrolok

Lifer
Dec 11, 2000
24,254
4,090
136
I ran memtest which gave me no problems, I've also had XP running for about 3 days straight doing a lot of number crunching for me and not noticed any memory problems. So I reformatted my linux partitions and reinstalled.. first boot up.. CRC Error, System Halted. I really don't understand what to do now. Format the whole drive perhaps, I'd rather not have to reinstall Windows tho.
 

TheVrolok

Lifer
Dec 11, 2000
24,254
4,090
136
So I reformatted the drive, repartitioned, etc.. Linux booted just fine the first few times.. then .. that damned CRC error again. It has no problems booting with a diskette so I guess I could always use that too boot but I'd really rather not
 

thornc

Golden Member
Nov 29, 2000
1,011
0
0
Really strange issue.... are you certain you are not using some weird software in windows that may be messing with Linux's partition? Perhaps you should also consider install it LiLo on a floppy and use that to boot (assuming you have Lilo, since you didn't state the distro!!
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |