Atlas - floppy-qformat.sh
Home / usr / scripts Lines: 1 | Size: 392 bytes [Download] [Show on GitHub] [Search similar files] [Raw] [Raw (proxy)][FILE BEGIN]1# floppy-qformat.sh - Quick format a floppy disk with FAT12 filesystem 2# COMMAND [DEVICE] [LABEL (optional)] 3 4if [ -z "$1" ]; then 5 echo "Usage: $0 [DEVICE] [LABEL (optional)]" 6 exit 1 7fi 8 9DEVICE="$1" 10LABEL="${2:-FLOPPY}" 11if [ ! -b "$DEVICE" ]; then 12 echo "Error: $DEVICE is not a block device." 13 exit 1 14fi 15umount "$DEVICE" 2>/dev/null 16mkfs.vfat -F 12 -n "$LABEL" "$DEVICE" 17sync 18[FILE END](C) 2025 0x4248 (C) 2025 4248 Media and 4248 Systems, All part of 0x4248 See LICENCE files for more information. Not all files are by 0x4248 always check Licencing.