LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-08-2019, 05:31 AM   #1
AlexM202020
LQ Newbie
 
Registered: Mar 2019
Posts: 4

Rep: Reputation: Disabled
How to merge squashfs file during manual boot of “live” linux distros from GRUB?


I want to boot Linux distros from GRUB 2.0 command line. I've tried to do so for couple of distros and at "best" I receive initramfs prompt, no GUI which starts if distro is run stardard way. Resulting file system seems to have files contained in initrd file (less then 100Mb), but not in filesystem.squashfs (which is larger than 1Gb).

vmlinux, initrd and filesystem.squashfs files are in casper folder and linux command in menu entry in grub.cnf in distros contains boot=casper, I suspect folder name casper is not necessary for kernel option to work, casper is persistence something option related as far as I understood from wikipedia.

I've played several tries with setting root in GRUB and passing root parameter to vmlinuz to no success.

On last try:
Code:
linux (hd0,msdos2)/casper/vmlinuz root=UUID=what ls command gives for partition with distro hoping I've typed it correctly
initrd (hd0,msdos2)/casper/initrd
boot
kernel boot starting, ending with many lines
Code:
stdin: Not a typewriter
then finally
Code:
(initramfs) Unable to find a medium containing live file system
and CLI prompt.

I've run grep -rnw 'initrd file loop mounted location' -e 'filesystem.squashfs' to find out how init process scripts find the file and got nothing.

How to make sure boot finds and merges filesystem.squashfs?

P.S. I want to make multi-boot USB using Linux, could not make work what I've read, so tackling the problem manually now and want to be able to configure freely.

Last edited by AlexM202020; 03-08-2019 at 05:35 AM.
 
Old 03-09-2019, 08:12 AM   #2
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
ok I can help you with making a multidistro usb using many linux distros
What exact distros do you want on your usb and size of usb??
 
Old 03-09-2019, 11:29 AM   #3
AlexM202020
LQ Newbie
 
Registered: Mar 2019
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thank you. I want to understand the process, to be able to go further to building distro myself. My current obstacle I explained in the question. As for practicality for now, I have 32gb so as a distro takes less than 2Gb as I see, I want to be able to download new one and add it to new 3-4Gb partition and to grub.cfg menu on USB. The ones I downloaded now - Ubuntu, Linux Lint, Fedora - some several versions each (e.g different desktops). To combine kernel etc. with desktop of my choice could be my next step.
 
  


Reply

Tags
grub 2, grub config



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
Customise a live boot linux ISO - editing initrd (squashfs) TheGreyGhost Linux - Newbie 11 08-15-2014 03:38 PM
Infinite Grub Loop: GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB... beeblequix MEPIS 2 11-02-2013 10:56 PM
Live CD not proceeding to second stage of boot after squashfs image editing cyber_apostle Programming 0 11-13-2009 02:34 AM
Merge many files in to one big file. like 20 file merge in one big file Jmor Linux - Newbie 2 10-29-2008 09:41 PM
convert and merge a fat32 to ext3 and then merge w/ another ext3? nkoplm Linux - General 3 03-23-2006 10:37 PM

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

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