xdfformat command not found

In this troubleshooting guide we learn how to fix xdfformat command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

xdfformat: command not found

or when using sudo you get the following error message

sudo: xdfformat: command not found

Solutions to xdfformat: command not found

How To Fix xdfformat: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu xdfformat is provided by fdutils package.

fdutils is:

This package contains utilities for formatting extra capacity disks, automatic floppy disk mounting and unmounting, etc.

The package includes the following items:

  • superformat: formats high capacity disks (up to 1992k for high density disks or up to 3984k for extra density disks);
  • fdmount: automatically mounts/unmounts disks when they are inserted/removed;
  • xdfcopy: formats, reads and writes OS/2’s XDF disks;
  • MAKEFLOPPIES: creates the floppy devices in /dev;
  • getfdprm: prints the current disk geometry (number of sectors, track and heads etc.);
  • setfdprm: sets the current disk geometry;
  • fdrawcmd: sends raw commands to the floppy driver;
  • floppycontrol: configures the floppy driver;
  • general documentation about the floppy driver.

Note that these utilities do not work for USB floppy drives, because these do not allow direct access to the floppy controller.

To fix this problem, we can install more using the command below.

sudo apt-get -y install fdutils

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install fdutils.

sudo apt -y install fdutils

Or if you have aptitude installed you can use the following command.

sudo aptitude install fdutils

Summary

In this tutorial we learn how to fix xdfformat command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.