LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 03-16-2006, 11:12 PM   #1
gbiyer
LQ Newbie
 
Registered: Sep 2003
Location: Bangalore
Distribution: FEDORA CORE 4
Posts: 11

Rep: Reputation: 0
Angry Kernel Panic lfs LFS


I compiled and installed LFS in a seperate partition on my harddisk. I have fedora core & windows xp already installed.
When i chrooted into LFS and used grub to setup boot loader. I could not. it was recognising the partition (hd0,3). I had installed LFS on /dev/hda4.

So i logged out of LFS. Created a record in FEDORA's grub config.

I restared the laptop. It booted into LFS but gave the following error.

KERNEL PANIC - not syncing : VFS : unable to mount root FS on unknown block(3,4).

Please help me.
 
Old 03-17-2006, 12:19 AM   #2
baruah
LQ Newbie
 
Registered: Feb 2006
Distribution: RH9.0, RHEL 4
Posts: 12

Rep: Reputation: 0
Can you post the entries in grub.conf ?

-baruah
 
Old 03-17-2006, 01:55 AM   #3
gbiyer
LQ Newbie
 
Registered: Sep 2003
Location: Bangalore
Distribution: FEDORA CORE 4
Posts: 11

Original Poster
Rep: Reputation: 0
Grub Configuration on Fedora Core 4

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd0,1)
# kernel /boot/vmlinuz-version ro root=/dev/hda2
# initrd /boot/initrd-version.img
#boot=/dev/hda
default=0
timeout=5
# Use prettier colors.
color green/black light-green/black
splashimage=(hd0,1)/boot/grub/splash.xpm.gz
hiddenmenu
title Fedora Core (2.6.11-1.1369_FC4)
root (hd0,1)
kernel /boot/vmlinuz-2.6.11-1.1369_FC4 ro root=LABEL=/1 rhgb quiet
initrd /boot/initrd-2.6.11-1.1369_FC4.img

title LFS 6.1.1
root (hd0,3)
kernel /boot/lfskernel-2.6.11.12 root=/dev/hda4

title Windows XP
rootnoverify (hd0,0)
chainloader +1
 
Old 03-29-2006, 02:02 AM   #4
space203
LQ Newbie
 
Registered: Feb 2006
Posts: 4

Rep: Reputation: 0
Did you compile ext2 support into the kernel?
 
Old 04-02-2006, 03:18 AM   #5
gbiyer
LQ Newbie
 
Registered: Sep 2003
Location: Bangalore
Distribution: FEDORA CORE 4
Posts: 11

Original Poster
Rep: Reputation: 0
Yes, Infact i compiled support for all available types ... ext2,ext3 etc.
 
Old 04-24-2006, 11:08 PM   #6
thloh85
Member
 
Registered: Apr 2006
Location: Earth
Distribution: BLFS customized
Posts: 160

Rep: Reputation: 31
I had the same problem as you do...
If i am not mistaken... You did not copy the System.map and the .config files to the /boot...
Try that...
Hope that helps...
 
Old 05-05-2006, 08:44 PM   #7
G3nN00b
LQ Newbie
 
Registered: May 2006
Posts: 2

Rep: Reputation: 0
Question Unable to mount root fs on unknown block (3,4)

I am faced with a similar situation, dual booting a HP pavillion laptop and getting a kernel panic.

Unable to mount root fs on unknown block (3,4)

Not sure what I am missing in the kernal. Drive and files system that I'm using are compiled in the kernel. I believe this is typically what causes an error message like this. Correct me if I am wrong.

What info do you need to help?


/boot/grub/grub.conf

default 0
timeout 30

title=gentoo linux 2.6.16-r6
root (hd0,3)
kernel /boot/linux-2.6.16-r6 root=/dev/hda4

title=windows xp
rootnoverify (hd0,0)
makeactive
chainloader +1


partition layout

windows /dev/hda1
linux /boot /dev/hda2
linux swap /dev/hda3
linux / /dev/hda4
 
Old 05-05-2006, 08:45 PM   #8
G3nN00b
LQ Newbie
 
Registered: May 2006
Posts: 2

Rep: Reputation: 0
Where and how would I copy the system.map .config files ?
 
Old 05-07-2006, 03:48 AM   #9
thloh85
Member
 
Registered: Apr 2006
Location: Earth
Distribution: BLFS customized
Posts: 160

Rep: Reputation: 31
Quote:
Originally Posted by G3nN00b
Where and how would I copy the system.map .config files ?
after compiling the kernel (don't just compile bare kernel, use make all) it is at the dir where you build your 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
LFS Book Chapter 6 - 1st step (chroot to /mnt/lfs) doens't work bauld Linux From Scratch 11 03-15-2006 12:31 AM
LFS-7.0-cross-lfs-20050902-x86_64-Multilib Basel Linux From Scratch 0 09-03-2005 05:03 AM
cannot login as user 'lfs' [su - lfs] mayasedai Linux From Scratch 2 07-26-2005 06:10 AM
kernel panic LFS 6.0 vmlinuz101 Linux From Scratch 1 04-15-2005 09:17 AM
LFS 3.2 book, but LFS packages 3.0 CragStar Linux From Scratch 2 04-07-2002 03:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

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