bootloader how to change to boot from cdrom?

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
oohayulin
Posts: 14
Joined: Thu Mar 06, 2008 9:51 pm

bootloader how to change to boot from cdrom?

Post by oohayulin »

bootloader how to change to boot from cdrom?

If a bootloader in harddisk, when it boot, how to let it boot from cdrom?

Dont need to load driver, parse filesystem, just to boot from cdrom.

just like chainloader in grub.
User avatar
cr2
Member
Member
Posts: 162
Joined: Fri Jun 27, 2008 8:05 pm
Location: ND, USA

Re: bootloader how to change to boot from cdrom?

Post by cr2 »

oohayulin wrote: bootloader how to change to boot from cdrom?

If a bootloader in harddisk, when it boot, how to let it boot from cdrom?

Dont need to load driver, parse filesystem, just to boot from cdrom.

just like chainloader in grub.
I can barely understand you. Is English your first language or not?

If your bootloader is not a harddisk, I believe you just run the bootsector on the CD-ROM to have it boot.
Dont need to load driver, parse filesystem, just to boot from cdrom.
Yes...you...do...need...a...driver...to...boot...from...CD-ROM... :evil:
...but you don't need to parse the filesystem (if I am correct...) :wink:
OS-LUX V0.0
Working on...
Memory management: the Pool
oohayulin
Posts: 14
Joined: Thu Mar 06, 2008 9:51 pm

Re: bootloader how to change to boot from cdrom?

Post by oohayulin »

my usecase:

When I boot from harddisk with this "bootloader", it will check the cdrom whether it is the "OUR PRODUCT CD", if it is, this "bootloader" will change to boot from cdrom.

So in this way our product dont need the user to modify the Boot Device Order in BIOS. It is our target.
User avatar
cr2
Member
Member
Posts: 162
Joined: Fri Jun 27, 2008 8:05 pm
Location: ND, USA

Re: bootloader how to change to boot from cdrom?

Post by cr2 »

post your code.
oohayulin wrote:So in this way our product dont need the user to modify the Boot Device Order in BIOS. It is our target.
[-X

What if your hard disk's bootsector gets corrupted? How will the user access his computer?

Yep. You still need the boot device order.
OS-LUX V0.0
Working on...
Memory management: the Pool
oohayulin
Posts: 14
Joined: Thu Mar 06, 2008 9:51 pm

Re: bootloader how to change to boot from cdrom?

Post by oohayulin »

cr2 wrote:post your code.
oohayulin wrote:So in this way our product dont need the user to modify the Boot Device Order in BIOS. It is our target.
[-X

What if your hard disk's bootsector gets corrupted? How will the user access his computer?

Yep. You still need the boot device order.
You are right.
But we just need this bootloader once in this reboot session.
When we finish the function on CDROM, we will restore the mbr.
Post Reply