LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 12-09-2008, 02:35 PM   #1
tlesinsk
LQ Newbie
 
Registered: Dec 2008
Posts: 1

Rep: Reputation: 0
Question Problem: corrupt initrd, Ubuntu Intrepid won't boot.....


Hi all !

Sorry to step in with my crappy self-inflicted problem, but I really need some help on this one....

My laptop was recently rendered unworkable by a boot problem. I think I understand the problem by don't know where to start to fix it, so any help is *greatly* appreciated. Here we go:

I recently installed Kubuntu 8.10 Intrepid on my laptop using a net install. The problem is that the CD/DVD drive is dead (hardly ever used it anyway) and the BIOS ignores bootable USB drives. The only one I have that it would detect at all (but refuses to boot on) was an old 256MB one, on which I put the minimal debian/ubuntu network installer using unetbootin.

On the install I had before (Kubuntu 7.04 Feisty) I added an option in grub to boot on this stick and installed Intrepid that way. (I didn't want to go through all the incremental upgrades, and the 7.04->7.10 upgrade path was broken last week anyway...). As grub would crash when installing it, I asked the installer to put LILO instead. My hard drive is partitioned as

sda1 : /boot
sda2 : /
(then swap, home...)

SO -- just for you to get an idea of the mess I'm handling...

After the install, i had problems with the drivers for my wireless (RaLink RT2500), so I decided to "manually" compile another version of the driver (RT2500 legacy from CVS). I *think* this is the source of my
problem. After restarting the box, the boot sequence would end up with the following messages (copy-typed by hand...)

[ 2.048095] RAMDISK: Compressed image found at block 0
[ 2.394008] invalid compressed format (err=2)
[ 2.447976] VFS: Cannot open root device "sda2" or unknown-block(0,0)
[ 2.448054] Please append a correct "root=" boot option; here are the available partitions:
[ 2.448131] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

It seems that the init ramdisk image got corrupt, which prevents the kernel from having the module(s) necessary for accessing the hard drive and mounting the boot partition. The problem is, I have no other way to boot the box. The only way to solve this that I could think of are:

1- Make lilo boot another kernel. I have two kernels installed in my /boot, the other one might be working, but it's not in lilo.conf. Is there a way to boot it from the LILO boot prompt ?
2- Make lilo boot the aforementioned flash drive, same question...
3- Put the hard drive in an external enclosure and use another box to fix the initrd, but I don't really know how to do it.

Any ideas/comments/advice ?

Thanks in advance !

T.
 
Old 12-10-2008, 09:16 AM   #2
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766

Rep: Reputation: Disabled
Try to boot in recovery mode (single user) first and add a new kernel with apt-get.

If that is not possible, then
Try to install grub to the mbr of the hard disk using super grub disk on another machine and use the command line interface to boot the correct kernel
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ubuntu intrepid wireless not connecting roman5x3 Linux - Networking 3 11-06-2008 05:30 AM
LXer: The Perfect Server - Ubuntu Intrepid Ibex (Ubuntu 8.10) LXer Syndicated Linux News 0 11-02-2008 05:10 PM
LXer: Simple Guide How to Upgrade Ubuntu 8.04 (Hardy Heron) to Ubuntu 8.10 (Intrepid LXer Syndicated Linux News 0 10-31-2008 10:50 AM
LXer: Firebird 2.1 in Ubuntu 8.10 Intrepid Ibex LXer Syndicated Linux News 0 05-30-2008 07:30 PM
Can't boot from external USB HDD - initrd problem? RobF Slackware - Installation 2 08-07-2006 09:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 05:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration