Re: Making a dos floppy

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2005-05-17 at 10:48 -0500, fredex wrote:
> On Tue, May 17, 2005 at 08:30:19AM -0500, akonstam@xxxxxxxxxxx wrote:
> > On Tue, May 17, 2005 at 05:52:58AM -0400, Neal Wilkinson wrote:
> > > How do I make a dos floppy in Fedora? I've looked around and all I
> can
...
> 
> One more data point: Here's a script I've been using for years:

Nice script.

> 
> 
>         #!/bin/sh
>         echo fdformat $1
...
> 
> If you only have that one drive you can replace all the instances of
> "$1"
> with "/dev/fd0H1440" and then run it without arguments.

Or default it to /dev/fd0:

#!/bin/sh
if [ -z "$1" ] ; then
    FLOPPY=/dev/fd0u1440
else
    FLOPPY="$1"
fi
echo fdformat $FLOPPY
fdformat $FLOPPY && echo /sbin/mkdosfs -vc $FLOPPY && /sbin/mkdosfs -vc $FLOPPY
echo -n "Format another? [y/N]: "
read kb
case $kb in
    Y)
        exec $0 $FLOPPY
        ;;
    y)
        exec $0 $FLOPPY
        ;;
    *)
        echo "Leaving $0,... Bye!"
	;;
esac

Phil



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux