SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG
DONATE




YUM REPOSITORY

 
 

MAN page from Fedora 3 makebootfat-1.4-3.fc3.x86_64.rpm

Makebootfat Bootable FAT Disk Creation

Section: User Commands (1)
Index 

NAME

makebootfat - Makebootfat Bootable FAT Disk Creation 

SYNOPSIS

makebootfat [options] IMAGE

 

DESCRIPTION

This utility creates a bootable FAT filesystem andpopulates it with files and boot tools.

It is mainly designed to create bootable USB andFixed disk for the AdvanceCD project.

The official site of AdvanceCD and makebootfat is:

http://advancemame.sourceforge.net/

 

OPTIONS

-o, --output DEVICE
Specify the output device. It must be the devicewhere you want to setup the filesystem.You can use the special a"usba" value to automaticallyselect the USB Mass Storage device connected atthe system.This option is always required.
-b, --boot FILE
-1, --boot-fat12 FILE
-2, --boot-fat16 FILE
-3, --boot-fat32 FILE
Specify the FAT boot sector images to use. The -b optionuses the same sector for all the FAT types. The otheroptions can be used to specify a different sector fordifferent FAT types. The FAT types for which a boot sectoris not specified are not used.This option is always required.
-m, --mbr FILE
Specify the MBR sector image to use.If this option is specified a partition table iscreated on the disk. Otherwise the disk is filled without apartition table like a floppy disk.
-F, --mbrfat
Change the MBR image specified with the -m option to pretendto be a FAT filesystem starting from the first sector ofthe disk. This allows booting from USB-FDD (Floppy Disk Drive)also using a partition table generally required by USB-HDD(Hard Disk Drive).The MBR image specified with the -m option must haveexecutable code positioned like a FAT boot sector. Youcan use the included oqmbrfat.bincq file.
-c, --copy FILE
Copy the specified file in the root directory of the disk.The file is copied using the readonly attribute.
-x, --exclude FILE
Exclude the specified files and subdirectories in theIMAGE directory to copy. The path must be specified usingthe same format used in the IMAGE directory specification.
-X, --syslinux2
Enforce the syslinux 2.xx FAT limitations. Syslinux2.xx doesncqt support FAT32 at all, and FAT16 with64 and 128 sectors per cluster formats.This option excludes all the FAT formats not supportedby syslinux. Please note that it limits the maximumsize of filesystem to 1 GB.
-Y, --syslinux3
Enforce the syslinux 3.xx FAT support. Syslinux 3.00supports all the FAT types and sizes but it requiresa special customisation of the boot sector and ofthe file oqldlinux.syscq.This option does this customisation without the needto use the syslinux installer if the oqldlinux.syscqfile is copied on disk with the -c option.
-Z, --zip
If possible force the ZIP-Disk compatibility. It setsa geometry of 32 sectors and 64 heads. It also uses the4cqth partition entry in the partition table.Itcqs required to boot also in USB-ZIP mode.
-P, --partition
Ensure to operate on a partition and not on a disk.
-D, --disk
Ensure to operate on a disk and not on a partition.
-L, --label LABEL
Set the FAT label. The label is a string of 11 chars.
-O, --oem OEM
Set the FAT OEM name. The OEM name is a string of 11 chars.
-S, --serial SERIAL
Set the FAT serial number. The serial number is a 32 bitunsigned integer.
-E, --drive DRIVE
Set the BIOS drive to setup in the FAT boot sector.Generally this value is ignored by boot sectors, withthe exception of the FAT12 and FAT16 FreeDOS boot sectorsthat require the correct value or the value 255 to forceauto detection.
-v, --verbose
Print some information on the device and on the filesystemcreated.
-i, --interactive
Show the errors in a message box. Only for Windows.
-h, --help
Print a short help.
-V, --version
Print the version number.
IMAGE
Directory image to copy on the disk. All the filesand subdirectories present in this directoryare copied on the disk.
 

DISKS AND PARTITIONS NAMES

In Linux disk devices are named /dev/hdX or /dev/sdX where Xis a letter. Partition devices are named /dev/hdXN or /dev/sdXNwhere X is a letter and N a digit.

In Windows disk devices are named rsrs.rsPhysicalDriveN where N isa digit. Partition devices are named rsrs.rsX: where X is a letter,but sometimes rsrs.rsX: is a disk and not a partition, for example onfloppies and on all the USB Mass Storage devices without apartition table. 

SYSLINUX

To make a bootable FAT using syslinux you must usethe -X option for syslinux version 2.xx or the -Yoption for syslinux version 3.xx. You must also copy inthe root directory of the disk the files:
ldlinux.sys
The syslinux loader.
syslinux.cfg
The syslinux configuration file.
linux
The Linux kernel image (the file name may be different).
initrd.img
The initrd filesystem (the file name may be differentor missing).

You must also specify the oqldlinux.bsscq boot sector with the -boption and possibily the oqmbr.bincq MBR sector with the -m option.Both the sector images are present in the syslinux package.

For example:

makebootfat -o usb rs

      -Y rs

      -b ldlinux.bss -m mbr.bin rs

      -c ldlinux.sys -c syslinux.cfg rs

      -c linux -c initrd.img rs

      image

 

LOADLIN AND FREEDOS

To make a bootable FAT using loadlin and FreeDOS you must copyin the root directory of the disk the files:
kernel.sys
The FreeDOS kernel. Remember to use the a"32a" kernelversion to support FAT32.
command.com
The FreeDOS shell.
autoexec.bat
Used to start loadlin.
loadlin.exe
The loadlin executable.
linux
The Linux kernel image (the file name may be different).
initrd.img
The initrd filesystem (the file name may be differentor missing).

You must also specify the FreeDOS boot sectors available on theFreeDOS oqsyscq source package with the -1, -2, -3 option.For the MBR you can use the sectors image available on the FreeDOSoqfdiskcq source package.

For example:

makebootfat -o /dev/hda1 rs

      -E 255 rs

      -1 fat12com.bin -2 fat16com.bin -3 fat32lba.bin rs

      -c kernel.sys -c command.com rs

      -c autoexec.bat -c loadlin.exe rs

      -c linux -c initrd.img rs

      image

 

MULTI STANDARD USB BOOTING

The BIOS USB boot support is generally differentiated in threecategories: USB-HDD, USB-FDD and USB-ZIP.

The USB-HDD (Hard Disk Drive) standard is the preferred choice andit requires the presence of a partition table in the first sectorof the disk. You can create this type of disk using the -m option.

The USB-FDD (Floppy Disk Drive) standard requires the presence ofa filesystem starting from the first sector of the disk withouta partition table.You can create this type of disk without using the -m option.

The USB-ZIP (ZIP Drive) standard requires the presence of adevice with a very specific geometry. Specifically, it requiresa geometry with 32 sectors and 64 heads. It also requires the presenceof a partition table with only a bootable partition in thefourth entry. You can create this type of disk using the -m and -Z option.

Generally these standards are incompatible, but using the -m, -Fand -Z options you can create a disk compatible with all of them.

To use the -F option, the MBR image specified must followthe constrains:

*
It must start with a standard FAT 3 bytes jump instruction.
*
It must have the bytes from address 3 to 89 (included) unused.

And example of such image is in the oqmbrfat.bincq file.

For example to create a syslinux image:

makebootfat -o usb rs

      -Y rs

      -Z rs

      -b ldlinux.bss -m mbrfat.bin -F rs

      -c ldlinux.sys -c syslinux.cfg rs

      -c linux -c initrd.img rs

      image

and for a FreeDOS and loadlin image:

makebootfat -o usb rs

      -E 255 rs

      -Z rs

      -1 fat12com.bin -2 fat16com.bin -3 fat32chs.bin rs

      -m mbrfat.bin -F rs

      -c kernel.sys -c command.com rs

      -c autoexec.bat -c loadlin.exe rs

      -c linux -c initrd.img rs

      image

Please note that FreeDos has some problems bootingfrom USB. It works only on very few conditions. 

EXCLUSION

To exclude some files or directories in the image copy, youcan use the -x option using the same path specificationwhich are you using for the image directory.

For example, if you need to exclude the oqisolinuxcq andoqsyslinuxcq subdirectories from the oqimagecq directoryyou can use the command:

makebootfat ... rs

      -x image/isolinux rs

      -x image/syslinux rs

      image

 

COPYRIGHT

This file is Copyright (C) 2004, 2005 Andrea Mazzoleni 

SEE ALSO

syslinux(1), mkdosfs(1), dosfsck(1)


 

Index

NAME
SYNOPSIS
DESCRIPTION
OPTIONS
DISKS AND PARTITIONS NAMES
SYSLINUX
LOADLIN AND FREEDOS
MULTI STANDARD USB BOOTING
EXCLUSION
COPYRIGHT
SEE ALSO

This document was created byman2html,using the manual pages.
 
internet katowice