|
# Do a low-level disk check. badblocks -n -s /dev/fd0 if [ $? != 0 ]; then echo "Your floppy is bad!" exit fi
echo "Formatting floppy..." mformat a:
# Delete old loopback file system if it exists if [ -e fs ]; then echo "Deleting old loopback file system" rm -rf fs fi if [ -e filesys ]; then echo "Deleting old compressed file system" rm -f filesys fi
# Create mount point echo "Creating 'tempfs' temporary mount point folder" rm -r tempfs 2> /dev/null mkdir tempfs
|