FS2FD(8,C) AIX Commands Reference FS2FD(8,C) ------------------------------------------------------------------------------- fs2fd PURPOSE Copies a file system to a boot diskette set. SYNTAX +----------------+ fs2fd ---| +------------+ |--- source --- diskette ---| +-| -b program |-+ ^| -h || || -n program || || -o || || -q || |+------------+| +--------------+ Note: This command is for the PS/2 only. DESCRIPTION The fs2fd command is intended for use by system administrators to use within the custboot command. The fs2fd command copies a file system to a boot diskette set. In the process, the identification field of each diskette that is written to is checked, ensuring that diskettes are changed between writes. The following information is helpful when using this command: o The set of diskettes can be from one to ten diskettes. o The number of blocks that fit on each diskette is determined from the devinfo structure for the diskette device (see the ioctl system call and the devinfo file in the AIX Operating System Technical Reference). o The first block on each diskette in the set is reserved for boot programs and diskette identification. o Diskette information is stored in bytes 3 through 10, in the form of DISKIDn, where "n" represents the number of the diskette set ("0" through "9"). o The identification for the first diskette must be part of the program stored in the boot block. o fs2fd checks the identification field of each diskette that is being written to. It requests confirmation before overwriting the book block. Processed November 8, 1990 FS2FD(8,C) 1 FS2FD(8,C) AIX Commands Reference FS2FD(8,C) This ensures that diskettes were changed between writes. If previously used diskettes are written to, this field may contain the value of the diskette written before. o The identification is stored on subsequent diskettes by fs2fd; therefore, any program stored in the boot blocks of those diskettes must provide free space for the identification. The following information is automatically displayed when using fs2fd: o The number of blocks that are available on each diskette (in 4k bytes). o The sizes of the programs loaded into the first diskette blocks (in bytes). o The size of the file system to be copied (in 4k byte units). o A period (".") for each block written to diskette. o A message that the diskette identification was written on each diskette after the first. Note: The -q option suppresses all of these messages. FLAGS -b Specifies the name of the program to be loaded into the boot block of the first diskette in the set. -h Print a verbose usage message, and exit. This flag causes fs2fd to ignore all other legitimate flags. -n Specifies the name of the program to be loaded into the boot block of diskettes 2 through 9. -o Overwrite (ignore) presence of disk identification information on diskettes to be written. Disables checking of the diskette identification field. -q Suppress information messages. EXAMPLES o To copy a file system to diskettes, without information messages: fs2fd -q /tmp/bootimage /dev/fd0 o To copy a file system to diskettes, and load a boot program on the first diskette, ignoring any previous diskette identification. This permits re-use of diskettes without reformatting: fs2fd -o /etc/bootprogram /tmp/bootimage /dev/fd0 Processed November 8, 1990 FS2FD(8,C) 2 FS2FD(8,C) AIX Commands Reference FS2FD(8,C) RELATED INFORMATION See the "mkfs" command in the AIX Operating System Commands Reference. Processed November 8, 1990 FS2FD(8,C) 3