LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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-08-2006, 06:31 AM   #1
tiger.woods
Member
 
Registered: Mar 2006
Posts: 122

Rep: Reputation: 15
Bootable CD


I hope I'm asking this in the correct forum, let me know if I need to move it.

I have a Linux app that I would like to launch from a bootable CD ROM I'm not sure on how to do this. Can somoene give me some advice on how to create a bootable CD ROM and then launch the app at bootup.

I found this link: http://www.nenie.org/misc/flashbootcd.html but it runs a DOS app as opposed to a Linux app would it be the same?


Thanks,
 
Old 11-08-2006, 07:06 AM   #2
tvynr
Member
 
Registered: Apr 2004
Distribution: Debian
Posts: 143

Rep: Reputation: 15
Essentially, yes. The way most computers boot CDs these days (I think it's called "El Torito" or something along those lines) is by stuffing a floppy boot diskette image somewhere on the disc. The BIOS loads that for bootstrapping, so you essentially just need a floppy image you can boot from.

If what you intend is a Linux-on-a-CD sort of installation that can run a program for you, you probably want to look into using something like ISOLINUX, which is a Linux bootloader designed to boot from a CD-ROM. I'm working on something like I described and I've been having quite a good time using ISOLINUX to get my CD to boot.

Of course, then you have the jolly time of finding the CD-ROM once the init process starts and all that, but no worries; you'll get to that soon enough.

Did that answer your question or did I misunderstand? Cheers!
 
Old 11-08-2006, 07:40 AM   #3
tiger.woods
Member
 
Registered: Mar 2006
Posts: 122

Original Poster
Rep: Reputation: 15
Quote:
If what you intend is a Linux-on-a-CD sort of installation that can run a program for you, you probably want to look into using something like ISOLINUX, which is a Linux bootloader designed to boot from a CD-ROM. I'm working on something like I described and I've been having quite a good time using ISOLINUX to get my CD to boot.
I believe this is more in line of what I'm looking for as the app wouldn't run without the OS, correct? hardaware, memory manager, etc....

So, is ISOLINUX just a bootloader or is it the OS on a bootloader? Any links to some helpful information? Can you automagically get it to run an application on boot up?

Thanks,
 
Old 11-08-2006, 08:25 AM   #4
tvynr
Member
 
Registered: Apr 2004
Distribution: Debian
Posts: 143

Rep: Reputation: 15
ISOLINUX is a bootloader designed to run off of a CD-ROM, much like LILO or GRUB are designed to boot from a hard drive. But no, it isn't Linux and it isn't an OS, so you'll need an image of the OS somewhere on the CD. Fortunately, there aren't very many magic tricks involved... you just need a mounted root filesystem once the init process is over.

In my case, my requirements are a bit unusual: the user must be able to remove the CD once my system is loaded. Therefore, I just create an ext2 filesystem and use the initrd.img to get it loaded; I never actually transition root afterwards like one usually does. On the other hand, projects like Knoppix use the initrd.img to get enough tools loaded to let them find the CD... then they mount the CD as root and proceed that way.

How much do you know about the Linux boot process? It might be a good idea for you to sit down with mkisofs, a rewritable CD, and a spare machine (or some virtual machine software which will let you test your disc out without requiring you to reboot). First step is to get ISOLINUX to boot, next is to get the root filesystem mounted, next is to get your program to run, etc. etc. You can have your program run automatically on bootup by editing /etc/inittab; that part is pretty easy.

You'll be able to find help with your project on the forums. However, I think you'll find a fair amount of info to start with by Googling "create linux bootable cd" and such variants. Sadly, I wouldn't call the process "easy" (at least not when you're making your own root from scratch). But with enough invested time, effort, and learning, you should be able to do it.

Best of luck!
 
Old 11-08-2006, 09:45 AM   #5
tiger.woods
Member
 
Registered: Mar 2006
Posts: 122

Original Poster
Rep: Reputation: 15
Quote:
How much do you know about the Linux boot process? It might be a good idea for you to sit down with mkisofs, a rewritable CD, and a spare machine (or some virtual machine software which will let you test your disc out without requiring you to reboot). First step is to get ISOLINUX to boot, next is to get the root filesystem mounted, next is to get your program to run, etc. etc. You can have your program run automatically on bootup by editing /etc/inittab; that part is pretty easy.
Limited, I did however last night make a boot CD that in fact did boot but I got some errors after that and thats when I realized I was over my head.

I have a floppy disk that currently does what I want it was not created by me but it boots and lauches my program. I was hoping to just port it over to a CD...

I created an image from the floppy:

#dd if=/dev/fd0 of=boot.img bs=10k count=144

then I thought I added it to the CD:

#mkisofs -r -b boot/boot.img -c boot/boot.catalog -o bootcd.iso .

but it failed after booting up.

My guess is that the floppy starts the program differently than the CD? I'm limited in my Linux knowledge but I'm learning...
 
  


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
bootable cdimage->bootable hdpartition? titusind Linux - General 1 11-21-2005 11:16 PM
Bootable Floppy to Bootable CD gamerxr72 Linux - Software 6 09-02-2005 03:39 PM
Backup a bootable CD to another CD, thats bootable fr0zen Linux - Software 9 11-04-2004 08:45 AM
making a non bootable patrion bootable jason2 Linux - General 6 08-01-2004 10:25 AM
Installing Slackware with non-bootable CD or bootable floppy (but not both) TiddlyPom Slackware 2 03-22-2004 04:15 PM

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

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