LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-31-2014, 06:57 PM   #16
passinthru
Member
 
Registered: Oct 2013
Location: Mid-Atlantic USA
Distribution: various debians and *buntus
Posts: 51

Original Poster
Rep: Reputation: Disabled

Quote:
Originally Posted by sidzen View Post
Has LILO been tried?
The short answer is no. Please see this post.

Thanks.
 
Old 07-31-2014, 07:16 PM   #17
passinthru
Member
 
Registered: Oct 2013
Location: Mid-Atlantic USA
Distribution: various debians and *buntus
Posts: 51

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jefro View Post
Plenty of hits on search for multiboot and syslinux.
I'm assuming one of them ought to work.
http://blog.jak.me/2013/01/03/creati...sing-syslinux/
Slightly different.
http://fomori.org/blog/?p=747
Many more exist.
Thanks. The links you provide are some of the best references I have found to learn how to create a bootable and multi-boot flash drive. I discovered them on one of my first searches for info on booting and multi-booting flash drives over a year ago. However, they do not address my particular question here. Neither does the plethora of information on grub, grub2, grub4dos, lilo, etc. I have spent no small amount of time reading syslinux and grub documentation at their respective sites. Having learned how to create a bootable and multi-boot flash drive, these documents, which address the parameters required to move the booting process along successfully, should be educational and beneficial. Unfortunately, I do not understand the parameters for the various boot loaders. Thus my inquiry of the more learned here.
 
Old 08-01-2014, 05:29 AM   #18
passinthru
Member
 
Registered: Oct 2013
Location: Mid-Atlantic USA
Distribution: various debians and *buntus
Posts: 51

Original Poster
Rep: Reputation: Disabled
The creator of Easy2Boot has answered my question as to the possibility of multi-booting Debian isos. (You might be interested in this conversation.)
 
Old 08-01-2014, 09:35 AM   #19
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,482

Rep: Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485
I had these two iso files: linuxmint-201403-mate-dvd-32bit.iso which is Mint Debian with Mate Desktop, debian-live-6.0.7-i386-gnome-desktop.iso

I used gparted to create two equal partitions formatted ext2 on a 4GB flash. I then booted debian from a flash drive and installed Grub2 to the mbr of the 4GB flash drive pointing to the first partition with the Grub boot files.

Booted a Linux system and loop mounted the debian iso file and copied all its files to the first partition of the 4GB flash. I then copied the LMDE-Mate iso directly to the second partition and put the entries below in a manually created grub.cfg file. Used blkid to get the correct UUID for the second partition for the Mint entry.

menuentry "Debian 6.0" {
set root='(hd0,msdos1)'
linux /live/vmlinuz boot=live config quiet
initrd /live/initrd.img
}
menuentry "LMDE" {
loopback loop (hd0,2)/linuxmint-201403-mate-dvd-32bit.iso
linux (loop)/live/vmlinuz isofrom=/dev/disk/by-uuid/cf8cc016-c746-47f2-9f9b-796ebf310371/linuxmint-201403-mate-dvd-32bit.iso boot=live live-config live-media-path=/live
initrd (loop)/live/initrd.img
}

Tested on two machines, both booted on both systems to Desktop.
Easy2boot looks like some really useful software. Glad you got it working.

Last edited by yancek; 08-01-2014 at 09:37 AM.
 
1 members found this post helpful.
Old 08-01-2014, 10:19 AM   #20
passinthru
Member
 
Registered: Oct 2013
Location: Mid-Atlantic USA
Distribution: various debians and *buntus
Posts: 51

Original Poster
Rep: Reputation: Disabled
Thumbs up

I expected to hear back from you yancek! You do not seem to me to be inclined to turning down a challenge in these matters. You are amazing!

Quote:
Originally Posted by yancek View Post
I then copied the LMDE-Mate iso directly to the second partition and put the entries below in a manually created grub.cfg file.
So if I am understanding you, you could place another iso or two on hd0,2 with the required menuentries in grub.cfg on hd0,1 and boot them as well?

I'm going to try this myself, but I wonder if you would try dropping solydx32_201407.iso.torrent (other download options) and posting your menuentry?

My question is if the "fromiso=<uuid>" parameter will cause confusion (which I suspected to be the reason for the failure in my case; and I could not get a handle on the proper use of these parameters, particularly between grub and syslinux).

Quote:
Originally Posted by yancek View Post
Easy2boot looks like some really useful software. Glad you got it working.
It is amazing software to me, but then so is your success with this. Thanks again!

###################

Edit: I was re-reading your post and realized that you are using a 4GB drive containing 2 2GB partitions. I saw one thing and heard another. Story of my life!

Last edited by passinthru; 08-01-2014 at 01:04 PM. Reason: oversight
 
Old 08-01-2014, 03:54 PM   #21
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,482

Rep: Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485
Quote:
So if I am understanding you, you could place another iso or two on hd0,2 with the required menuentries in grub.cfg on hd0,1 and boot them as well?
Yes, maybe. The LMDE entry I posted above has a uuid in the menuentry. I found this about a year ago, I think on the Mint forums and modified it to suit the current release. Grub2 is capable of booting an iso directly in this manner but the iso or distribution itself must be capable of BEING booted in that manner. Most are not. You should be able to boot any Linux from Grub or Grub2 if you loop mount and then copy the extracted files to the / of the flash partition. One thing which will cause problems if you are doing this with Grub Legacy or Syslinux is if you have 2 systems with the same directories/files in the / of the system. You can see this if you loop mount LMDE and Debian as they both have a 'live' directory which contains the kernel, initrd and filesystem.squashfs. If they are on the same partition, only one will boot, always the same one. You indicated earlier that you had booted Ubuntu derivatives from iso. Below is the output of the ls command on the second partition of a flash drive I have booting iso files directly. The first partition has a number of different systems booting with Grub Legacy and has a chainload entry to the /boot/grub directory on the second partition:

Quote:
bodhi-2.2.0-32.iso boot kubuntu-12.04.2-desktop-i386.iso linuxmint-14-kde-dvd-32bit.iso
lubuntu-12.04-desktop-i386.iso Peppermint-3-20121105-i386.iso ubuntu-12.04.1-desktop-i386.iso
There is only one directory, the boot directory which contains the grub directory and the usual grub2 files including grub.cfg. The boot directory and the iso files are the only contents of the partition. I've booted them in VBox and on several different machines. They all boot. Note one important similarity, they are all Ubuntu derivatives. Below is a sample grub.cfg menuentry from the grub.cfg file. This entry should work for pretty much any Ubuntu (at least the major ones) by simply replacing the iso name below with the actual iso name you are using. Note that the entry below is different from the LMDE entry I posted earlier, no uuid needed.
Quote:
menuentry "Linux Mint 14" {
loopback loop /linuxmint-14-kde-dvd-32bit.iso
linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=/linuxmint-14-kde-dvd-32bit.iso quiet splash --
initrd (loop)/casper/initrd.lz
}
Quote:
My question is if the "fromiso=<uuid>" parameter will cause confusion (which I suspected to be the reason for the failure in my case; and I could not get a handle on the proper use of these parameters, particularly between grub and syslinux).
I would not expect an entry like the one I posted earlier to work with Syslinux or Grub Legacy but haven't tried it. As you can see in the Mint KDE entry above, it isn't used or needed. I'll see if I can get solydx downloaded and give it a try. I would expect that multiple systems could be booted thus as the iso name is different but don't know.
 
1 members found this post helpful.
Old 08-01-2014, 07:28 PM   #22
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,482

Rep: Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485
I downloaded "solydx32_201407.iso" and copied it to the same partition on which I had LMDE on the flash drive. Had to first resize the partition as it wasn't big enough for both. Both LMDE and SolydX booted with no problems, menuentry for solydx below:

Quote:
menuentry "SolydX" {
loopback loop (hd0,2)/solydx32_201407.iso
linux (loop)/live/vmlinuz isofrom=/dev/disk/by-uuid/cf8cc016-c746-47f2-9f9b-796ebf310371/solydx32_201407.iso boot=live live-config live-media-path=/live
initrd (loop)/live/initrd.img
}
 
1 members found this post helpful.
Old 08-02-2014, 06:46 AM   #23
passinthru
Member
 
Registered: Oct 2013
Location: Mid-Atlantic USA
Distribution: various debians and *buntus
Posts: 51

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by yancek View Post
I downloaded "solydx32_201407.iso" and copied it to the same partition on which I had LMDE on the flash drive. Had to first resize the partition as it wasn't big enough for both. Both LMDE and SolydX booted with no problems, menuentry for solydx below:
I too got it to work. The key from the start was the "fromiso" parameter in the grub menuentry (of which darethehair first made me aware).

So far as I have found, there is no list of these command line parameters for either grub or syslinux. I see parameters all over the web for both which I can not find in the official grub or syslinux documentation. I knew what was preventing the second Debian iso from booting, but I could not find how to tell it to read its own filesystem.

If there is and anyone knows of the syslinux equivalent to "fromiso", I would like to know what it is.
 
Old 08-02-2014, 12:53 PM   #24
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,482

Rep: Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485
Quote:
If there is and anyone knows of the syslinux equivalent to "fromiso", I would like to know what it is.
I don't think that works with syslinux or Grub Legacy, booting an iso directly. It might be that developers of different distributions have made modifications to enable this behavior in Grub2, I don't really know.

You can boot multiple systems from the same partition with Grub Legacy if you loop mount them and copy the directories/files to the partition. Most of them require the files to be in the / of the partition on a hard drive The problem you will have is that if you are using Debian and derivatives, they have the compressed filesystem file as well as the kernel and initrd file in the same location (live directory) and they all have the same name. This is true with Ubuntu, the casper directory contains the compressed filesystem file as well as the kernel and initrd files. You could do this by putting each on a separate partition.

Some systems can boot from a directory. For example, I created a puppy directory in the / of a partition, put all of its files/directories inside this puppy directory and was able to boot it. Tried this with several other distributions. Some would boot, others would not.

Last edited by yancek; 08-02-2014 at 12:55 PM.
 
1 members found this post helpful.
Old 08-03-2014, 02:03 PM   #25
passinthru
Member
 
Registered: Oct 2013
Location: Mid-Atlantic USA
Distribution: various debians and *buntus
Posts: 51

Original Poster
Rep: Reputation: Disabled
I came to learn and have learned that two Debian isos can be booted on one usb device. My thanks to all here for yet another beneficial conversation.

--------
08/07/2014 - What I learned is that almost anything that can be booted can be booted with grub for dos (which is proven by easy2boot). So far as I am concerned, grub for dos is the boot loader for multi-boot usb devices.

Last edited by passinthru; 08-07-2014 at 11:37 AM. Reason: addendum
 
Old 08-04-2014, 12:01 PM   #26
gor0
Member
 
Registered: Jun 2014
Distribution: quad BOOT!
Posts: 549

Rep: Reputation: 65
too many hassles to put on USB a scullion distro !
 
  


Reply

Tags
debian, live, multiboot, usb


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Multi-boot between various Linux distros Nick_C Linux - Newbie 2 05-20-2012 09:45 AM
What is the best way to multi-boot several Linux distros? Mountain Linux - General 10 11-11-2009 04:47 PM
Multi-boot XP Pro with several linux distros Rubicon244 Linux - Newbie 2 09-21-2008 11:23 PM
Multi-boot DVD with multiple Distros Predatorian Linux - Software 0 09-15-2008 03:44 PM
Slack and other Distros: Multi Boot Questions c31c Slackware 5 10-22-2004 05:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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