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 05-16-2022, 06:24 AM   #16
glanzfreya
LQ Newbie
 
Registered: Jan 2022
Posts: 24

Original Poster
Rep: Reputation: 0

Hi all,

I have tried these methods and none of them working:
1. Create a tarball, it cannot works with symlinks
2. Try to move them to flashdisk, can't work too with symlinks and for /media folder in '/' directory
3. Try mkisofs -> command not found

I am now trying clonezilla.
Please if anyone ever encounter this situation and want to create image / iso that exactly the same system they created for LFS/BLFS let me know how.

Thank You
 
Old 05-16-2022, 08:35 AM   #17
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,286

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Have you searched through LFS hints?
 
Old 05-17-2022, 09:28 AM   #18
glanzfreya
LQ Newbie
 
Registered: Jan 2022
Posts: 24

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by business_kid View Post
Have you searched through LFS hints?
Not yet, what is LFS hints?
 
Old 05-17-2022, 09:39 AM   #19
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,570
Blog Entries: 19

Rep: Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451
Why don't you google it?
 
Old 05-18-2022, 04:34 AM   #20
derguteweka
Member
 
Registered: Sep 2018
Distribution: BLFS
Posts: 74

Rep: Reputation: 21
Moin,

I'd suggest to just do the whole B/LFS thing one more time, and now right on the Target-HW in the old-fashioned way (as described in the Books) without QEMU. ("Nicht zur Strafe, nur zur Uebung" = Not as a punishment, just as an exercise :-) ).

cheers,
WK
 
Old 05-19-2022, 01:56 AM   #21
glanzfreya
LQ Newbie
 
Registered: Jan 2022
Posts: 24

Original Poster
Rep: Reputation: 0
Hi all,

yes actually I need to do it one more time. As punishment and exercise.. but, I think to create the ISO is important, why? laptop and computers have its own deterioration date, 3 years you have to buy a new laptop. So instead of do LFS every 3 years I can use ISO created. That is the reason behind why I want to create Image / ISO for my LFS OS.

Hopefully someone out there could help me. But I will do LFS again, wait for LFS 12 on September 1st 2022.

I am still doing some works with my OS in Qemu, fixing and learning more about BLFS here.
 
Old 05-19-2022, 12:51 PM   #22
derguteweka
Member
 
Registered: Sep 2018
Distribution: BLFS
Posts: 74

Rep: Reputation: 21
Moin,

Well, sure the hardware starts rotting. But software rots even worse and faster. I'd not recommend to put some 3 year old LFS on some new HW, while the opposite is pretty good working: A couple of months ago i built some fresh B/LFS on a Dell Inspiron 8200, which is almost 20 years old (before, I had to change fans and also put in some PATA->SSD Adapter, because i was not able to get 2.5" PATA HDD at reasonable price/quality).
Anyway, it is of course possible to transfer a whole BLFS to another machine. I have no idea, what you're doing wrong - e.g. if you have no mkisofs command, try to locate the src package and build it.
Also afaik tar has no problems with symbolic links, so if you encounter problems, be more specific.

If you managed to put the rootfs to another machine, also be sure to do the right things concerning the bootloader.

cheers,
WK
 
Old 05-20-2022, 05:19 AM   #23
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,286

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
I can see what you're doing. What I object to is the 'read only' element inherent in an iso. You can do an rsync backup and it's copied over in 20 minutes.
 
Old 05-21-2022, 02:07 AM   #24
glanzfreya
LQ Newbie
 
Registered: Jan 2022
Posts: 24

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by derguteweka View Post
Moin,

Well, sure the hardware starts rotting. But software rots even worse and faster. I'd not recommend to put some 3 year old LFS on some new HW, while the opposite is pretty good working: A couple of months ago i built some fresh B/LFS on a Dell Inspiron 8200, which is almost 20 years old (before, I had to change fans and also put in some PATA->SSD Adapter, because i was not able to get 2.5" PATA HDD at reasonable price/quality).
Anyway, it is of course possible to transfer a whole BLFS to another machine. I have no idea, what you're doing wrong - e.g. if you have no mkisofs command, try to locate the src package and build it.
Also afaik tar has no problems with symbolic links, so if you encounter problems, be more specific.

If you managed to put the rootfs to another machine, also be sure to do the right things concerning the bootloader.

cheers,
WK
Bonjour...
Yes on software rots faster, but the funny thing is software related vendor or companies make more money than hardware related one. I think it is because they do not need storage thus lessening the cost and making more profit. Quite out of topic, but for discussion purpose haha. PATA HDD is the best kind of Hard Disk to use for PlayStation 2.

I will install package so I can use mkisofs or use rsync as BusinessKid already said too.

Bootloader means Grub configuration for new machine.

Thanks all, if I manage to make an ISO or encounter problems I will post it here.
 
Old 06-23-2022, 03:41 AM   #25
glanzfreya
LQ Newbie
 
Registered: Jan 2022
Posts: 24

Original Poster
Rep: Reputation: 0
My Update on Create ISO for LFS OS in Qemu

Hi all,

I posted this at another forum, think that is the right place, but you may read it:
https://unix.stackexchange.com/quest...m-scratch-oper

my update, I can mount the qcow2 image and see it to create the iso by using mkisofs, and the problems still existing:
1. Symlinks too many
2. A bit worry that the ISO created by mkisofs cannot work like it has to at my Host OS / on the real hardware (not on Qemu)

Any opinion?
(redo LFS on real hardware will be done when LFS 12.0 is out, I think it is a pity to redo now, I am still using the LFS OS in Qemu for learning Julia package.)
 
Old 06-29-2022, 08:38 AM   #26
glanzfreya
LQ Newbie
 
Registered: Jan 2022
Posts: 24

Original Poster
Rep: Reputation: 0
Just want to tell you all:
1. Rsync from Qemu
2. edit fstab for both Host and LFS OS
3. Do grub update at main/host OS

Dual boot is working now.
 
  


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 10:29 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