LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 08-29-2017, 11:56 AM   #1
MrMeeSeeks
Member
 
Registered: Jan 2017
Posts: 32

Rep: Reputation: Disabled
multiple live-systems on a USB-drive


Okay,
I am sorry this is my second thread in quite a short while, but I honestly am at a loss as to what my actual problem is, so what to look for.

I would like to have a USB-drive with more than one live-system on it - say Debian and RedHat.
Now, I am well aware that it would be far easier to just have two sticks since they are dirt-cheap, but that would teach me nothing about the nature of live-systems or bootloaders, so ... no real use recommending that here. Also I appreciate there is a tool MultiBootUSB, but I would at least like to have a conceptual understanding of what it is most likely to do, and again: how the entire "booting from USB actually works.

But I'm not really sure how to go about it.
The Debian-docs on how to set up the installer on USB-drives seem to suggest that to make the USB-drive "bootable" it needs a bootloader, a kernel-image and some initial RAM-image - which all seems to be magically included when just copying the usual .iso-files as is suggested for convenience.
So I assumed it should be possible to have a bootloader on the device that might distinguish between a variety of live-systems. However, those live-systems to me are a somewhat mysterious black-box, since they just come as .iso-files.

From setting up GRUB for being able to use my old Windows - which I never ever touched since -, I recall that it was rather necessary to have separate partitions for each OS.

So ...
is a bootloader on the USB-drive even necessary for what I'm trying to do?
Is there an obvious easy way that I didn't think of?
If yes and no: which bootloader would I use for this? Is this something GRUB could do, and if not, why not? Is it then even a good idea to go with the live-system .iso-files or would I set up the live-systems differently?

Last edited by MrMeeSeeks; 08-29-2017 at 12:01 PM.
 
Old 08-29-2017, 02:53 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,105

Rep: Reputation: 3638Reputation: 3638Reputation: 3638Reputation: 3638Reputation: 3638Reputation: 3638Reputation: 3638Reputation: 3638Reputation: 3638Reputation: 3638Reputation: 3638
For the sake of your situation. I assume you want to do real installs to this usb drive just like it was a real hard drive. For this I usually say to remove all internal hard drives and be sure the usb shows up as a hard drive choice in bios. (not counting bios type uefi/legacy)

Then I follow the installers. Install the OS to the drive as if it were a hard drive. Grub or some loader will have to allow you to select the OS. Grub could be on almost anyplace the boot could access. I prefer to have grub on my flash drive.
That way I won't have any conflicting issues or changes. The flash drive will be mostly machine independent.

There could be a lot more to your question but I tried to make it brief.
 
Old 08-30-2017, 07:46 AM   #3
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,770

Rep: Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562
If you want 'live' systems on your usb drive, I would suggest reading the information at the link below which gives some details on the concepts. You could install Grub2 to the flash drive and then simply copy the various iso files of your Linux distributions to the same or a different partition on the usb and use the loopback boot menuentry for each iso. How to do this with examples is shown at the link below. You would need to manually create your grub.cfg file for this to work.

As to having a separate partition for each OS, that would be necessary if you are doing an actual full install but if you are booting a 'live' iso directly with the loopback method, they can all be on the same partition.

https://help.ubuntu.com/community/Grub2/ISOBoot
 
Old 08-30-2017, 07:59 AM   #4
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
easy2boot and other things to load live systems from .iso's. I tend to just partition a drive and have full installs on the partitions. With grub in the MBR. I also have multiple sticks. You can chainload grub to the "other" sticks so a hub and couple sticks isn't that much different than just one. Just be sure to use labels or UUIDs so you don't fall victim to /dev/ roulette.

"c"
GRUB> insmod part_gpt
GRUB> insmod ext2
GRUB> ls
GRUB> configfile (hd1,gpt1)/boot/grub/grub.cfg
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
What happened to the LiveCD/USB remaster systems? Linux-Live, Remastersys etc? linus72 Linux - General 2 09-27-2014 07:33 PM
LXer: Create a Bootable Live USB Thumb Drive or Rescue Drive Using UNetbootin LXer Syndicated Linux News 0 08-06-2012 03:10 AM
live persistent usb drive with multiple distros tweekville Linux - General 6 06-14-2011 04:10 PM
Problem Ubuntu live disk not recognising Internal and External Drive File Systems Ratbarf Linux - Newbie 9 01-07-2010 09:47 PM
Multiple live systems on a big USB stick mapsiddiqui Linux - General 2 06-04-2008 10:39 AM

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

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