LinuxQuestions.org
Visit Jeremy's Blog.
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 11-10-2011, 12:20 AM   #1
devilboy09
Member
 
Registered: Nov 2011
Location: Iran
Distribution: Debian, CentOS, LFS, CloudLinux
Posts: 377

Rep: Reputation: 10
Boot Problem


i finished lfs last night but i can't boot it.i think i screwed up something
in chapter 9 i issued this commnad:
grub-install /dev/sda
this command will erase the current grub settings
but i couldn't undrestand the next command "ln -sv /dev/sda2 /dev/root" and i just issued it, and i'm regret know cause in booting process i got this message when i select my lfs:
error: no kernel specified
error: unknown command '/boot/vmlinux-3.1-lfs'

i should say that my host disk is sda with three partitions:sda1,sda2 and sda5
and my lfs disk has just two partitions:sdb1 and sdb2
should i have installed the grub on /dev/hdb1?
i'm not familiar with grub 1.99.please help me!!!
 
Old 11-10-2011, 01:38 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

The first question that comes to mind: Do (did) you need to set up grub (the second Warning Box in chapter 8.4)?

I'm asking because I do remember you mentioning that Debian is your host and if that is the case then grub is already installed and you need to add an entry to Debian's grub configuration. Is this going to be a dual boot system (Debian + LFS) or are you building LFS inside a virtual machine running on Debian?

If you _do_ need to install grub, can you post the following information:

- The output of ls -l /boot/
- The content of /boot/grub/grub.cfg
- The partition mount point(s) you created in chapter 2.3 to install LFS on (/dev/sdX and possibly /dev/sdY) and what is mounted on them.
- The content of /etc/fstab

BTW: Did you have to create the link (the ln -sv /dev/sda2 /dev/root command). It is only needed if grub-install fails (as stated in the LFS documentation).

Hope this helps.
 
Old 11-10-2011, 01:58 AM   #3
devilboy09
Member
 
Registered: Nov 2011
Location: Iran
Distribution: Debian, CentOS, LFS, CloudLinux
Posts: 377

Original Poster
Rep: Reputation: 10
that's the point.i screwed up grub and i can't boot it right now.is there anyway to fix it?
also i'm running it in vmware and when i inser my iso file to the dvd-rom ican't enter in rescue mode.i mean it doesn't boot with cd-rom and i checked the properties in bios setup

Last edited by devilboy09; 11-10-2011 at 02:02 AM.
 
Old 11-10-2011, 02:42 AM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,
Quote:
Originally Posted by devilboy09 View Post
that's the point.i screwed up grub and i can't boot it right now.is there anyway to fix it?
also i'm running it in vmware and when i inser my iso file to the dvd-rom ican't enter in rescue mode.i mean it doesn't boot with cd-rom and i checked the properties in bios setup
Ok, so I guess you are building LFS inside a VM and used a Debian iso as host.

Did you check to see if the cdrom is attached to the VM and set as primary bootable device (don't ask me how to do this in VMWare, I'm not familiar with it). A little search came up with this: ISO Image Files & VMware

Once you are able to boot the Debian DVD/CD, please post the information I asked for in my previous post (#2).

Hope this helps.
 
Old 11-13-2011, 09:29 PM   #5
liquidkaleidoscopes
LQ Newbie
 
Registered: Aug 2011
Posts: 27

Rep: Reputation: Disabled
It looks like you've moved beyond this problem, since you have a more recent thread about something that looks related to this. Could you mark this as solved? Sorry if I'm wrong.
 
  


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
[SOLVED] Can't select XP OS in a dual boot with Isadora at boot screen (grub problem) faby1321 Linux Mint 10 08-10-2010 06:07 PM
Fedora 9x64 AHCI problem - no boot (only CD Rom boot) after install sandaili Fedora 1 06-06-2008 02:33 PM
boot to GUI problem want grub boot to single user mode. hocheetiong Linux - Newbie 1 09-26-2007 06:41 PM
solaris boot problem boot error loading interpreter(misc/krtld) Johncy_j Solaris / OpenSolaris 5 08-18-2005 01:47 AM
problem with Installing red hat linux dual boot(/boot < for 1024 cylinders ) praveenb Linux - Newbie 2 02-13-2004 08:49 PM

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

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