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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
07-06-2005, 01:32 PM
|
#1
|
Member
Registered: Jun 2005
Location: india
Distribution: fedora core2
Posts: 34
Rep:
|
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-2.6.8.1 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-2.6.8.1 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.
|
|
|
07-06-2005, 02:18 PM
|
#3
|
Member
Registered: Feb 2004
Location: somewhere over the rainbow...
Distribution: Slackware 10.1
Posts: 166
Rep:
|
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.
|
|
|
07-07-2005, 10:36 AM
|
#4
|
LQ Guru
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 11,201
|
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!"
|
|
|
All times are GMT -5. The time now is 11:35 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|