LinuxQuestions.org
Review your favorite Linux distribution.
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 03-17-2015, 06:42 PM   #1
Roy_SRC
Member
 
Registered: Jul 2014
Posts: 81

Rep: Reputation: Disabled
how to make a portable linux from scratch..


the title pretty much asks the question. how do i make a portable linux from scratch that can boot on any pc regardless of the motherboard, chipset or processor. thanks!

P.S. i did build a LFS system a few months back but i have no idea on how to make it portable.
 
Old 03-18-2015, 01:53 AM   #2
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
You can build the complete base system and run some of the setup triggers like tzselect, building the kernel, and such after you complete the system.

When you finish the base, just using tar to pack it up and transfer and unpack it again. Should work, but packing it might take a bit of time.
 
Old 03-18-2015, 05:03 AM   #3
Roy_SRC
Member
 
Registered: Jul 2014
Posts: 81

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ReaperX7 View Post
When you finish the base, just using tar to pack it up and transfer and unpack it again. Should work, but packing it might take a bit of time.
you mean i just build the LFS system on a hard drive and make an .iso image of that drive and run that iso on another system? if yes then what about the bootloader? will the bootloader be placed in the same sector of the iso image as it is on the hard drive? and if i extract the iso to the hard drive of a secondary computer will that boot up and show the LFS system that was built? thanks!
 
Old 03-18-2015, 10:13 AM   #4
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Building an iso is going to be different though. Um... You MAY want to check out the defunct LFS CD project on what to do to make a CD-ROM version of LFS. It's old, but you could use it to build a newer ISO. I think one of the CLFS projects focuses on platforms like this... embedded CLFS. But it leaves certain stuff up to you though.

Last edited by ReaperX7; 03-18-2015 at 10:17 AM.
 
Old 03-18-2015, 10:33 AM   #5
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
Build the basic LFS and build a kernel with generic options and build drivers as modules excepting required ones. You would need some scripts to change runtime, some miscellaneous tasks as well to install grub and so on... Perhaps nobody gives exact steps or because anyone knowing enough can do it all by self.
 
  


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
Is it possible to make a Linux From Scratch distro on a raspberry pi Gu7g34r Linux From Scratch 9 12-13-2012 07:30 PM
[SOLVED] Glibc make error on Linux From Scratch 7.0 ubuntudude12 Linux From Scratch 4 01-19-2012 11:49 AM
Linux from Scratch 'make mrproper' error Sarist Linux From Scratch 7 10-15-2009 07:58 AM
I want to make a linux from scratch mraisy Linux From Scratch 1 04-24-2005 01:38 PM

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

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