On Thu, Jan 25, 2001 at 04:17:25AM -0500, Statux wrote:
> > The above is a Linux format.  I also need to know a DOS format
> > command/syntax.
> 
> I always just did:
> 
> mkfs.ext2 /dev/fd0
> 
> or
> 
> mkfs.msdos /dev/fd0
> 

here's a shellscript I use, named "dosformat":


        #!/bin/sh

        # low-level format a diskette and write a validated DOS filesystem on it.

        fdformat -n $1 
        if [ $? = 0 ] 
                then
        #echo open drive, close it, press ENTER...
        #read kb
                /sbin/mkdosfs -vc $1
        else
                echo Format failed!
        fi

        echo
        echo done...
        echo format another?
        read kb
        case $kb in
                y|Y)
                        exec $0 $*
                        ;;
                *)
                        ;;
        esac
# end of script
-- 
---- Fred Smith -- [EMAIL PROTECTED] ----------------------------
  "And he will be called Wonderful Counselor, Mighty God, Everlasting Father,
  Prince of Peace. Of the increase of his government there will be no end. He 
 will reign on David's throne and over his kingdom, establishing and upholding
      it with justice and righteousness from that time on and forever."
------------------------------- Isaiah 9:7 (niv) ------------------------------



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to