LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 12-13-2009, 10:04 AM   #1
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
GRUB2 bootable SuperBuntu 9.04&9.10 DVD How-To!!


OK
I been playing with some Grub2 stuff and have made a couple/three DVD's
and one i really like is my SuperBuntu Installer DVD

it features all iso's of ubuntu/kubuntu/xubuntu both 9.04 and 9.10!
all booting from iso! on the DVD
it also has plop bootmanager and netbootcd

OK

Prerequisites:

1) a running 9.04 or 9.10 ubuntu-esque system, even livecd
with grub2 installed and "grub-rescue-pc" also installed

2) about 8+ GB of free space somewhere...

3) these helpful apps:
isomaster, grub2, syslinux, brasero or k3b, qemu-launcher

4) All 6 of whatever combo of ubuntu isos
for this one I used both 9.04 and 9.10 of each
ubuntu-9.04-desktop-i386.iso & 9.10
kubuntu-9.04-desktop-i386.iso & 9.10
xubuntu-9.04-desktop-i386.iso & 9.10

You can also use the 64 bit isos and any Ubuntu-esque isos
like
Mint-8 Helena and others.
You can have both 32 and 64 bit mixes too

STEP 1:

Using synaptic, install grub-rescue-pc and grub2 if not already installed; default with 9.10
http://packages.ubuntu.com/karmic/grub-rescue-pc

STEP 2:

Make a folder somewhere, for this how-to I'm gonna
use a folder named "DVD" on my Ubuntu 9.10 Desktop
and make another folder inside the DVD folder named "test"

mkdir -p Desktop/DVD/test

The grub-rescue-pc iso is in /usr/lib/grub-rescue
its called "grub-rescue-cdrom.iso"

so, we gotta cd into our Desktop/DVD folder, mount, and extract the iso to our Desktop/DVD/test folder,
as root, and we gotta make a mountpoint to mount iso on-

Code:
sudo su + password
cd Desktop/DVD
mkdir mnt
mount -o loop /usr/lib/grub-rescue/grub-rescue-cdrom mnt
cp -a mnt/* test
umount mnt
Now,
we got the iso extracted into our test folder
and there is a file in boot/grub folder named grub.cfg
go ahead and delete that grub.cfg as we won't need it.

Step 3:

Now, you gotta make a folder named "iso" in boot folder
this is where all the iso's will go-

mkdir -p test/boot/iso

Now, copy all your ubuntu iso's into the boot/iso folder
assuming all your iso's (6) are in /home/Downloads

cp -a /home/Downloads/* test/boot/iso

this will take a while
note that you can do all of this thru file manager called up as root
assuming gnome desktop
call up Nautilus as root

sudo nautilus
then select all the iso's you want and copy to boot/iso folder

While all thats being copied to your test/boot/iso folder
heres the new grub.cfg for your DVD
http://multidistro.com/scripts/grub.cfg
place this in boot/grub folder

Now, make sure you dont have word wrap on when you save the grub.cfg above!

save that as grub.cfg and put it in the test/boot/grub folder


STEP 4:

Now, everything in the recipe is complete, its time to put it in the iso maker
and run it thru Qemu!

Here is a script that will auto-make a grub2 iso cd/dvd
name it "grub2_iso.sh"
If you dont have genisoimage installed replace genisoimage with mkisofs
Code:
#------------------------------------------------------------
#!/bin/bash
# For creating Grub2 iso image
# Editable portions are iso name; "SuperBuntu.iso" in this case
# And the folder to be made into iso; "test" in this instance.
# Place this script in DVD folder and make executable with
# chmod +x grub2_iso.sh
# then invoke with
# ./grub2_iso.sh

genisoimage -v -r -b boot/grub/grub_eltorito -no-emul-boot -boot-load-size 4 -boot-info-table -o SuperBuntu.iso test

# EOF-----------------------------------------------------------------
As it says, place the script in Desktop/DVD folder and make it executable

when everything's ready invokde the script and wait awhile...

When its done make sure to run it thru Qemu via qemu-launcher and see if it all works!
 
Old 12-13-2009, 10:12 AM   #2
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Original Poster
Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
Also, big note
I first tried using the grub parameter

set root=(cd)

however, after burning dvd it said no such device??

so, dont use set root= anything in grub.cfg for ubuntu entries

how it is

Code:
menuentry "Ubuntu Live 9.04 32bit" {
    loopback loop /boot/iso/ubuntu-9.04-desktop-i386.iso
    linux (loop)/casper/vmlinuz boot=casper quiet splash iso-scan/filename=/boot/iso/ubuntu-9.04-desktop-i386.iso --
    initrd (loop)/casper/initrd.gz
}
with set root=

Code:
menuentry "Ubuntu Live 9.04 32bit" {
    set root=(cd)
    loopback loop /boot/iso/ubuntu-9.04-desktop-i386.iso
    linux (loop)/casper/vmlinuz boot=casper quiet splash iso-scan/filename=/boot/iso/ubuntu-9.04-desktop-i386.iso --
    initrd (loop)/casper/initrd.gz
}
maybe I put the set root= in wrong place or should I put it under
the
loopback loop etc,etc
?

anyway, it works witout the set root anyway

heres a couple pics too
http://multidistro.com/scripts/superbuntu1.png

http://multidistro.com/scripts/superbuntu2.png

http://multidistro.com/scripts/superbuntu3.png

Last edited by linus72; 12-13-2009 at 10:14 AM.
 
Old 12-13-2009, 07:33 PM   #3
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Original Poster
Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
So, I was also thinking to do a test run its better to use a cd-rw and just leave one of the iso's in boot/iso
and then leave the menu etc the same
create the 600+mb iso using the script and test it
if it boots and plays, then make the DVD

anybody tried it yet?
 
Old 12-14-2009, 05:52 PM   #4
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Original Poster
Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
Hey, was wonderin if'n anyone knew exactly whats in Ubuntu that allows it to boot from iso??
anyone know?

anyone try out the DVD yet?
 
Old 08-05-2010, 11:07 PM   #5
Paul G.
LQ Newbie
 
Registered: May 2006
Location: Auckland, New Zealand
Distribution: ArtistX 0.9
Posts: 7

Rep: Reputation: 0
Quote:
Originally Posted by linus72 View Post
Hey, was wonderin if'n anyone knew exactly whats in Ubuntu that allows it to boot from iso??
anyone know?

anyone try out the DVD yet?
Hi Linus72,

I've been sorting out a problem with GRUB and GRUB2 in a multiboot situation and came across your thread while searching for answers. I'm going to have a go at producing the multi-boot DVD just for the fun of it and maybe extend it to installing it to a USB flash drive once I have it working on the DVD.

As far as booting from an ISO, this is a new feature of GRUB-PC as far as I understand things.

Will take a while to put this all together and test it. I will post back with how I get on in a day or two.

Paul
 
Old 08-06-2010, 05:59 AM   #6
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Original Poster
Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
hey PaulG

the one's I was trying with was 9.04/9.10; so I know the new 10.04/10.10 iso's will work..or should.

Make sure you add Plop Bootmanager (plpbt) and new NetbootCD too to extend the functionality..
you can get the Plop I use from any of my CD's, as newer Plop doesn't seem to be as good?
tell me if any issues, etc
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to I make a bootable CD that contains grub2? Mountain Linux - General 3 08-06-2010 01:28 AM
Grub2 questions: need to know grub.cfg syntax for bootable grub_eltorito iso's?? linus72 Linux - General 11 02-11-2010 06:20 PM
Cannot make a bootable DVD copy of original Linux DVD. aimee01 Linux - General 2 06-02-2008 02:19 PM
Bootable DVD drmjh Linux - Newbie 7 05-11-2006 08:50 PM
Bootable DVD??? Garrett_80 Linux - Hardware 1 11-28-2004 11:46 AM

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

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