[SOLVED]mkisofs error

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
User avatar
bashcommando
Member
Member
Posts: 62
Joined: Mon Jan 06, 2014 4:23 pm

[SOLVED]mkisofs error

Post 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 :?
Last edited by bashcommando on Tue Jan 20, 2015 3:47 pm, edited 1 time in total.
Building an operating system is like building an airplane, you don't want it to crash.
User avatar
bashcommando
Member
Member
Posts: 62
Joined: Mon Jan 06, 2014 4:23 pm

Re: mkisofs error

Post 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. :!:
Building an operating system is like building an airplane, you don't want it to crash.
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: mkisofs error

Post 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?
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
User avatar
bashcommando
Member
Member
Posts: 62
Joined: Mon Jan 06, 2014 4:23 pm

Re: mkisofs error

Post by bashcommando »

But I am not writing it to a Floppy, I am converting it to a ISO. Does it matter?
Building an operating system is like building an airplane, you don't want it to crash.
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: mkisofs error

Post by Combuster »

-1 for asking the obvious.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
no92
Member
Member
Posts: 307
Joined: Wed Oct 30, 2013 1:57 pm
Libera.chat IRC: no92
Location: Germany
Contact:

Re: mkisofs error

Post by no92 »

DLBuunk
Member
Member
Posts: 39
Joined: Sun May 18, 2008 9:36 am
Location: The Netherlands

Re: mkisofs error

Post 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?
User avatar
bashcommando
Member
Member
Posts: 62
Joined: Mon Jan 06, 2014 4:23 pm

Re: mkisofs error

Post by bashcommando »

Funny, my bootloader is exactly 512 bytes...
Building an operating system is like building an airplane, you don't want it to crash.
Post Reply