Professional Documents
Culture Documents
1 SYNOPSIS
==========
makebootfat [options] IMAGE
2 DESCRIPTION
=============
This utility creates a bootable FAT filesystem and
populates it with files and boot tools.
It is mainly designed to create bootable USB and
Fixed disk for the AdvanceCD project.
The official site of AdvanceCD and makebootfat is:
http://advancemame.sourceforge.net/
3 OPTIONS
=========
-o, --output DEVICE
Specify the output device. It must be the device
where you want to setup the filesystem.
You can use the special "usb" value to automatically
select the USB Mass Storage device connected at
the 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 option
uses the same sector for all the FAT types. The other
options can be used to specify a different sector for
different FAT types. The FAT types for which a boot sector
is 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 is
created on the disk like a harddisk. Otherwise
the disk is filled without a partition table like
a floppy disk.
-F, --mbrfat
Change the MBR image specified with the -m option to pretend
to be a FAT filesystem starting from the first sector of
the 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 have
executable code positioned like a FAT boot sector. You
can use the included `mbrfat.bin' 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 the
IMAGE directory to copy. The path must be specified using
the same format used in the IMAGE directory specification.
-X, --syslinux2
Enforce the syslinux 2.xx FAT limitations. Syslinux
2.xx doesn't support FAT32 at all, and FAT16 with
64 and 128 sectors per cluster formats.
This option exclude all the FAT formats not supported
by syslinux. Please note that it limits the maximum
size of filesystem to 1 GB.
-Y, --syslinux3
Enforce the syslinux 3.xx FAT support. Syslinux 3.00
supports all the FAT types and sizes but it requires
a special customization of the boot sector and of
the file `ldlinux.sys'.
This option do this customization without the need
to use the syslinux installer.
-Z, --zip
If possibile force the ZIP-Disk compatibility setting
a geometry of 32 sectors and 64 heads. It also uses the
4'th partition entry in the partition table.
It allows 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 bit
unsigned integer.
-E, --drive DRIVE
Set the BIOS drive to setup in the FAT boot sector.
Generally this value is ignored by boot sectors, with
the exception of the FAT12 and FAT16 FreeDOS boot sectors
that require the correct value or the value 255 to force
auto detection.
-v, --verbose
Print some information on the device and on the filesystem
created.
-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 files
and subdirectories present in this directory
are copied on the disk.
5 SYSLINUX
==========
To make a bootable FAT using syslinux you must use
the -X option for syslinux version 2.xx or the -Y
option for syslinux version 3.xx. You must also copy in
the 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 different
or missing).
You must also specify the `ldlinux.bss' boot sector with the -b
option and eventually the `mbr.bin' MBR sector with the -m option.
Both the sector images are present in the syslinux package.
For example:
makebootfat -o usb \
-Y \
-b ldlinux.bss -m mbr.bin \
-c ldlinux.sys -c syslinux.cfg \
-c linux -c initrd.img \
image
8 EXCLUSION
===========
To exclude some files or directories in the image copy, you
can use the -x option using the same path specification
which are you using for the image directory.
For example, if you need to exclude the `isolinux' and
`syslinux' subdirectories from the `image' directory
you can use the command:
makebootfat ... \
-x image/isolinux \
-x image/syslinux \
image
9 COPYRIGHT
===========
This file is Copyright (C) 2004, 2005 Andrea Mazzoleni
10 SEE ALSO
===========
syslinux(1), mkdosfs(1), dosfsck(1)