One idea for live CD. What do u think of it?

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
zhak
Member
Member
Posts: 25
Joined: Wed Jul 30, 2008 10:25 am

One idea for live CD. What do u think of it?

Post by zhak »

Hi all!
I'm a bit stuck with the arrangement of system files on a bootable CD. I need your opinions and suggestions a lot.
At first, I thought of creating of a full CD image in memory and using it as a virtual drive. In this case CD-ROM can be ejected and optical drive can be used to read other media. But my future OS is not a linux, or windows, or anything else. it's very small, so about 90% or more of a Data Area may be used by a user to store videos, photoes, books... anything! In this case copying the entire CD-ROM in memory is unnecessary. And also this method will just eat too much RAM for nothing. Bad idea.
Then I thought of mapping only System Area and a part of the Data Area that corresponds to my OS (just the root directory and all of its contents). But, to my mind, it will make a boot process overcomplicated. Too much checking, sorting, arranging, etc.. Bad idea

Finally, this very idea came to my mind. Create an image of everything. Just one file (size doesn't matter) on a CD-ROM, that will be loaded by a boot loader. This image will be the RAM disk with it's file system, system files and everything that corresponds to my OS. And it even may be stored on a CD in compressed form. Boot loader will decompress it. I think it's a very good idea :) (AFAIK, linux uses smth. similar in its initrd. Am I right?)
The disadvantage of this method is that system files cannot be viewed in an ordinary way. For example, one cannot insert CD in CD/DVD drive and check the contents of a system folder.
So, what do you guys think of it?
User avatar
kataklinger
Member
Member
Posts: 381
Joined: Fri Nov 04, 2005 12:00 am
Location: Serbia

Re: One idea for live CD. What do u think of it?

Post by kataklinger »

zhak wrote:For example, one cannot insert CD in CD/DVD drive and check the contents of a system folder.
It shouldn't be a problem if you use well know format to store compressed files.
User avatar
Dex
Member
Member
Posts: 1444
Joined: Fri Jan 27, 2006 12:00 am
Contact:

Re: One idea for live CD. What do u think of it?

Post by Dex »

What you have ask is like saying, i am thinking about get some paper and printing words on it and binding it with a leather cover and calling it a book.

First you take a bootable floppy image or hdd image of your OS plus bootloader and programs etc. Open your CD burn software click on make bootable, point it to the images, it will then add 2 .bin files to the cd, than add anyother stuff you want to the CD and burn it to cd.

Now when you boot from the CD it will emulate as a floppy or hdd, so your bootloader should load the whole image into memory (as if it was loading from a floppy or hdd), then you can use it as a virual disk.

How do you think windows boots from CD, than ask if you want to load a CD driver ?.
zhak
Member
Member
Posts: 25
Joined: Wed Jul 30, 2008 10:25 am

Re: One idea for live CD. What do u think of it?

Post by zhak »

my bootloader works in no emulation mode. I don't want to emulate anything. especially floppy.
Post Reply