LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 04-15-2012, 02:00 AM   #1
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Makeing a live cd to build lfs


Hi

I see alot of ppl asking about live cd to build lfs, so I have put this together hoping it will help.

Using a live cd persistant debain 6.0.4
Download http://www.debian.org/CD/live/ I used the standard iso without gui, You dont need a gui
Make a partition on your harddrive/usb stick for persistent, Using what ever method you prefer, (gparted, parted) Of 180mb ext3 filesystem. Label it "live-rw" (The finished persistent partion uses 114mb)

This is to keep the cd persistent
Boot the live cd. When you get the debain boot screen hit the tab, After the word quite put a space and type in "persistent" (This must be done everytime when booting from the cd), Then hit enter.
This must be done everytime when booting from the cd.

Run the following commands

Code:
sudo dpkg-reconfigure dash
Then answer NO (this will set bash as default)
Code:
sudo apt-get install gawk
Code:
sudo apt-get install bison
Code:
sudo apt-get install make
Code:
sudo apt-get install gcc
Code:
sudo apt-get install bzip2
(thks Tobi)

Run version-check.sh on system to check host is compliant.
You can also install "links or lynx web browser" and "gpm" "for mouse" to help with copy and paste commands to build your lfs,
If you dont like vi editor you can install "vim,nano" etc

To change the keyboard layout
Code:
sudo dpkg-reconfigure keyboard-configuration
then follow the prompts for the desired keyboard.
 
Old 05-25-2012, 03:06 PM   #2
Mordillo98
LQ Newbie
 
Registered: May 2012
Posts: 27

Rep: Reputation: Disabled
Tks for the tip. I'm giving it a try right now.
 
Old 08-30-2013, 12:28 PM   #3
yjy4321
Member
 
Registered: Apr 2011
Distribution: Ubuntu
Posts: 42

Rep: Reputation: Disabled
I am trying persistent mode with debian-live-7.0.0-i386-standard.iso.
Every time I reboot I typed "persistent" after quiet, it does not remember it. No bison, no make...
Is there a special way to reboot? I just simply do "sudo reboot"

Here is output from cfdisk.
Code:
Name   Flags  Part Type  FS Type     [Label]    Size (MB)
---------------------------------------------------------
sda1          Primary    ext4                   29734.39
              Pri/Log    Free Space                 0.09*
sda5   NC     Logical    swap                    2289.05*
sda6   NC     Logical    ext3        [live-rw]    188.75*
Here is output from df. I skip some columns
Code:
Filesystem ... Mounted on
rootfs         /
udev           /dev
tmpfs          /run
/dev/sr0       /lib/live/mount/medium
/dev/loop0     /lib/live/mount/rootfs/filesystem.squashfs
tmpfs          /lib/live/mount/overlay
tmpfs          /lib/live/mount/overlay
aufs           /
tmpfs          /run/lock
tmpfs          /run/shm
Here is output from mount. I did not type things inside ().
Code:
sysfs on /sys type sysfs
proc on /proc type proc
udev on /dev tupe devtmpfs
devpts on /dev/pts type devpts
tmpfs on /run type tmpfs
/dev/sr0 on /lib/live/mount/medium type iso9660
/dev/loop0 on /lib/live/mount/rootfs/filesystem.squashfs type squashfs
tmpfs on /lib/live/mount/overlay type tmpfs
tmpfs on /lib/live/mount/overlay type tmpfs
aufs on / type aufs
tmpfs on /run/lock type tmpfs
tmpfs on /run/shm type tmpfs
 
Old 08-30-2013, 06:12 PM   #4
basica
Member
 
Registered: Nov 2011
Location: Australia
Distribution: Arch, LFS
Posts: 171

Rep: Reputation: 38
suse studio is better, you don't need to reconfigure anything. I have built an image for myself, it's easy to do. Ensure that all the packages you need are included in the image, then build and test it. If all good, you can then download the iso and use it.
 
Old 09-01-2013, 10:18 AM   #5
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511

Original Poster
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Hi yjy4321

I have just tried the debian-live-7.0.0-i386-standard.iso. and it wont hold the persistent as the 6.0.4 dose.

I have managed debian-live-7.0.0-i386-standard.iso persistant.

Last edited by spiky0011; 09-01-2013 at 01:17 PM.
 
Old 09-01-2013, 01:25 PM   #6
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511

Original Poster
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Using debian-live-7.0.0-i386-standard.iso persistent

Download debian-live-7.0.0-i386-standard.iso

As post1 Create a partition of 180mb ext3, Label it persistence.

Then create a persistence.conf file on the partition, in the persistence.conf file add this line / union

Now boot Debain hit TAB at boot screen after the word initrd1.img, put a space and the word persistence


Then follow steps in post 1 with the exception of bzip which is now installed.

Last edited by spiky0011; 09-01-2013 at 01:28 PM.
 
Old 05-02-2016, 03:11 AM   #7
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511

Original Poster
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Update for a live cd/dvd

I use Archex. It is a dual arch live dvd so will boot 32 and 64 kernals

https://sourceforge.net/projects/archex/

Run as live then run pacmann -Syy && pacman -S bison patch
 
Old 05-02-2016, 04:55 AM   #8
anak_bawang
Member
 
Registered: Jun 2015
Location: Bandung Indonesia
Distribution: Debian, LFS/BLFS
Posts: 138

Rep: Reputation: 23
I'm using
-> debian-live-7.5.0-amd64-gnome-desktop.iso and
-> debian-live-7.5.0-i386-gnome-desktop.iso

as a live CD on VMWare to build
-> LFS-7.7 systemd
-> LFS-7.9 systemd

It works!!!

Last edited by anak_bawang; 05-02-2016 at 04:56 AM.
 
Old 05-02-2016, 05:05 PM   #9
kcirick
Member
 
Registered: Dec 2006
Distribution: Slackware 14.1; LFS 7.9-Systemd; Debian Jessie
Posts: 169

Rep: Reputation: 55
I've mentioned this several times in the past but for some reason I'm not getting the positive reaction I expected. Salix OS is a Slackware derivative (in fact backwards compatible with Slackware), and they have a live edition.

Because it is Slackware, it has everything you need to build the LFS system out of the box. I've been using 14.1 XFCE live to do my LFS 7.8 and 7.9 builds (both Sysvinit and Systemd). All you have to do is burn or load onto a usb stick and away you go.
 
  


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
Build an LFS with zsh jimmy_page_89 Linux From Scratch 4 02-21-2012 11:04 PM
error in live CD creation using live-build on Squeeze adriankevin Debian 4 02-04-2012 06:36 PM
[SOLVED] Resuming build with lfs live-cd grumpy.biatch Linux From Scratch 9 01-01-2011 12:58 AM
LFS live-cd: /dev/mapper/lfs-cd ran out of space bucovaina78 Linux From Scratch 0 10-12-2009 11:00 AM
Will compiling LFS on an 64 bit distro build an 64 bit LFS? Vampirite Linux From Scratch 4 08-31-2007 02:48 PM

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

All times are GMT -5. The time now is 09:30 PM.

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