Hi everybody, on http://www.coli.uni-saarland.de/~eric/stuff/soft/specials/ you can find a new version of sys-freedos-linux.zip with a few new command line options. Check the explanations below. The new options are --heads=n --sectors=n and --offset=n, useful if you formatted your filesystem with mkdosfs which may have left those fields empty. Also useful for geometry changes or if you moved a partition with a DOS-unaware tool. The "offset" option might also help to make non-primary partitions bootable. Happy SYSing :-).
Eric > perl ./sys-freedos.pl FreeDOS boot sector SYS for Linux v1.0, public domain by Eric Auer 2004-2007. Puts a FreeDOS boot sector on a FAT (12/16/32) filesystem. Note: FreeDOS boot sectors, kernel.sys and command.com license is GPL. You still have to copy the kernel.sys and command.com files yourself! Usage: sys-freedos.pl --disk=file [--lba] [--heads=n] [--sectors=n] [--offset=n] Options: --disk=file_or_device target filesystem --lba selects boot sectors with LBA BIOS support --heads=head_count overrides CHS setting 'heads' (cyls need no setting) --sectors=sector_count overrides CHS setting 'sectors per...' --offset=sector_count overrides partition location on disk setting Hints: If you formatted the drive with DOS or Windows, you need no overrides. If CHS *x?x? shows 0 for one of the ?, override it. Use offset 0 for diskettes, non-0 for partitions. Use overrides after using mkdosfs. Check the output of fdisk -l -u /dev/??? to select overrides. Example: fdisk -l -u /dev/hdb shows '... 255 HEADS, 63 SECTORS/track ...' Use OFFSET 63 for hdb1: '/dev/hdb1 * 63 1028159 514048+ 6 FAT16' ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user