LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-09-2007, 12:58 PM   #1
pwabrahams
Member
 
Registered: Nov 2005
Location: Deerfield MA
Distribution: OpenSuSE, Kubuntu
Posts: 290

Rep: Reputation: 41
Booting a CD image with grub


I have a CD image (in .iso form) that I would like to be able to boot from grub. I tried including xxx.iso in grub's menu.lst, but that didn't work--I got a complaint about the image not being in executable format (not too surprising). On the off chance that it might work, I renamed the image to xxx.bin, but that didn't work either (no surprise).

What I probably need is a way to convert a .iso file to a .bin file. There are a number of converters of .bin to .iso around, but the converter I think I need goes in the opposite direction.
 
Old 11-09-2007, 01:35 PM   #2
keratos
Member
 
Registered: May 2007
Location: London, UK.
Distribution: Major:FC8. Others:Debian;Zenwalk; Arch; Slack; RHEL.
Posts: 544

Rep: Reputation: 30
Grub does not include native booting from a CD. Simple!!

You need to get hold of a CD capable boot loader/manager like this:

http://home.arcor.de/mschierlm/bootdisk/

there are many more that do a similar thing, but you will not be able to do it from GRUB !!
 
Old 11-09-2007, 03:39 PM   #3
madluther
Member
 
Registered: Aug 2004
Distribution: LFS
Posts: 350

Rep: Reputation: 31
This may be of use.

http://www.m1b.de/content/know/linux/grub-cd.html

Mad.
 
Old 11-09-2007, 04:18 PM   #4
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 272Reputation: 272Reputation: 272
What distro are you trying to use this from? Debian has a hard disk method for running iso images. You download a special initrd.gz and vmlinuz to a place on the hard disk, then it will boot the installation *.iso. Not sure it works for generic CD's, but you could try extracting the initrd and vmlinuz from the iso you have, then rebuilding them to run from the hard disk...

You might also be able to modify this process for making a multi-boot dvd and have it work from your hard disk.

Last edited by pljvaldez; 11-09-2007 at 04:22 PM.
 
Old 11-09-2007, 05:28 PM   #5
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 77
Also, IIRC, there are some patches against grub<1.0 (legacy grub) which enable CD booting. A simple websearch might turn up some results on the patches.
 
Old 11-09-2007, 05:41 PM   #6
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 272Reputation: 272Reputation: 272
Here's a link to a method that basically boots a smart boot manager image from grub, and use SBM to boot the CD (the old XOSL bootloader used the same method).
 
Old 11-09-2007, 09:50 PM   #7
pwabrahams
Member
 
Registered: Nov 2005
Location: Deerfield MA
Distribution: OpenSuSE, Kubuntu
Posts: 290

Original Poster
Rep: Reputation: 41
FreeDos image

I should have been more specific about the nature of the image I'm trying to boot. I have a bootable CD containing Spinrite as a .exe file in a FreeDos environment; I want to be able to start up Spinrite from grub without using any CDs or floppies. FreeDos already provides the boot mechanism if only I could figure out how to activate it. Something like this is already done in the Ultimate Boot CD, which is very useful. It seems quite roundabout to be using the Linux machinery to boot a Linux image in this situation. I've already converted the Spinrite CD to an ISO image.

I've actually gotten to the point of getting Freedos to start, after selecting spinrite from the grub bootup menu, but then it just hangs and doesn't start Spinrite. The menu.lst entry for that uses chainloader /boot/spinrite.img, where spinrite.img is a file generated by Spinrite running under Windows that is claimed to first start Freedos and then start Spinrite without further intervention.
 
Old 11-10-2007, 09:26 AM   #8
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Has anyone tried this yet?

http://wiki.lunar-linux.org/index.ph...allation:No_CD
 
  


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
Booting my new ubuntu install = "GRUB GRUB GRUB GRUB GRUB" etc. dissolved soul Ubuntu 2 01-13-2007 01:55 PM
Booting off ISO image GRUB/LILO? weirded Linux - General 1 07-26-2006 01:00 PM
booting Linux from an image that lost booting capabilities tgr Linux - Software 1 03-05-2006 12:28 PM
booting floppy image with grub rr1mand0 Linux - General 1 10-07-2005 07:34 AM
Grub - Booting an ISO image timothykaine Linux - Software 3 04-20-2005 08:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:57 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration