LinuxQuestions.org
Help answer threads with 0 replies.
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-18-2022, 02:23 AM   #1
glanzfreya
LQ Newbie
 
Registered: Jan 2022
Posts: 24

Rep: Reputation: 0
How to Create an Installer in ISO Format for our LFS/BLFS ?


Dear all,
I have finished create BLFS till XFCE as my Desktop Environment. The funny thing is, I do it all in Qemu, and I want to install it on my full Laptop. So I can use my hardworking LFS as my main OS. How to do this? Do I need to do certain configuration for the hardware adjustment in the linux kernel?

I need this since I only install packages and software that I use daily instead of bunch of softwares that I will never use. Less than 10 softwares are enough for me.

It will be great if I am able to create an ISO from my LFS work, the kind of ISO like other Linux distribution such as Arch Linux, Ubuntu, CaeLinux, so it can be bootable and installed on my laptop. Why not installed Ubuntu instead? Because I can choose the packages I want in LFS, just like the motto "my distro my rule" haha...

I am using Dell Precision laptop, I can check the hardware and enable the module at kernel. Just need to know how to create the ISO. Thank you all. Have a great day.
 
Old 03-18-2022, 07:55 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,404

Rep: Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337
What I do is mount them all in one directory tree, cd to one below it usually, end enter
Code:
mkisofs <options> directory/*
Bootable isos are a stage up in complexity but there's plenty of examples on the web. An iso is not compressed, so if you're using a usb key, you can copy it to to usb and run it from there.

Iso files are read only, which creates many issues and they are definitely going out of fashion in favour of other options.
 
Old 03-19-2022, 03:44 PM   #3
glanzfreya
LQ Newbie
 
Registered: Jan 2022
Posts: 24

Original Poster
Rep: Reputation: 0
I have read several posts about this. I will learn about mkfsiso. I want to ask is anyone know the guide to create installation scripts / an installer for the OS (to copy the file to new computer/hardware) or can we just use the iso and mount it with USB on different hardware and it will load the OS we have in the iso directly without installing? I am new to this.
 
Old 03-19-2022, 09:50 PM   #4
wiigelec
Member
 
Registered: Nov 2021
Distribution: Devuan
Posts: 67

Rep: Reputation: Disabled
create a tarball and extract it to the desired partition then run grub-install. will probably have to reconfigure kernel as new hardware dictates.
 
Old 03-19-2022, 10:15 PM   #5
wiigelec
Member
 
Registered: Nov 2021
Distribution: Devuan
Posts: 67

Rep: Reputation: Disabled
fair warning the following are not step-by-step instructions like the lfs/blfs books, but rather a set of guidelines to get you pointed in roughly the right direction to accomplish what you are looking to accomplish.

lfs hint for bootable iso:
https://www.linuxfromscratch.org/hin...ot-cd_easy.txt

a (mostly) bootable iso i built:
https://sourceforge.net/projects/lfshost-distro/

build scripts for previously mentioned (mostly) bootable iso:
https://github.com/wiigelec/lfsHost-.../main/isobuild

initramfs:
https://www.linuxfromscratch.org/blf...initramfs.html
 
Old 03-20-2022, 12:00 AM   #6
emmett1
Member
 
Registered: Nov 2017
Location: Malaysia
Distribution: Venom Linux, LFS
Posts: 49

Rep: Reputation: Disabled
Hye, i'm Venom Linux dev. I've write script to build multilib LFS,initrmfs generator that support live boot and etc.

Here i wanna share you guys guide to create live iso for your LFS system.
https://github.com/emmett1/mkinitrd/...ake-livecd-ISO

Hope this helps.
 
Old 03-20-2022, 11:17 AM   #7
arch-linq
Member
 
Registered: Sep 2018
Location: Midwest, USA
Distribution: Arch,LFS,BLFS
Posts: 110

Rep: Reputation: Disabled
Just use tar of the build to move it as was mentioned. Creating a bootable ISO is not a trivial thing to do and it's old school idea.

Last edited by arch-linq; 03-20-2022 at 11:19 AM.
 
Old 03-20-2022, 08:44 PM   #8
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,361
Blog Entries: 28

Rep: Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148
Remastersys is no longer maintained, but this article points to several active alternatives to it.
 
Old 04-20-2022, 03:58 AM   #9
glanzfreya
LQ Newbie
 
Registered: Jan 2022
Posts: 24

Original Poster
Rep: Reputation: 0
LFS ISO

Quote:
Originally Posted by wiigelec View Post
fair warning the following are not step-by-step instructions like the lfs/blfs books, but rather a set of guidelines to get you pointed in roughly the right direction to accomplish what you are looking to accomplish.

lfs hint for bootable iso:
https://www.linuxfromscratch.org/hin...ot-cd_easy.txt

a (mostly) bootable iso i built:
https://sourceforge.net/projects/lfshost-distro/

build scripts for previously mentioned (mostly) bootable iso:
https://github.com/wiigelec/lfsHost-.../main/isobuild

initramfs:
https://www.linuxfromscratch.org/blf...initramfs.html
Hi wiigelec,

thanks for this I am wondering can I create ISO like yours? I am downloading your lfsHostFULL11.iso now and want to try it.
I have installed several packages in my BLFS system and I want to create ISO so I can install my BLFS in another computer.

Like when I install Ubuntu-Studio.iso to my PC, it has preinstalled package, or CAELinux.iso has preinstalled packages as well (GNU Octave, Arduino IDE).
I want to create something like that. But everyone here is saying ISO is old fashion. What is the best most efficient way nowadays now?

Thank You all.

Sorry took a long time. I was installing bunch of packages like ParaView, VTK, Scilab, ... , and I am still learning a lot about Linux. Love this.
 
Old 04-20-2022, 04:01 AM   #10
glanzfreya
LQ Newbie
 
Registered: Jan 2022
Posts: 24

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by emmett1 View Post
Hye, i'm Venom Linux dev. I've write script to build multilib LFS,initrmfs generator that support live boot and etc.

Here i wanna share you guys guide to create live iso for your LFS system.
https://github.com/emmett1/mkinitrd/...ake-livecd-ISO

Hope this helps.
Hi Emmett1,
thanks for the reply, thanks for the sharing. I will see your github.

I want to share my experience on creating iso, you might want to give me revision or advice on this:
I tried cat /dev/sda5 > ~/gfreya.iso and it is not finished
then the the iso file size become 69 GB

it prompts :
cat: write error: No space left on device

my /dev/root size is actually only used 43 GB. With all the installed packages and Desktop Environment (I install lot of STEM applications).
 
Old 04-20-2022, 04:17 AM   #11
glanzfreya
LQ Newbie
 
Registered: Jan 2022
Posts: 24

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by wiigelec View Post

a (mostly) bootable iso i built:
https://sourceforge.net/projects/lfshost-distro/
I tried to mount your LFS11 ISO on my Qemu but it can't works. It said "Boot failed: No bootable device"
 
Old 04-20-2022, 05:48 AM   #12
glanzfreya
LQ Newbie
 
Registered: Jan 2022
Posts: 24

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by arch-linq View Post
Just use tar of the build to move it as was mentioned. Creating a bootable ISO is not a trivial thing to do and it's old school idea.
I am doing this right now, from directory / (contain all the folders from boot root bin usr ...)
I run this :
tar -cvzf gfreya.tar.bzip2 /*

So I have another computer. Do I just run a random ISO (e.g. ArchLinux / Ubuntu) then go to the terminal console to the top directory and then rm -rf *
then I copy the gfreya.tar.bzip2 and extract it?

Is that the logic? I will do trial and error to make it works. Thanks for the guidance.
 
Old 04-20-2022, 06:53 AM   #13
wiigelec
Member
 
Registered: Nov 2021
Distribution: Devuan
Posts: 67

Rep: Reputation: Disabled
Quote:
Originally Posted by glanzfreya View Post
I tried to mount your LFS11 ISO on my Qemu but it can't works. It said "Boot failed: No bootable device"
for reasons i haven’t dug into yet it does not work on qemu. it does work on virtual box and live usb, at least in my limited testing. sorry.

Last edited by wiigelec; 04-20-2022 at 06:57 AM.
 
Old 04-20-2022, 01:58 PM   #14
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,404

Rep: Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337
I know the positionof bootup stuff is critical. A lot of those bootable isos use syslinux which I personally found a bit inscrutable, but there you go.
 
Old 04-20-2022, 05:12 PM   #15
wiigelec
Member
 
Registered: Nov 2021
Distribution: Devuan
Posts: 67

Rep: Reputation: Disabled
Quote:
Hi wiigelec,

thanks for this I am wondering can I create ISO like yours?
absolutely! if you want you can even figure out how to make it work on qemu!
 
  


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] BLFS 10.0 How do I get total ownership of my blfs system ? Captian Kangeroo Linux From Scratch 4 12-09-2020 08:45 PM
Is there a usb-pendrive (ISO-hybrid) for ANTIX with classical Installer (debian/installer)? patrick295767 Linux - Distributions 1 01-21-2016 05:48 PM
[SOLVED] Which version of book to use for BLFS??? (LFS-6.7 used for building LFS) rkmv Linux From Scratch 3 02-21-2012 05:32 PM
Extract ISO to HD, create ISO from Extractions, Boot ISO LemensTS Linux - Software 1 12-28-2010 01:10 PM
Does anyone Know how to open either .iso.rz or these .iso.xdelta,.iso.bz2,.iso.lzma?? maximalred Debian 5 06-09-2004 06:15 AM

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

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