Back to top

Linux - Formatting a floppy disk

Formatting and Mounting a floppy disk in Linux

The first step in formatting a floppy disk is to decide what format or filesystem you want to put on the floppy disk.

If you plan to use the floppy disk on a Linux computer only - format the floppy with the following command:

# mkfs -t ext2 /dev fd0 1440

If you plan to use the floppy disk in both Linux and Windows computer - format the floppy with the following command:

# mkfs -t msdos /dev fd0 1440

In order to mount a floppy disk - you must first create a mount point (if it does not already exist) with the following command:

# mkdir /mnt/floppy

To mount a floppy disk formatted on a Linux computer - use the command:

# mount /dev/fd0 /mnt/floppy

or (if it fails)

# mount -t ext2 /dev/fd0 /mnt/floppy

To mount a floppy disk formatted on a Windows computer - use the command:

# mount /dev/fd0 /mnt/floppy

or (if it fails)

# mount -t msdos /dev/fd0 /mnt/floppy

To unmount a floppy disk, first be sure that you are not within the directory /mnt/floppy and then use the command:

# umount /mnt/floppy

Additional Information

For more information, you can always consult the following man page(s):

  • man mkfs
  • man mount
  • man umount