LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-21-2004, 06:59 PM   #1
OneManArmy
Member
 
Registered: Apr 2004
Location: Motherboard
Distribution: Debian GNU/Linux
Posts: 156

Rep: Reputation: 30
Kernel panic :( (plz help) !!!!!!!


Hello everybody,

Here is my system config.
1 HD partitioned as following

- win2000 pro (16 GB)
- linux swap (256 MB)
- unallocated space (1.5 GB)
- linux partition ext3 (2.8 GB)

and I already had debian up and running very well on the ext3 part.
What I wanted to do is to resize the ext3 part. by allocating the free
space (1.5 GB) to it.
I used the re-distrubuted free space tool in partition magic 8 and it finished
successfully. I rebooted my machine and here is what I got:

LI99999999999999999999999999
999999999999999999999999
999999999999999999999999

no LILO, no menus, nothing. I was shocked cuz I spent alot of time tweaking my linux system till I got it running perfectly.
So I had to boot from the debian(woody) cd and installed LILO once again in the MBR. Now I got the famous LILO menu with winNT,linux and linuxold.
Any choice gives the famous kernel panic :

Please append a correct "root=" boot option
Kernel panic: VFS: Unable to mount root fs on unknown-block

my 1st question : did the PM 8 corrupt the ext3 or something of that sort?
my 2nd question : somebody help me plzzzzzzzzz

thanx in advance .
 
Old 05-21-2004, 07:15 PM   #2
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 5.4, Mac OS 10.4 (tiger)
Posts: 1,005

Rep: Reputation: 79
Not being that good myself my advice might be a little weak but meh... when you say any option... does that include Win 2K? Since that would be strange as Lilo should load up 2K and ignore linux when you select that option. Also if you have it you could try Knoppix, use that to get into ext3 and check that all the root directory is still around for debian. If not then put the debain CD's back in and press the button to do a repair tho i dunno which one that is hee... but that might undo things that you have set up I believe... but it would work again hopefully.
 
Old 05-21-2004, 07:23 PM   #3
OneManArmy
Member
 
Registered: Apr 2004
Location: Motherboard
Distribution: Debian GNU/Linux
Posts: 156

Original Poster
Rep: Reputation: 30
I can boot win2k just fine when I choose winNt from the LiLo menu
but the kernel panic comes either when I choose linux
or linuxold.

Last edited by OneManArmy; 05-21-2004 at 07:24 PM.
 
Old 05-21-2004, 07:38 PM   #4
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,275

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
The kernel panic you see was because the Linux kernel could not read your root filesystem to launch the init program. You said you had the free space BEFORE the Linux partition. If so, is it possible that your Linux partition was /dev/hda4 before and is now /dev/hda3. I don't think Partition Magic should renumber the partitions, but then in my experience free space usually comes at the end of the disk. Check that the root option in /etc/lilo.conf matches what it actually is on the disk (you'll need to boot to your distro's rescue CD and mount the partition by hand.

Another possibility is that PM simply borked the partition. In that case, you might try to boot from the rescue CD and run a fsck on the affected partition. If it's not badly broken (just bad filesystem metadata or something), it's possible that a fsck might fix it.

Good luck!
 
Old 05-21-2004, 11:21 PM   #5
tsingming
LQ Newbie
 
Registered: Apr 2004
Location: China
Distribution: Debain(sarge with kernel 2.6.6)
Posts: 8

Rep: Reputation: 0
I am a chinese, maybe you understand what's i say
first change the directory the kernel source, for example:
#cd linux-2.6.6
#make menuconfig
select "Dvice Drivers->ATA/ATAPI/MFM/RLL support->"
you hat to select this "ATA/ATAPI/MFM/RLL support"
#make
#make modules
#make modules_instal
#make install
configure the boot manager
#reboot
Good lucky!
If not succes! please mail to youxia_2008@yahoo.com.cn
 
Old 05-22-2004, 12:42 PM   #6
OneManArmy
Member
 
Registered: Apr 2004
Location: Motherboard
Distribution: Debian GNU/Linux
Posts: 156

Original Poster
Rep: Reputation: 30
Thanx for all of ur replies. I got the problem finally solved.
For some reason when resizing the linux root partition
the PM messed up with the LILO location.........something
of that sort I dont knw exactly.
But what I have done is that I installed a new lilo
(by booting from the CD and choosing to write a new LiLo to
the MBR). and since the new lilo have fresh settings which
doesnt take into account the locations of my kernels.........etc.
so I obviously got a kernelpanic when I tried booting any of them.

which meant that if I can edit the lilo.conf I can get the problem
solved. So I booted from the debian CD and when getting the boot prompt
I typed: rescure root=/dev/hda3
which got me logged into my linux system.Then I opened a console session
and edited /etc/lilo.conf and added the following line initrd=/initrd.img ,saved
the file and lilo and reboot and finito
 
Old 05-22-2004, 10:47 PM   #7
tsingming
LQ Newbie
 
Registered: Apr 2004
Location: China
Distribution: Debain(sarge with kernel 2.6.6)
Posts: 8

Rep: Reputation: 0
Congratulation!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Kernel 2.4 in Zipslack (Waring: unable to open an initial console | Kernel Panic...) kurtamos Linux - General 2 05-10-2006 01:58 PM
kernel panic: try passing init= option to kernel...installation with Red Hat 9 kergen Linux - Hardware 1 09-30-2004 04:28 AM
Kernel panic puts me in a panic theeeg Linux - Software 2 07-31-2004 05:46 PM
kernel panic (narius panic) narius Linux - Newbie 3 06-20-2002 04:56 PM
Kernel panic making me panic! Linux_N0oby Linux - Software 19 05-29-2002 01:31 AM


All times are GMT -5. The time now is 10:10 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration