LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 08-10-2005, 08:41 AM   #1
AxXium
Zenwalk Admin
 
Registered: May 2005
Location: Louisiana, U.S.A.
Distribution: Zenwalk Gnu/Linux
Posts: 258

Rep: Reputation: 31
Boot System w/ Live CD


How do I boot my LFS partition and kernel using the Live CD?

What commands are to be passed to the system at the Live CD prompt?

I need to reinstall GRUB to the MBR after installing Fedora Core 4 and giving it a spin.

I much, much, much prefer the LFS version.

I understand that once I am in the LFS system I should issue the following commands. My LFS system is installed on hda3 btw.

#su

#root-password

#grub

(prompt or cursor changes to GRUB>.)

#root (hd0,2)

#setup (hd0)

#$ quit

I just need to know how to get into my LFS system.

Last edited by AxXium; 08-10-2005 at 09:35 AM.
 
Old 08-10-2005, 09:33 AM   #2
jimbo-62
Member
 
Registered: May 2005
Location: Utah
Posts: 102

Rep: Reputation: 15
Try this procedure. It works for me with a different Live CD.

As root:

# mount /dev/hda3 /mnt/hda3 (You may need to create /mnt/hda3 first.)
# chroot /mnt/hda3 /bin/bash (You may not need /bin/bash.)

Good luck, jimbo
 
Old 08-10-2005, 10:00 AM   #3
AxXium
Zenwalk Admin
 
Registered: May 2005
Location: Louisiana, U.S.A.
Distribution: Zenwalk Gnu/Linux
Posts: 258

Original Poster
Rep: Reputation: 31
Thanks Jimbo!!!

I found another option since I also run Slackware

Code:
How to boot LFS with LILO

With LILO already installed on your host distribution and your host distribution is installed on, say /dev/hda1, simply append your host distributions lilo.conf with:

image = /mnt/lfs/boot/bzImage     SEE NOTE 1 BELOW
root = /dev/hda2                           SEE NOTE 2 BELOW
label = LFS                                   SEE NOTE 3 BELOW
read-only                                      SEE NOTE 4 BELOW

Then simply type the item below into your host distro's shell and then reboot:

lilo -b /dev/hda1

Replace the hda1 from above with wherever you want LILO(8) to be installed.

Use hda if you want LILO to go into the MBR of your first IDE disk.

Use hda1to install LILO(8) into the super-block of your first partition on your first IDE disk, etc…

The -b switch tells LILO that you're going to specify where you'd like to install LILO and will override the boot =  in your lilo.conf file.

Quick note- You do not need the LILO program on your LFS system and you do not need a lilo.conf on your LFS system.

NOTE1: The kernel image you created for your new LFS system must be reachable when you execute the lilo -b command above from your host distro. If the command (issued from your host distro) ls /mnt/lfs/boot/bzImage fails, then the lilo -b command will also fail. In other words, the LFS partition must be mounted at the time you issue the lilo -b command. After you run the lilo -b command, LILO no longer cares whether LFS is mounted or not, as LILO now knows exactly where your kernel image is and will remember where it is. But if you ever move bzImage, rename bzImage , create a new symlink for bzImage or replace bzImage, you'll need to re-run the lilo -b command from your host distro. Of course, replace /mnt/lfs/boot/bzImage with whatever the path is from your host distro to your LFS distro's kernel image. Quick note- the lilo.conf file is never read or used, except when you run the lilo command.

NOTE2: This must be the actual partition that your shiny new LFS root directory resides upon.

NOTE3: Self explanatory. Give the LILO boot menu selector a cool name for your LFS system.

NOTE4: Non-MS DOS file systems, ext2, ext3, Reiser & XFSshould be initially mounted read only.
 
Old 08-10-2005, 07:40 PM   #4
jimbo-62
Member
 
Registered: May 2005
Location: Utah
Posts: 102

Rep: Reputation: 15
Hey mianve,

Where in Louisiana? I lived in Baton Rouge for several years. Let the good times roll!

Any way, good for you that you got things working.

Jim
 
Old 08-11-2005, 07:54 AM   #5
AxXium
Zenwalk Admin
 
Registered: May 2005
Location: Louisiana, U.S.A.
Distribution: Zenwalk Gnu/Linux
Posts: 258

Original Poster
Rep: Reputation: 31
I live in Broussard, LA.
At one time I lived in Jeanerrete & Breaux Bridge.

God I can't wait till BLFS 6.1 is finalized!!

LFS is amazing!

Last edited by AxXium; 08-11-2005 at 07:55 AM.
 
  


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
SB Live!Value (Dell) with 4.1 sound system on mandrake 10.1 prete Linux - Hardware 1 08-25-2005 01:45 PM
Info on how to use System Restore live cd.... rrfish72 Linux - General 0 12-04-2004 04:24 PM
prelinking + striping: do i need a live-cd, or can i do it on a running system qwijibow Linux - General 0 08-09-2004 03:24 PM
Best live-cd distro for rescuing a system Coume Linux - Distributions 3 07-20-2004 09:50 PM
run quotacheck on the live file system stand Linux - General 3 01-06-2004 08:11 AM

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

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