LinuxQuestions.org
Visit Jeremy's Blog.
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-24-2015, 05:43 PM   #1
GabLFS
LQ Newbie
 
Registered: Apr 2015
Posts: 17

Rep: Reputation: Disabled
LFS 7.7: Creating an installer or LiveCd


Hi, since I'm finishing my first LFS system, I was wondering if there's a way to create some sort of installer or LiveCD so I can share my system. I'll appreciate your help.
 
Old 04-24-2015, 06:03 PM   #2
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
There are a number of similar posts like this on this forum have look, but frankly I think you're flogging a dead horse, if you want to do it for your own use or because it might be fun then go to it, but you won't get a lot of interest from people wanting yet another pre built OS, sort of spoils the whole idea of building a system for yourself from scratch.
 
Old 04-24-2015, 06:24 PM   #3
GabLFS
LQ Newbie
 
Registered: Apr 2015
Posts: 17

Original Poster
Rep: Reputation: Disabled
Yeah, this is just for academic purposes and I wanted to share it with some people at college, it's just for our own use.
 
Old 04-25-2015, 12:37 AM   #4
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
Yes it's possible and can be done. You might like using squashfs to compress files and use ram/unionfs for dynamic space.
 
1 members found this post helpful.
Old 04-25-2015, 12:27 PM   #5
GabLFS
LQ Newbie
 
Registered: Apr 2015
Posts: 17

Original Poster
Rep: Reputation: Disabled
Thank you for your answer veerain, I'll check it out, it seems interesting and I'm reading about it right now, I've came across with some useful information too, but I don't know if they work until I test them.
 
Old 04-25-2015, 08:48 PM   #6
Ragnarok Warrior
Member
 
Registered: Nov 2005
Location: Bangor, ME
Distribution: Debian,Ubuntu,DSL
Posts: 87

Rep: Reputation: 18
As far as the live cd goes I'm not really sure what to do, but as for an "installer" you should just be able to copy the system directly from one drive to another. I am doing this during my current build so I can work on a faster computer at home, but still work on it when time allows at school on my laptop.

Try this from either the host system (if being built that way) or a live cd if you are building LFS on the fly:
Code:
mount /dev/sda1 /mnt/lfs   (where sda1 is your LFS system)
cd /mnt/lfs
tar -czpvf /home/user/backup.tar.gz .    (Where you want the backup to be. The " . " is important.)
This will place the backup of the LFS system in /home/user, adjust to suit your needs. Then you can deploy the OS on another system by using a live cd and unpacking. After setting up a partition for LFS, do the following:
Code:
mount /dev/sda1 (again, the target partition of your LFS)
cd /mnt/lfs
tar -xzpvf /pathtobackup/backup.tar.gz
Just set up a flash drive with 2 partitions, one for the live cd of choice and the second to store your backup.tar.gz
 
1 members found this post helpful.
Old 04-26-2015, 06:48 AM   #7
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
This method will only work when both systems have much the same hardware, cpu size (32/64b), video cards, unless you have built in support for different cards, etc etc
 
1 members found this post helpful.
Old 04-26-2015, 10:04 AM   #8
GabLFS
LQ Newbie
 
Registered: Apr 2015
Posts: 17

Original Poster
Rep: Reputation: Disabled
Ragnarok I will try that method it seems perfect for what I try to do, that way I can work on my own machine and my collegue's machines. For the time being I will mark this thread as Solved, I will try that method and if anything goes wrong I will tell you. Thank you both!
 
Old 04-26-2015, 12:39 PM   #9
Ragnarok Warrior
Member
 
Registered: Nov 2005
Location: Bangor, ME
Distribution: Debian,Ubuntu,DSL
Posts: 87

Rep: Reputation: 18
Keith is right, I completely forgot to mention it though. I'm just getting through the install of X, so video drivers aren't a problem for me yet, and I have a few kernels compiled for different hardware. If you built LFS for 64 bit I believe it will not work on a 32 bit system unless you have compiled multilib support, but if you built for 32 bit it should run on most machines. I am building on a mid-2007 64bit dual core mac mini and a 1999 vintage IBM Thinkpad pentium 2 (thus multiple kernel options).
 
Old 04-26-2015, 04:35 PM   #10
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
You can't run a 64 kernel or any other 64 bit piece of software on a 32 bit machine even if you have multilib, you can do it the other way around though, I beleive there is or was switch in the kernel config to allow support for 32 bit apps with a 64 bit kernel, as long as you have the relevent sub structure installed.
 
Old 04-26-2015, 07:36 PM   #11
GabLFS
LQ Newbie
 
Registered: Apr 2015
Posts: 17

Original Poster
Rep: Reputation: Disabled
I'm building a 32bit system, since most of the machines I'm working with support this architecture, so I guess this shouldn't be a problem. And indeed, it's possible to built a 64bit system with 32bit capabilities, but not the other way around.. Thanks, again.
 
  


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
[SOLVED] LiveCD for LFS 7.1 Mordillo98 Linux From Scratch 0 06-16-2012 11:48 AM
Creating the ultimate Grub2 setup: Windows installer + Live, Linux installer + live + todda7 Linux - General 47 08-05-2010 11:22 AM
LFS 6.3 LiveCD help Lord Hakk Linux From Scratch 1 03-05-2009 06:18 AM
6.06 liveCD installer funnies pixellany Ubuntu 1 06-09-2006 09:56 AM
LFS LiveCD 6.1-2 satimis Linux From Scratch 6 07-25-2005 09:32 PM

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

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