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 05-13-2023, 12:45 PM   #1
klebermo
LQ Newbie
 
Registered: May 2023
Posts: 3

Rep: Reputation: 0
Generate ISO based on LFS image disk file


After finish building a LFS system, installed on a IMG file (system.img) and being able to run the system with qemu with the command:

qemu-system-x86_64 -hda system.img -vga std -m 4G

I want now generate a ISO file based on this image disk file, with the follow conditions:
  1. with the generated ISO file, I want use a tool like Rufus or similar (is there something equivalent for linux?) to create a boot disk on an usd stick or sd card, to allow me boot with this system in another machines.
  2. the image disk have a total size of 5Gb, but have 1.9GB of free space. I want the ISO file be created with only the used space (if could be compressed without be incompatible with qemu or creation of the boot disk, would be great).
  3. when create the boot disk, I want to be able to have a mount point in the system to some of the free space available in the boot device.
  4. I want have some shell script that make possible install the system in the machine I boot on.

Anyone can give some hints of how to do that?
 
Old 05-14-2023, 07:15 AM   #2
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,493

Rep: Reputation: Disabled
Possibly refracta tools - https://ubunlog.com/en/refract-tools/

https://www.ibiblio.org/refracta/downloads.html
 
Old 05-17-2023, 10:18 AM   #3
wiigelec
Member
 
Registered: Nov 2021
Distribution: Devuan
Posts: 65

Rep: Reputation: Disabled
squashfs and syslinux

https://www.linuxfromscratch.org/hin...ot-cd_easy.txt
 
  


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
trying to generate https cert for misskey using acme.sh cant find folders to generate hacknorris Linux - Server 7 11-14-2022 03:28 AM
LXer: Edit the Contents of ISO Disk Image with ISO Master LXer Syndicated Linux News 0 09-25-2011 04:20 PM
[SOLVED] LFS 6.7 : $LFS/sources and $LFS/tools folders missing prakashsince92 Linux From Scratch 5 12-09-2010 02:26 PM
How to generate iso image from RHEL4 DVD? chintan_gaurav8 General 3 01-07-2010 06:15 AM
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 10:15 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