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 02-14-2010, 07:32 AM   #1
badihi
LQ Newbie
 
Registered: Feb 2010
Posts: 29

Rep: Reputation: 0
How to make lfs live?


Hello there.
I made an LFS 6.5 linux system and now I want to make a live CD for this Linux like other Linuxes such as Ubuntu.
How I can do this?
 
Old 02-14-2010, 12:49 PM   #2
crts
Senior Member
 
Registered: Jan 2010
Posts: 2,020

Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757
Quote:
Originally Posted by badihi View Post
Hello there.
I made an LFS 6.5 linux system and now I want to make a live CD for this Linux like other Linuxes such as Ubuntu.
How I can do this?
Hi,

this might help you out:
http://www.linuxquestions.org/questi...3/#post3842012

However, I myself haven't build a liveCD for my LFS. So I can not tell you what difficulties you might encounter.
 
Old 02-14-2010, 04:22 PM   #3
badihi
LQ Newbie
 
Registered: Feb 2010
Posts: 29

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by crts View Post
Hi,

this might help you out:
http://www.linuxquestions.org/questi...3/#post3842012

However, I myself haven't build a liveCD for my LFS. So I can not tell you what difficulties you might encounter.
Thanks for your reply, crts. But that link was about some installers for a linux distro. But I want to build a live cd for my LFS System. Can somebody help me?
 
Old 02-14-2010, 04:25 PM   #4
camphor
Member
 
Registered: Jan 2009
Location: USA
Distribution: Fedora 14 / Slackware 13.1
Posts: 85

Rep: Reputation: 20
Quote:
Originally Posted by badihi View Post
Thanks for your reply, crts. But that link was about some installers for a linux distro. But I want to build a live cd for my LFS System. Can somebody help me?
Have you looked at the guide over at LFS? You'll have to change around a few things; but browsing through it, it doesn't seem too difficult to me.
 
Old 02-15-2010, 07:07 AM   #5
ddden
LQ Newbie
 
Registered: Apr 2008
Location: Toronto
Distribution: Ubuntu, Red Hat, LFS
Posts: 14

Rep: Reputation: 0
I've wanted to do this since I finished my LFS in '08. I've tried to do just this but had to stop because I was getting bogged down with scripts. I'll tell you the story of how I tried to do it.

(Disclaimer: re-reading this message I realized that I'm not answering anyones question here. However, the info may prove useful.)

I bought an old tablet PC in '09. It had only 32 MB of RAM. I wanted to install a Linux distro on it but it didn't have a CDROM drive and no USB so what was I to do? (You see this problem in a lot of postings.) Anyway, basically a floppy install was the way to go. But since I've built an LFS in the past so I asked myself 'Why can't I use the LFS Live disk'? The idea was to use the LFS Live CD and copy it to a partition and boot from it.

My reason is pretty simple. The LFS Live CD contains a kernel that can boot from CD, it can determine the necessary modules to load (for my particular hardware) and give me a shell prompt. What else do I need? To me the LFS Live CD is a recovery CD as well as the perfect generic system. I felt, a system should exist such that a simple copy operation should install a perfectly usable system, i.e. boot from CD and copy contents of CD to partition of hard drive.

Anyway, the LFS Live CD contains an ISO image that it mounts at boot time. If you do a search of installing LFS off the hard drive you'll see what I mean. I posted a message once on how to do this. So I copied this ISO image to my laptop hard drive, installed GRUB on the hard drive, copied the LFS Live CD kernel and initrd and then rebooted. GRUB will read the EXT2 filesystem for the kernel and initrd and boot. So that works Ok. I could boot from the hard drive. Like I said before, I wanted to copy the system over. I didn't see why it couldn't be done. So I tried. I can't remember all the details so I'll write some points from here on (hope I'm not too misleading).

1. the LFS kernel is compiled to mount ISO9660 filesystems (I forget what it's called) but not EXT2! OR the initrd (from LFS LiveCD) contains only enough tools to mount an ISO image. The kernel and initrd files are created to work in tandem. I tried mixing and matching Damn Small Linux kernel and initrd with LFS LiveCD and it didn't work.

2. Check out the GRUB commands to boot from the hard drive the LFS LiveCD contents. You'll see that the root= parameter is the boot parameter for all kernels. This parameter gets passed to the kernel. Here your going to point to another root filesystem.

3. Read the documents for Root filesystems.

4. Read the documents for Boot disks.

5. Read the documentation for Initial RAM disks.

6. Compile your kernel with support for the filesystem of your choice (notice that there are some USB pendrives around that boot off a FAT32 filesystem)

7. Note: an initrd is nothing more than a pre-root filesystem disk. It's a virtual root filesystem. So that you may not want a "real" filesystem. I have thought of creating an image of a "real" filesystem and just mounting it (through loopback interface)

8. Read the documents for Loopback devices.

9. There is a txt file in the LFS documentation that explains how you can customize your LFS LiveCD.

10. Finally, read about the chroot command. Pretty interesting (this is what happens when the initrd transfers control to your real root filesystem).

Good luck,
ddden
P.s. bottom line is that I didn't finish this because I didn't have the time to read the scripts contained in the initrd file. I didn't want to try and figure out what a generic ISO9660 LFS kernel looks like (what it needs, etc.)

Last edited by ddden; 02-15-2010 at 07:13 AM. Reason: added a quick note at the end
 
Old 02-15-2010, 12:11 PM   #6
plzink
LQ Newbie
 
Registered: Nov 2009
Posts: 3

Rep: Reputation: 0
wow,
me too on a scripto-matic "byol,lfs,ryol,download and compile " ,build with 3x bootstrap bash with colour and curses; including fully automatic modprobe . "what a fun ,enlighting,and rewarding experience to 'get how it works'"
but in doing the footwork and testing the scripts is a monumental task ,i even found out that you can simply and easily "burn a design in the
cd for show off cleverness " (not the label side btw).
dogpile: "bootable cd"; "el torito"; " ISO9660"; "
finish your reading assignment ? --- if you really did build it? -- you did do it right? - this is not stolen or cleaver tricks right ?
when you " cd to shangrilala (/lfs/build ) and switch kernals and mounted file systems " is this not initial ramdisk,scripts,--- consider the care needed to stay below 1.4mb that was necessary along with kernal low and high mem.
historicly yadrasil (sp?) i beleave gets firsty's. first open community one size boots all "a massive coperation of epic global participation"
goes to DEMO LINUX .
there is a "live boot router-- no hd needed"," an ultimate rescue disk " Debian offers a compact tool box (better than any MI plot )
there is at least one "how to",
 
  


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
LFS live CD 6.5 chapter 6.14. MPFR-2.4.1 make check 2 errors bucovaina78 Linux From Scratch 3 10-21-2009 08:21 PM
LFS live CD 6.5 Binutils-2.19.1 make check # of expected failures bucovaina78 Linux From Scratch 2 10-17-2009 03:42 PM
LFS live-cd: /dev/mapper/lfs-cd ran out of space bucovaina78 Linux From Scratch 0 10-12-2009 12:00 PM
new to LFS live CD abhishekgedam Linux From Scratch 5 12-09-2005 02:46 PM
Lfs Live Cd?? win32sux Linux From Scratch 7 02-13-2005 12:12 PM

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

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