On Thu, May 14, 1998 at 12:48:16PM +0300, Eugen Constantinescu wrote:
> Hello everybody !
> I need an information about formating a floppy disk.
> I have a RH 4.2 system.
>
> How can I format a floppy disk in DOS format ?
>
> I want to work in Linux with some DOS floppies.
> I know how to mount but I didn't know how to format.
Here's a short shellscript I use to do the deed:
#!/bin/sh
# low-level format a diskette and write a validated DOS filesystem on it.
fdformat -n $1
if [ $? = 0 ]
then
/sbin/mkdosfs -vc $1
else
echo Format failed!
fi
echo
echo done...
echo format another?
read kb
case $kb in
y|Y)
# a kludge. sorta like using a goto without the goto.
exec $0 $*
;;
*)
;;
esac
--
---- Fred Smith -- [EMAIL PROTECTED] ----------------------------
But God demonstrates his own love for us in this:
While we were still sinners,
Christ died for us.
------------------------------- Romans 5:8 (niv) ------------------------------
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject.