no-emul-boot in mkisofs
Posted: Fri Jan 16, 2009 7:12 am
Welcome
I am writting bootloader,I have file(my bootloader) that weights 1kB. I want put this file on CD, so that this CD will be booted from my file. To do it I use mkisofs.There are two possibilites.My file's name is 'boot'
a) Extend my file ( 'boot') from 1kB to 1.44 mgb(put zeros at the end) and then
mkisofs -o bootablecd.iso -b boot directory
There is 'boot' in directory
b) I don't have to extend 'boot'
mkisofs -no-emul-boot -o bootablecd.iso -b boot directory
In theory both of these methods should run. But when I use second method, something does not work.
It means I run bootablecd.iso in bochs, and I get message that ' 0mb medium detected' but then nothing happens.
When I put bootablecd.iso on physical CD, and run it on my notebook I see black screen and nothing happens.
BUT when I run this physical bootable CD on my PC or on my dad's notebook, it works fine.
It is quite strange for me.
Does someone know what is happening?
I am writting bootloader,I have file(my bootloader) that weights 1kB. I want put this file on CD, so that this CD will be booted from my file. To do it I use mkisofs.There are two possibilites.My file's name is 'boot'
a) Extend my file ( 'boot') from 1kB to 1.44 mgb(put zeros at the end) and then
mkisofs -o bootablecd.iso -b boot directory
There is 'boot' in directory
b) I don't have to extend 'boot'
mkisofs -no-emul-boot -o bootablecd.iso -b boot directory
In theory both of these methods should run. But when I use second method, something does not work.
It means I run bootablecd.iso in bochs, and I get message that ' 0mb medium detected' but then nothing happens.
When I put bootablecd.iso on physical CD, and run it on my notebook I see black screen and nothing happens.
BUT when I run this physical bootable CD on my PC or on my dad's notebook, it works fine.
It is quite strange for me.
Does someone know what is happening?