LinuxQuestions.org
Review your favorite Linux distribution.
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 02-07-2009, 12:17 AM   #1
FreeForEternity
LQ Newbie
 
Registered: Feb 2009
Posts: 7

Rep: Reputation: 0
Trouble with grub


Hi guys! I have finished compiling the kernel, and I am now up to the last step (however, I've been stuck on this for days). When I boot into it, I either get an error saying

Code:
pci 0000-00:00:00 0: Bar 3 can't allocate resource
Root-NFS: No NFS server available, giving up
VFS Unable to mount root fs via NFS, trying floopy
Kernel panic - not syncing: VFS - Unable to mount root fs on unknown block (2,0)
or if I chainload it,

Code:
Error 13: Invalid or unsupported executable format
I am pretty sure that it has nothing to do with the kernel configuration, cause I copied my currently working Ubuntu kernel, and specified to load it, and I still got the same error.

I installed lfs on /dev/sdb2, and the main partition is /dev/sda1. The menu.lst for Ubuntu (installed on the MBR) and for lfs are as following:
Code:
# menu.lst - See: grub(8), info grub, update-grub(8)
#            grub-install(8), grub-floppy(8),
#            grub-md5-crypt, /usr/share/doc/grub
#            and /usr/share/doc/grub-doc/.

default		0
timeout		10
color green/black light-green/black

title		Ubuntu 8.10, kernel 2.6.27-11-generic
uuid		f421180b-9ebf-4f90-b77d-fe19d0574960
kernel		/boot/vmlinuz-2.6.27-11-generic root=UUID=f421180b-9ebf-4f90-b77d-fe19d0574960 ro quiet splash 
initrd		/boot/initrd.img-2.6.27-11-generic
quiet

title		 LFS 6.4, kernel 2.6.27
root		(hd1,1)
kernel          /boot/lfskernel-2.6.27.4 root=/dev/sdb2

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title		Other operating systems:
root


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sdb1
title		Microsoft Windows XP Professional
root		(hd1,0)
savedefault
makeactive
map		(hd0) (hd1)
map		(hd1) (hd0)
chainloader	+1





# Begin /boot/grub/menu.lst for lfs

# By default boot the first menu entry.
default 0

# Allow 30 seconds before booting the default.
timeout 8

# Use prettier colors.
color green/black light-green/black

# The first entry is for LFS.
title LFS 6.4
root (hd1,1)
kernel /boot/lfskernel-2.6.27.4 root=/dev/sdb2
Guys, I'll really appreciate you help. I know I am this -fingers held a nanometere apart- close to finishing...

Last edited by FreeForEternity; 02-07-2009 at 12:18 AM.
 
Old 02-08-2009, 01:37 PM   #2
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 68
When you compiled the kernel did you include the drivers for your HDD and for your file system as modules or inside the kernel?
 
Old 02-09-2009, 12:54 AM   #3
FreeForEternity
LQ Newbie
 
Registered: Feb 2009
Posts: 7

Original Poster
Rep: Reputation: 0
I think I included them, but I am not sure. I mean, I couldn't find the drivers for my HDD, but I did include the one for my controller. And nothing is compiled as modules, so that should not be a problem.
 
Old 02-09-2009, 01:03 AM   #4
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 68
Where did you get kernel config from? Did you try just to pass Debian kernel (with its initrd) your LFS as root? Then you could replace M->Y in its config, rebuild and retry. Then you will be able to carefully remove bloat..
 
Old 02-15-2009, 06:34 AM   #5
FreeForEternity
LQ Newbie
 
Registered: Feb 2009
Posts: 7

Original Poster
Rep: Reputation: 0
apologies for my not so immediate respond...the internet was down...and forgive my noobiness, but do you mind repeating in english?

I configured the kernel from scratch...I suppose that maybe where I went wrong. Will posting the config file be any help? As I said, I did not mark anything as a module...I am so sorry, but I seriously have no idea what am I supposed to do.
 
Old 02-15-2009, 02:12 PM   #6
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 68
Try to copy the lines relating to Debian in your menu.lst and only replace root device. Will it work?
 
  


Reply


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
Grub Trouble RedNovember Linux - Software 13 02-20-2006 11:09 PM
GRUB trouble laubster Linux - General 2 01-05-2005 04:47 AM
Trouble with GRUB technician Linux - Software 5 02-16-2004 11:37 PM
Grub trouble p1az Linux - General 4 10-03-2003 01:20 PM
Grub trouble mcm8327 Linux - General 2 07-04-2003 09:00 AM

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

All times are GMT -5. The time now is 07:34 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration