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 - 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 07-26-2008, 02:10 PM   #1
marfee
LQ Newbie
 
Registered: Apr 2007
Posts: 8

Rep: Reputation: 0
Multi-image bootable USB pen-drive


I have a USB pen-drive which I was planning to fill with multiple image-files (ISO) of different OS'es (such as different linux-distro's and different versions of windows), so I won't have to dig around for my different disks every time I need to install a different system (I do this a lot at work, and such a device would save me a lot of time).

I therefore need a bootloader on this pen-drive, so I will be able to choose which image I wish to boot from, and I want this to work in both virtual and "real" machines.


My problem is:

As I have little experience with bootloaders in general, I have no idea which bootloader to use, or how to set this up.

If anyone here could give me a few pointers, or even a guide, it would be greatly appreciated.
 
Old 07-27-2008, 06:50 AM   #2
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 217Reputation: 217Reputation: 217
I don't really know about this one.

One possibility would be to use the USB as if it were an HDD and install distros to it in a normal manner and use the default grub or lilo bootloader provided... not sure how well this would work but if you make a dedicated /boot on the USB it should work... not totally sure on this. It's an idea I thought of before, the one thing that did worry me hwoever is that drivers will change between machines and thus images on the USB won't actually be as portable as you might like. Also references may change as well...

But that's an idea, I don't have much knowledge of bootloaders either to be honest .
 
Old 07-28-2008, 09:50 AM   #3
marfee
LQ Newbie
 
Registered: Apr 2007
Posts: 8

Original Poster
Rep: Reputation: 0
The problem with installing the distro's to the pen-drive, is that I will not be able to boot as if I was booting from an install-disc.

I did consider this option, but after loading an OS, I will not be able to boot from the images.

There must bee a bootloader out there somewhere that supports booting from ISO-images, but to track it down and set it up is another issue...
 
Old 08-23-2008, 06:09 AM   #4
marfee
LQ Newbie
 
Registered: Apr 2007
Posts: 8

Original Poster
Rep: Reputation: 0
Are there noone here that knows of a boot loader that can boot from .iso-files?

I can most likely figure out for myself how to set it up, but I cannot find one myself (believe me, I've tried).
 
Old 08-23-2008, 06:27 AM   #5
pinniped
Senior Member
 
Registered: May 2008
Location: planet earth
Distribution: Debian
Posts: 1,732

Rep: Reputation: 50
Hmm .. BIG ask because:

1. the bootloader needs to understand the filesystem of the USB stick (usually FAT16 or FAT32)
2. the bootloader needs to understand the ISO9600 file system
3. the bootloader needs to load the initrd and linux kernel (traditional bootloader role)
4. the bootloader needs to specify its own 'init' which will mount the iso image, perhaps set some environment variables (so that the installer uses the mounted *.iso rather than attempting to mount a non-existent CD), then chain to the 'init' script of the initrd image.

As far as I know, no one has done it - but it looks like a fantastic summer project.
 
Old 08-24-2008, 06:00 AM   #6
marfee
LQ Newbie
 
Registered: Apr 2007
Posts: 8

Original Poster
Rep: Reputation: 0
Oh man...

Looks like I have to find another solution here then.

I can't expect to get this working unless I program it myself it seems...

Thanks for the help anyway.

Last edited by marfee; 08-24-2008 at 06:01 AM.
 
Old 08-24-2008, 06:10 AM   #7
pinniped
Senior Member
 
Registered: May 2008
Location: planet earth
Distribution: Debian
Posts: 1,732

Rep: Reputation: 50
Well, ONE thing that will work is:
1. Partition the USB stick into several parts
2. Unpack the contents of each *.iso into each part
3. Install GRUB in one partition (you may modify one of the partitions with an iso image for this purpose)
4. Configure GRUB to allow you to start whichever installer you wish.

Hmm... well, you'll have to try it to see if it works - I can't guarantee that the installer's init scripts don't attempt to mount and chroot to a nonexistent CD. Then again, even if they did, that just means a little extra work unpacking the initrd images and modifying their 'init' scripts. The only drawback is that you can't just change your boot/install options by copying yet another *.iso file to a single directory. Also, the number of installers you can boot is somewhat limited by the number of partitions you can create.
 
Old 08-25-2008, 09:56 AM   #8
marfee
LQ Newbie
 
Registered: Apr 2007
Posts: 8

Original Poster
Rep: Reputation: 0
This does seem promising, I will give it a try when I get a chance.
 
Old 08-25-2008, 01:18 PM   #9
n6yga
LQ Newbie
 
Registered: Mar 2008
Posts: 2

Rep: Reputation: 0
Do a Google search for isolinux. You may find what you need there...

Mark.
 
Old 08-27-2008, 07:26 AM   #10
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
sidux has an option which knoppix calls the 'poor man's install"

basically you put an iso onto the stick and the bootloader has an option to boot the iso.

Its on the 1.5G full kde sidux but it may also be on the smaller ones?
 
Old 11-19-2008, 07:53 AM   #11
actmnophn
Member
 
Registered: Mar 2008
Posts: 53

Rep: Reputation: 15
I think grub4dosdoes this exact thing you are looking for. There is one possible problem tho. grub needs to be able to recognize your usb stick. AND it will only boot at usb 2.0 there are some posts around the web on how to get around these problems but if you can manage with them it is much simpler.

start here:
http://www.911cd.net/forums//index.php?showtopic=18650
 
  


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
Burning .Iso image on pen drive? linuxlover.chaitanya Linux - Software 14 09-01-2008 03:56 AM
Making Pen Drive Grub bootable gkgm Linux - Enterprise 2 04-07-2008 12:43 AM
using usb pen drive as multi-boot device blotch Linux - Software 1 09-27-2007 05:39 AM
Making a usb card(pen drive) bootable with damn small linux Digital Surgeon DamnSmallLinux 2 01-05-2007 07:56 PM
Trouble Burning ISO image to USB pen drive madh@ter Linux - Hardware 1 08-30-2004 10:29 AM

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

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