Having trouble booting from CD?

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.
zehawk
Member
Member
Posts: 35
Joined: Thu Jun 11, 2015 7:26 am
Libera.chat IRC: zehawk

Re: Having trouble booting from CD?

Post by zehawk »

Combuster wrote:For all your booting problems, try it in a virtual machine or emulator first. ;)

Only the truly ancient BIOSes can't boot from CD. In fact, no-emulation El-Torito is better supported than no-emulation which is generally better supported than USB boot. But each mechanism is different, and you can't simply use code for one method to do the other. However, test cycles using a CD are pretty much the slowest option available - from experience they are worse than floppies.

I have a working external CD drive that can be booted from - I even installed my computer with it.

If you want to do the CD way, your best bet is to make the .iso using mkisofs/genisoimage and specifying the bootcode properly. You can then also post that command for scrutiny if either the VM or real hardware doesn't grok it.
Yeah, been using emulators so far. My biggest problem with them is that, for example, even VirtualBox just accepted an iso and ran with it despite the glaring issues people pointed out in my source code earlier. Thinking external hard drive is just a much more simple way to do it. And it also will help me understand how the underlying file systems work as I will have to implement that eventually. And burning a cd every time i want to test it? Pass. xD
gerryg400 wrote:
kiznit wrote:
zehawk wrote:I'm assuming
When programming, never assume. Verify.
This is poor advice. Assumptions are important in all forms of engineering. Without making assumptions, often no progress can be reasonably made. As long as assumptions are considered and stated they should present no problem.
I can see where he's coming from, but I agree. I used the words 'I assume' knowing that someone would correct me if I'm wrong. I'd look stupid if I said things with conviction and they weren't accurate. But you raise a very valid point as well!
Last edited by zehawk on Thu Jun 11, 2015 4:46 pm, edited 1 time in total.
kzinti
Member
Member
Posts: 898
Joined: Mon Feb 02, 2015 7:11 pm

Re: Having trouble booting from CD?

Post by kzinti »

gerryg400 wrote:
kiznit wrote:
zehawk wrote:I'm assuming
When programming, never assume. Verify.
This is poor advice. Assumptions are important in all forms of engineering. Without making assumptions, often no progress can be reasonably made. As long as assumptions are considered and stated they should present no problem.
Yes, taking a sentence out of context allows one to easily contradict it.

I was replying to the OP's assumption that DS and ES are 0. Do you still want to claim that this statement from OP doesn't present any problems because it was stated?
zehawk
Member
Member
Posts: 35
Joined: Thu Jun 11, 2015 7:26 am
Libera.chat IRC: zehawk

Re: Having trouble booting from CD?

Post by zehawk »

kiznit wrote:
gerryg400 wrote:
kiznit wrote: When programming, never assume. Verify.
This is poor advice. Assumptions are important in all forms of engineering. Without making assumptions, often no progress can be reasonably made. As long as assumptions are considered and stated they should present no problem.
Yes, taking a sentence out of context allows one to easily contradict it.

I was replying to the OP's assumption that DS and ES are 0. Do you still want to claim that this statement from OP doesn't present any problems because it was stated?
You are right, assuming that DS and ES are 0 is an awful idea. But i did originally mean I assume I should set them to 0. Either way, lesson learned. And hey, that's why we're are part of this community, right? To learn!
zehawk
Member
Member
Posts: 35
Joined: Thu Jun 11, 2015 7:26 am
Libera.chat IRC: zehawk

Re: Having trouble booting from CD?

Post by zehawk »

FORGET ALL MY PREVIOUS QUESTIONS. I successfully got my OS to boot from a USB! Thank you guys so much for your help!
kzinti
Member
Member
Posts: 898
Joined: Mon Feb 02, 2015 7:11 pm

Re: Having trouble booting from CD?

Post by kzinti »

zehawk wrote:FORGET ALL MY PREVIOUS QUESTIONS. I successfully got my OS to boot from a USB! Thank you guys so much for your help!
Congrats!
Post Reply