LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-21-2021, 10:36 AM   #1
ilie321
LQ Newbie
 
Registered: Apr 2021
Posts: 6

Rep: Reputation: Disabled
help multi boot same partition 2 live images tiny linux different versions


Hello
i have this situation:
i want to boot 2 live images of tiny linux from same partition
each of them have files: kernel initrd and a squash.bin which need to be in folder "tiny" on this partition; how to do it?
i cant rename tiny i cant rename squash.bin
i can specify in grub the kernel path and initrd path but i dont know what to do with squash.bin
thanks for help

Last edited by ilie321; 04-21-2021 at 10:40 AM.
 
Old 04-21-2021, 02:26 PM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,578

Rep: Reputation: 2500Reputation: 2500Reputation: 2500Reputation: 2500Reputation: 2500Reputation: 2500Reputation: 2500Reputation: 2500Reputation: 2500Reputation: 2500Reputation: 2500
Did you try booting them directly from your Grub2 as iso images? Might work but I'm not sure about Tiny Linux.
Or have you extracted them both to the same directory named tiny? Don't see how that would work if both have the same directory names and file names. Is there a syslinux.cfg or isolinux.cfg file? If so, then modify the entry to fit Grub parameters.

Another possibility is to create a sub-directory for the 2nd version of tiny and put its files there.

The information you posted isn't enough to do more than give general informatoin. You would need to post the output on ls on the tiny directory at least.

Last edited by yancek; 04-21-2021 at 02:27 PM.
 
1 members found this post helpful.
Old 04-21-2021, 11:32 PM   #3
ilie321
LQ Newbie
 
Registered: Apr 2021
Posts: 6

Original Poster
Rep: Reputation: Disabled
thank you for answer
i have them in different folders but only one will work if the folder name is "tiny"
there is not an iso . each of them come with 4 files (commands initrd kernel and squash.bin) . i cant put them in same folder; if i rename sqaush.bin it will not find it at boot
i use grub to point to kernel and initrd path and the files "commands" and "squash.bin" need to be in folder tiny on the desired partition and it is booting ok
problem is that only one it will work on an partition
i have tried to do 2 folders tiny1 tiny2 ; if folder tiny dont exist with squash.bin it will not boot
i have tried to rename files squash.bin and squash1.bin only one version will boot.
for kernel and initrd i can rename files or the folder because i can point path in grub. only for squash.bin i have the problem
 
Old 04-22-2021, 06:52 AM   #4
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,578

Rep: Reputation: 2500Reputation: 2500Reputation: 2500Reputation: 2500Reputation: 2500Reputation: 2500Reputation: 2500Reputation: 2500Reputation: 2500Reputation: 2500Reputation: 2500
I checked some files I have on menuentries to boot iso files and Tiny will boot from an iso. Since you don't have an iso, not much point in posting that. Are you doing this for any particular reason, is it a class assignment or just a curiosity? Where and how did you get the files you reference as Tiny as well as other Linux systems generally come as an iso file and then of course, can be extracted if desired. An extracted TinyCore iso will generally have 2 directories (boot and cde) and the boot directory will contain the kernel, a core.gz file and isolinux directory. I don't see any and squash.bin in the version I downloaded.

I don't think renaming the various files you have will work. Have you tried putting the 4 files you have in the root of the partition and then creating a directory named tiny and putting the 4 files from the 2nd instance of Tiny in that directory?

Could you post the menuentries for both instances?

I had a similar problem years ago with distributions with the same directory/file structure from an iso. If you have the same directory and file names in the root of the system, obviously this won't work as copying the 2nd instance will overwrite the first. Also, I found that some systems required the directories and files to be in the root of the partition while others could be in a directory in that partition.
 
1 members found this post helpful.
Old 04-30-2021, 02:41 AM   #5
ilie321
LQ Newbie
 
Registered: Apr 2021
Posts: 6

Original Poster
Rep: Reputation: Disabled
Yes i have 2 versions of tiny that come like this (no iso) and they have some pre-installed programs that i need.
I will try to putone of them on root of partition

Last edited by ilie321; 04-30-2021 at 03:06 AM.
 
Old 05-22-2021, 12:59 PM   #6
ilie321
LQ Newbie
 
Registered: Apr 2021
Posts: 6

Original Poster
Rep: Reputation: Disabled
No luck. Where is defined the os directory name? If i can edit one version to search for other directory not "tiny" it should work
 
Old 05-22-2021, 02:25 PM   #7
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,578

Rep: Reputation: 2500Reputation: 2500Reputation: 2500Reputation: 2500Reputation: 2500Reputation: 2500Reputation: 2500Reputation: 2500Reputation: 2500Reputation: 2500Reputation: 2500
Quote:
Where is defined the os directory name?
Not sure what you are referring to? Also, the directories/files you indicate you have for your extracted Tiny are not the standard directories/files for Tiny Linux.

Quote:
i have them in different folders but only one will work if the folder name is "tiny"
Could you clarify what you mean by that? Do you mean when you have a directory named tiny and another named tiny1 or tiny2?

Quote:
I will try to putone of them on root of partition
So where are they now? In a sub-directory? Of what? You could try creating a directory named tiny in the / of that partition and copy the 4 folders/files you have there, Then create another directory with a different name, may name it linux and create a tiny sub-directory there and copy the 4 folder/files there and modify your Grub menuentry. This should eliminate the problem from your earlier post copied below.

Quote:
i have tried to do 2 folders tiny1 tiny2 ; if folder tiny dont exist with squash.bin it will not boot
Since this is not a standard Tiny (different folders/files) you might ask the people you got it from for a solution.

Quote:
i want to boot 2 live images of tiny linux from same partition
The above quote is from your initial post and the important word there is "want". Some Linux distributions extracted and booted in this manner need to have specific folder or file names and they need to be in a specific location, often in the / of the directory. THis is true of distributions such as Ubuntu and its derivatives which all have the same named folder/files when extracted so only one will boot from the / of the same partition. Sometimes creating a sub-directory on the partition will work.

Simplest solution since you indicate you 'want' to do this, create 2 small partitions, one for each Tiny. THe problem isn't with putting any number of extracted Linux iso's on the same partition, it is putting the same OS in the same location on the same partition.
 
1 members found this post helpful.
Old 05-22-2021, 04:43 PM   #8
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,399

Rep: Reputation: 1595Reputation: 1595Reputation: 1595Reputation: 1595Reputation: 1595Reputation: 1595Reputation: 1595Reputation: 1595Reputation: 1595Reputation: 1595Reputation: 1595
maybe putting one set of files in /boot.
 
1 members found this post helpful.
Old 05-31-2021, 02:51 AM   #9
ilie321
LQ Newbie
 
Registered: Apr 2021
Posts: 6

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
maybe putting one set of files in /boot.
I tried no luck. Thanks
 
Old 05-31-2021, 02:55 AM   #10
ilie321
LQ Newbie
 
Registered: Apr 2021
Posts: 6

Original Poster
Rep: Reputation: Disabled
"Not sure what you are referring to?"
I mean how the kernel know to search for tiny directory on root of partition. Tha name "tiny" should be declared somewhere in a config file or something
 
Old 05-31-2021, 06:20 AM   #11
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,578

Rep: Reputation: 2500Reputation: 2500Reputation: 2500Reputation: 2500Reputation: 2500Reputation: 2500Reputation: 2500Reputation: 2500Reputation: 2500Reputation: 2500Reputation: 2500
Quote:
I mean how the kernel know to search for tiny directory on root of partition
It doesn't. You need that in the grub.cfg file of whatever OS you are booting from and the files you have for tiny all need to be in the tiny directory.
 
Old 05-31-2021, 06:46 AM   #12
JAFAR-KEFAH
LQ Newbie
 
Registered: May 2021
Posts: 7

Rep: Reputation: Disabled
Hello please help me to calculate the NCR value for all nodes in the tcl file using awk.. where the NCR value is
NCR = ((P-R)/P)*100%
where
P-> Get Route Request
R-> Not send Route Reply
R = P – Q
Q->Reply Route Request
 
  


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
Have you tried USB boot of Slackware Live Edition? slackware-live/1.3.5.1 or other versions? philip0 Slackware - Installation 2 05-27-2020 12:06 PM
best practice Multihead, multi-screen, multi-display or multi-monitor-Debian 8 lgtrean Linux - Software 1 10-14-2015 09:53 AM
[SOLVED] Different Linux versions within different Linux distributions? White Essence Linux - Newbie 8 02-04-2013 06:00 PM
[SOLVED] awk: same test on same file by different scripts gives different result porphyry5 Programming 1 09-30-2012 05:26 AM
[SOLVED] what's the difference between a multi-cpu , multi-core and a multi-thread system ? entz Linux - Hardware 11 12-20-2011 04:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:59 AM.

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