Page 1 of 1
[SOLVED]mkisofs error
Posted: Sat Nov 22, 2014 8:46 pm
by bashcommando
Well I have seemed to get into a pickle, I tried to convert my flp image to a iso image to use in VirtualBox.
Code: Select all
mkisofs -V "MyOS" -input-charset iso8859-1 -o myos.iso -b boot.flp `pwd`
Code: Select all
Using BOOT000.ASM;1 for /boot.asm~ (boot.asm)
Using SHELL000.ASM;1 for /shell.asm (shell.asm~)
Size of boot image is 3076 sectors -> genisoimage: Error - boot image '/home/bashcommando/Desktop/MyOS/V1/R1/boot.flp' has not an allowable size.
Please help
Re: mkisofs error
Posted: Sat Nov 22, 2014 8:50 pm
by bashcommando
One thing I just found is that it didn't mention kernel.asm. When I ran it a second time after deleting some junk files gedit left behind I found that it didn't list any files the second time.
Re: mkisofs error
Posted: Sun Nov 23, 2014 6:01 am
by Combuster
Error - boot image '/home/bashcommando/Desktop/MyOS/V1/R1/boot.flp' has not an allowable size.
Learn to read. How many sectors does a 3½" floppy have?
Re: mkisofs error
Posted: Sun Nov 23, 2014 12:06 pm
by bashcommando
But I am not writing it to a Floppy, I am converting it to a ISO. Does it matter?
Re: mkisofs error
Posted: Sun Nov 23, 2014 12:14 pm
by Combuster
-1 for asking the obvious.
Re: mkisofs error
Posted: Sun Nov 23, 2014 12:34 pm
by no92
Re: mkisofs error
Posted: Sun Nov 23, 2014 12:35 pm
by DLBuunk
Let me quote the manpage for you (emphasis mine):
mkisofs(8) wrote:-b eltorito_boot_image
Specifies the path and filename of the boot image to be used when making an "El Torito" bootable CD. The pathname must be relative to the source path specified to mkisofs. This option is required to make an "El Torito" bootable CD. The boot image must be exactly the size of either a 1200, 1440, or a 2880 kB floppy, and mkisofs will use this size when creating the output iso9660 filesystem. It is assumed that the first 512 byte sector should be read from the boot image (it is essentially emulating a normal floppy drive). This will work, for example, if the boot image is a LILO based boot floppy.
If the boot image is not an image of a floppy, you need to add one of the options: -hard-disk-boot or -no-emul-boot. If the system should not boot off the emulated disk, use -no-boot.
If the -sort option has not been specified, the boot images are sorted with low priority (+2) to the beginning of the medium. If you don't like this, you need to specify a sort weight of 0 for the boot images.
How many sectors does a 1200, 1440, or 2880 kB floppy have?
Re: mkisofs error
Posted: Mon Jan 19, 2015 5:17 pm
by bashcommando
Funny, my bootloader is exactly 512 bytes...