LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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, 05: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, 06:15 PM   #2
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 217Reputation: 217Reputation: 217
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, 06: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 06:24 PM.
 
Old 05-21-2004, 06:38 PM   #4
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
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, 10: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, 11:42 AM   #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, 09: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



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 12:58 PM
kernel panic: try passing init= option to kernel...installation with Red Hat 9 kergen Linux - Hardware 1 09-30-2004 03:28 AM
Kernel panic puts me in a panic theeeg Linux - Software 2 07-31-2004 04:46 PM
kernel panic (narius panic) narius Linux - Newbie 3 06-20-2002 03:56 PM
Kernel panic making me panic! Linux_N0oby Linux - Software 19 05-29-2002 12:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:07 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