: Does anybody know ,how to format a DOS-formatted 3.5 inches 1.44M floppy
: diskette
: I have runned such command(as root) in REDHAT 6.0:
: # fdformat /dev/fd0H1440
: But got "CRC error ........" ,why ?
Here's a shellscript I wrote (it's an ugly hack, but it does the job)
a few years ago to to both a Low-Level format and then to put a DOS
filesystem on a diskette. If you save the script as "dosformat" you
would then invoke it as:
dosformat /dev/fd0H1440
or whatever the device is you're formatting. it assumes you've got
mkdosfs on your system (it came with mine).
Fred
-----------------------------------------------------------------------
#!/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
-----------------------------------------------------------------------
--
"Not everyone who says to me, 'Lord, Lord,' will enter the kingdom of
heaven, but only he who does the will of my Father who is in heaven."
------------------------------ Matthew 7:21 (niv) -----------------------------