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 05-20-2008, 12:13 PM   #1
sureka
LQ Newbie
 
Registered: May 2008
Posts: 7

Rep: Reputation: 0
Question problem in booting lfs even for the very first time


well........I completed the installation of lfs in the same way as mentioned in the lfs book..except for the one in which kernel is to be configured..which i did after surfing the net..now while booting the system for the very first time it gives the following message...

VFS:cannot open root device "sda1" or unknown-block(2,0)
please append a correct "root="boot option;here are the available partitions:
Kernel panic - not syncing: VFS::Unable to mount root fs on unknown-block(2,0)






though i have checked it twice for the partition number of the bootable root partition....It is sda1..
I think it is unable to mount the root partition..
pls..look out for the solution.
 
Old 05-20-2008, 12:29 PM   #2
rocket357
Member
 
Registered: Mar 2007
Location: 127.0.0.1
Distribution: OpenBSD-CURRENT
Posts: 485
Blog Entries: 187

Rep: Reputation: 74
Quote:
Originally Posted by sureka View Post
VFS:cannot open root device "sda1" or unknown-block(2,0)
please append a correct "root="boot option;here are the available partitions:
Kernel panic - not syncing: VFS::Unable to mount root fs on unknown-block(2,0)
First I'd double check to make sure grub sees the partitions the same way you do...is (hd2) = sda?

If those match up, did you compile your kernel with support for the filesystem that partition is using?

Quote:
Originally Posted by sureka View Post
I think it is unable to mount the root partition..
That does indeed seem to be the problem here...heh.

Last edited by rocket357; 05-20-2008 at 12:31 PM.
 
Old 05-20-2008, 12:31 PM   #3
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,338

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
Do you have the correct device drivers resident in the kernel? If any of the drivers needed to access /dev/sda1 are loadable modules then the kernel will not be able to access /dev/sda1 to load the modules so it fails by being unable to access the / partition.

---------------------
Steve Stites
 
Old 05-21-2008, 01:42 PM   #4
linux-geek
LQ Newbie
 
Registered: May 2008
Posts: 3

Rep: Reputation: 0
Check your partition type and compile it into the kernel, not as a module.

Hi.

The solution is to include into the kernel your partition type, not as a module, but as a part of the kernel itself. e.g. If you have a resiserfs partition as your boot partition check that the reiser filesystem is checked as an asterisk not as "M" nor empty in your kernel configuration, then save your choices, recompile it, install it and reboot.

That will solve your problem.

Enjoy!
 
  


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
Problem In Booting Lfs neshuagarwal1909 Linux From Scratch 1 05-11-2008 08:11 AM
dual booting / time problem cuk Slackware 6 01-18-2008 08:21 PM
Ntp time syncing problem when booting shan_nathan Linux - Desktop 1 11-23-2007 07:51 AM
LFS Booting problem jgmyshko Linux - Laptop and Netbook 1 09-02-2006 07:07 PM
Problem on booting LFS LiveCD satimis Linux From Scratch 4 10-29-2005 08:42 AM

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

All times are GMT -5. The time now is 08:06 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
Open Source Consulting | Domain Registration