Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
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.


  Search this Thread
Old 07-06-2005, 01:32 PM   #1
Registered: Jun 2005
Location: india
Distribution: fedora core2
Posts: 34

Rep: Reputation: 15
kernel panic after rebooting the system.

Hi we completed the lfs but after rebooting it showed the error

VFS:cannot open device "hda6" or unknown block(3,6)
please append a correct "root=" boot option
kernel panic:VFS:unable to mount root fs on unknown block(3,6)

Our grub file menu.lst is given below

# Begin /boot/grub/menu.lst
# By default boot the first menu entry.
default 0
# Allow 30 seconds before booting the default.
timeout 30
# Use prettier colors.
color green/black light-green/black
# The first entry is for LFS.
title LFS 6.0
root (hd0,5)
kernel /boot/lfskernel- root=/dev/hda6
title Red Hat
root (hd0,0)
kernel /boot/kernel-2.6.1-358 root=/dev/hda2
initrd /boot/initrd-2.6.1-358

And details of our system partions are
device boot start end blocks id system
/dev/hda1 * 1 203 102280+ 83 linux
/dev/hda2 204 30679 15359904 83 linux
/dev/hda3 30680 31199 262080 82 linux swap
/dev/hda4 31200 54372 11679192 5 extended
/dev/hda5 31200 31700 252472+ 83 linux swap
/dev/hda6 31701 45000 6703168+ 83 linux

Our lfs is mounted on partition hda6 which is in hda4(this is an extended partition).

So my question is in the command "kernel /boot/lfskernel- root=/dev/hda6"
Am i supposed to write root=/dev/hda6 or /dev/hda4?

And are the entries in my grub file correct???
also in the fstab file
# file system mount-point type options dump fsck order

/dev/[xxx] / [fff] defaults 1 1
/dev/[yyy] swap swap pri=1 0 0

in place of [xxx] shall i write hda4 or hda6?in our fstab file i wrote hda6.

Please help!!!

Last edited by sharmashikha; 07-07-2005 at 01:01 AM.
Old 07-06-2005, 02:16 PM   #2
LQ Guru
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
On a moderator side note, please read the following post about your thread title:
Old 07-06-2005, 02:18 PM   #3
Registered: Feb 2004
Location: somewhere over the rainbow...
Distribution: Slackware 10.1
Posts: 166

Rep: Reputation: 30
the grub entries look correct. in your kernel, did you make your file system a module instead of inside the kernel? not too sure about lfs, but in other distro's, you need the incomplete driver thing option, the first one, checked as well.
Old 07-07-2005, 10:36 AM   #4
LQ Guru
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941
A good place to begin would be to reboot in your host system and see if you can mount /dev/hda6 from there. If so, check what filesystem-type it is using, and see if any modules are required to use that particular filesystem. For obvious reasons, support for your root-filesystem (and "/boot") must be compiled into the kernel.

If your host system can mount the device, dismount the disk and run fsck against it from the host. This will rule out the possibility that the filesystem has errors.

Does a device-node exist for this block device?

The code is in /init/do_mounts.c "Use the source, Luke!"


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 panic error after rebooting new kernel image fiero Linux - General 4 07-13-2005 08:32 AM
Kernel Panic {not a critical system though} musicman_ace Linux - Distributions 2 03-13-2005 07:37 PM
Rebooting after kernel panic nbarraud *BSD 2 01-12-2005 08:35 PM
System keeps rebooting after Kernel Loads codeviking Linux - Software 4 10-19-2003 09:02 PM
Slack9.0 - Kernel 2.4.22 - System keeps rebooting Infje Linux - Newbie 6 10-04-2003 08:05 AM > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

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

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