This is a program to format a floppy diskette with either an msdos (vfat) or ext2 (Linux native) file system.
format_floppy -h | --help | [-f type] -d device | a: | b:
-h, --help Display this help message and exit. -f type file system type - msdos (default) or ext2 -d drive drive (a or b)
Formats the floppy in the a: drive and creates an msdos (vfat)file system.
format_floppy -f ext2 -d a
Formats the floppy in the a: drive and creates an ext2 (Linux native) file system.
Just copy the format_floppy script to a directory in your path. /usr/local/bin would be a good place for it.
You may want to edit the "Constants' section of the script to adjust the device names for the floppy drives. As shipped, format_floppy defines drive a: to be /dev/fd0 and drive b: to be /dev/fd1. Support for drive b: may be removed by commenting out the DRIVE_B constant.
format_floppy has been tested with Red Hat 7.2. It relies on /usr/bin/fdformat, /sbin/mkfs.ext2 and /sbin/mkfs.vfat.
Copyright 2000-2002, William Shotts <email@example.com>
This software is part of the LinuxCommand.org project, a site for Linux education and advocacy devoted to helping users of legacy operating systems migrate into the future.
You may contact the LinuxCommand.org project at:
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
$Id: format_floppy.README,v 1.5 2002/02/18 14:18:38 bshotts Exp $