[syslinux] Syslinux + integrated flash disk

Andrea Mazzoleni amadvance at users.sourceforge.net
Wed Jun 23 10:31:49 PDT 2004

On 06/21, Dag Sverre Seljebotn wrote:
> - mkdosfs against /dev/loop1 to format as FAT 16
> - syslinux, version 2.10 with the -s switch against /dev/loop1, to make the 
> FAT bootable.

Probably the problem is here. If your BIOS presents the flash
disk with the drive number 0 (like a floppy disk), the syslinux
boot sector doesn't use the partition table information to compute
the start of the partition. Instead, it uses the "HiddenSectors" entry
in the FAT boot sector.

The problem is that mkdosfs set this value always to 0,
which is the correct value only for a floppy without a
partition table.

You can try to adjust this value manually, or change the
ldlinux.asm file to always consider the disk like an harddisk
and not like a floppy.

I had the same problem with USB storage device.

Andrea Mazzoleni
935A 2D3C 5C70 BCD6 CB0C  ED89 7C19 4321 6340 3F6D

More information about the Syslinux mailing list