[syslinux] how to create bootable FreeDOS HDD or USB flash drive?

Gene Cumm gene.cumm at gmail.com
Mon Jun 25 17:36:01 PDT 2012


On Mon, Jun 25, 2012 at 7:44 PM, Martin T <m4rtntns at gmail.com> wrote:

> 2) Created partition table to MBR using fdisk. Results are following:
>
> root at debian64:~# fdisk -lu 10MB
> You must set cylinders.
> You can do this from the extra functions menu.
>
> Disk 10MB: 0 MB, 0 bytes
> 255 heads, 63 sectors/track, 0 cylinders, total 0 sectors
> Units = sectors of 1 * 512 = 512 bytes
> Sector size (logical/physical): 512 bytes / 512 bytes
> I/O size (minimum/optimal): 512 bytes / 512 bytes
> Disk identifier: 0x3009589f
>
> Device Boot      Start         End      Blocks   Id  System
>  10MB1   *           1     1606499      803249+   6  FAT16
> root at debian64:~#

Odd, this says a partition starts at sector 1.  Normally it'd be 63.

> 3) Mounted this 10MB file with 32256 offset:
>
> root at debian64:~# echo 63*512 | bc -l
> 32256
> root at debian64:~# losetup --offset 32256 /dev/loop1 10MB
> root at debian64:~#

Misaligned.  Sector 1 is not sector 63.

-- 
-Gene




More information about the Syslinux mailing list