Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Other Community Discussions > Tutorials & Tips
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Ubuntu 9.10 is out!!!

When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu.

The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely.

Tutorials & Tips
The place to find Ubuntu related Tips & Tricks.

 
Thread Tools Display Modes
Old March 11th, 2005   #1
GrapeApe
First Cup of Ubuntu
 
Join Date: Mar 2005
Beans: 11
HOWTO: Make a Ubuntu Boot-CD (Like a boot floppy)

This will make a boot cd which is similar to a boot floppy. It bypasses grub, but still uses your partitions. Really only useful if you mess up grub, or copy your installation to a new hard drive and need to reinstall grub. It's not a full O/S on CD. Just the kernel. It's always nice to have in case something gets messed up.

( 1 ) Install syslinux (package).

( 2 ) make a directory called bootcd

( 3 ) copy /usr/lib/syslinux/isolinux.bin to bootcd

( 4 ) copy desired kernel image from /boot to bootcd/linux. Example:
cp /boot/vmlinuz-2.6.10-4-386 bootcd/linux

( 5 ) copy desired initrd.img from /boot to bootcd/initrd.img. Example:
cp /boot/initrd.img-2.6.10-4-386 bootcd/initrd.img

( 6 ) edit bootcd/isolinux.cfg and place the following line
DEFAULT linux initrd=initrd.img ro root=<your-root-dev>
Where, <your-root-dev> will be something like /dev/hda1. If you don't know your root device, look at your current grub config in /boot/grub/menu.lst.

( 7 ) make your iso image via (you should be one directory below bootcd).
mkisofs -o bootcd.iso -b isolinux.bin -c boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -J -hide-rr-moved -R bootcd/

( 8 ) burn the image to CD.

( 9 ) Test it.

Hopefully this will work for you and be helpful to someone. It worked for me in hoary.

You can burn the iso to CD by finding the iso in the directory viewer (nautilus). When you find your ISO, right click and hi-lite "Write To Disk". Follow instructions.

Obviously you need a cd-burner.

This is fairly easy, but figured it may help someone out at some point.
GrapeApe is offline   Reply With Quote
Old March 12th, 2005   #2
Nano
Gee! These Aren't Roasted!
 
Join Date: Oct 2004
Location: Barcelona, Spain
Beans: 185
Xubuntu Jaunty Jackalope (testing)
Send a message via ICQ to Nano Send a message via MSN to Nano Send a message via Skype™ to Nano
Re: HOWTO: Make a Ubuntu Boot-CD (Like a boot floppy)

Quote:
Originally Posted by GrapeApe
This will make a boot cd which is similar to a boot floppy. It bypasses grub, but still uses your partitions. Really only useful if you mess up grub, or copy your installation to a new hard drive and need to reinstall grub. It's not a full O/S on CD. Just the kernel. It's always nice to have in case something gets messed up.

( 1 ) Install syslinux (package).

( 2 ) make a directory called bootcd

( 3 ) copy /usr/lib/syslinux/isolinux.bin to bootcd

( 4 ) copy desired kernel image from /boot to bootcd/linux. Example:
cp /boot/vmlinuz-2.6.10-4-386 bootcd/linux

( 5 ) copy desired initrd.img from /boot to bootcd/initrd.img. Example:
cp /boot/initrd.img-2.6.10-4-386 bootcd/initrd.img

( 6 ) edit bootcd/isolinux.cfg and place the following line
DEFAULT linux initrd=initrd.img ro root=<your-root-dev>
Where, <your-root-dev> will be something like /dev/hda1. If you don't know your root device, look at your current grub config in /boot/grub/menu.lst.

( 7 ) make your iso image via (you should be one directory below bootcd).
mkisofs -o bootcd.iso -b isolinux.bin -c boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -J -hide-rr-moved -R bootcd/

( 8 ) burn the image to CD.

( 9 ) Test it.

Hopefully this will work for you and be helpful to someone. It worked for me in hoary.

You can burn the iso to CD by finding the iso in the directory viewer (nautilus). When you find your ISO, right click and hi-lite "Write To Disk". Follow instructions.

Obviously you need a cd-burner.

This is fairly easy, but figured it may help someone out at some point.
Thanks a lot, this is great.
I'll have to use when I'll format my windows partition and reinstall it.

Cheers
__________________
-------------------------------------
Ubuntu in Spanish is Ubuñtu!
Running Aspire 9814 AMD64 & Extensa 5620
Nano is offline   Reply With Quote
Old July 4th, 2005   #3
datu
First Cup of Ubuntu
 
Join Date: Jul 2005
Location: Philippines
Beans: 6
Re: HOWTO: Make a Ubuntu Boot-CD (Like a boot floppy)

Will this boot an Ubuntu install from a USB HD?

I installed ubuntu to a USB 2.0 6GB HD. . . when i installed it ubuntu saw it as a scsi device, sda.

What i want to do is pop a CD into the CD Rom and have it boot straight into ubuntu without installing grub or any kind of boot loader. Im still using windows XP.

Im i making sense?

lol

thnx
datu is offline   Reply With Quote
Old July 17th, 2005   #4
MySchizoBuddy
5 Cups of Ubuntu
 
Join Date: Jun 2005
Beans: 15
Re: HOWTO: Make a Ubuntu Boot-CD (Like a boot floppy)

How do u change it so to allow booting of Windows from Cd as well
MySchizoBuddy is offline   Reply With Quote
Old February 18th, 2007   #5
djvishnu
A Carafe of Ubuntu
 
djvishnu's Avatar
 
Join Date: Dec 2005
Location: Trondheim, Norw
Beans: 90
The Feisty Fawn Testing
Send a message via MSN to djvishnu Send a message via Skype™ to djvishnu
Re: HOWTO: Make a Ubuntu Boot-CD (Like a boot floppy)

doh - posted by mistake
djvishnu is offline   Reply With Quote
Old December 17th, 2007   #6
Princegiri
5 Cups of Ubuntu
 
Princegiri's Avatar
 
Join Date: Oct 2007
Beans: 34
Ubuntu 7.04 Feisty Fawn
Thumbs down Re: HOWTO: Make a Ubuntu Boot-CD (Like a boot floppy)

can an OS selection screen also be packed with this method??? can windows or other distros be selected at boot time?

further, i have this problem. I have my ubuntu FF installed on an external hard disk drive.

At home, on my desktop machine, i have the option of booting from "USB EXTERNAL HARDDISK" in my BIOS......
BUT my laptop doesnt. this means that i can use this BOOTCD to boot into the ubuntu on my external drive, with my laptop.

PROBLEM: on my desktop machine there are already two internal hard disks, so the external one is (hd2) (/dev/sdc3 on linux) while in my laptop there is only one hard disk.
so this means that the external device will now be (hd1) and linux will be on (/dev/sdb3), right?

SOLUTION
: will changing the isolinux.cfg file to point to /dev/sdb3 instead of /dev/sdc3 solve the issue????

Last edited by Princegiri; December 17th, 2007 at 10:57 AM..
Princegiri is offline   Reply With Quote
Old April 2nd, 2008   #7
yufeng66
First Cup of Ubuntu
 
Join Date: Mar 2008
Beans: 1
Re: HOWTO: Make a Ubuntu Boot-CD (Like a boot floppy)

Does this still work with more recent ubuntu distributions?

one section of my menu.lst looks like this

title Ubuntu hardy (development branch), kernel 2.6.24-12-generic
root (hd0,4)
kernel /boot/vmlinuz-2.6.24-12-generic root=UUID=b83661e5-2869-4ac8-ae8d-890fbc5d530b ro quiet splash
initrd /boot/initrd.img-2.6.24-12-generic

should I use root=UUID=b83661e5-2869-4ac8-ae8d-890fbc5d530b in the isolinux.cfg?
yufeng66 is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

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

Forum Jump


All times are GMT -4. The time now is 04:01 AM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry