[syslinux] DOS/Freedos: Can't use mkfloppyimg.sh or mkdiskimage for +8M images

Murali (முரளி கணபதி) murali at google.com
Sun Oct 7 12:19:20 PDT 2007

The mkfloppyimg.sh script [
http://people.cs.uchicago.edu/~gmurali/gui/files/mkfloppyimg.sh] does the

Input: Old bootable DOS image, Size of New Image

* Use mkdosfs to create a new image of specified size
* Mount both old and new images
* Copy contents from old to new (using cp)
* Unmount both images
* dd the first 512 bytes from old to new EXCEPT bytes 11 to 61 (inclusive)
* Prints the C/H/S values to be used with memdisk [Gets the values for
mkdosfs output]

I have used it before to create a 10MB image, but that was a long while ago.
May be mkdosfs has changed its output?

- Murali

On 10/5/07, H. Peter Anvin <hpa at zytor.com> wrote:
> Gaetan Lord wrote:
> >
> > I use the mkfloppyimg.sh script and it is working fine up until 8M in
> > size, if I go higher than this, it doesn't work, and I can't boot the
> > image. I did try to do the same with mkdiskimage without success, I
> > probably miss something in the way to create the image. My question is
> > simple, is there any recipe to create a +8M dos/freedos image I could
> > use with syslinux.
> >
> It would probably help if you explained what you actually did.
>         -hpa
> _______________________________________________
> SYSLINUX mailing list
> Submissions to SYSLINUX at zytor.com
> Unsubscribe or set options at:
> http://www.zytor.com/mailman/listinfo/syslinux
> Please do not send private replies to mailing list traffic.


கற்றது ைகமண் அளவு, கல்லாதது உலகளவு
(What we know is only a handful, what we dont is the rest of the world)

More information about the Syslinux mailing list