fdflush command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
fdflush: command not found
or when using sudo you get the following error message
sudo: fdflush: command not found
Solutions to fdflush: command not found
How To Fix fdflush: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu fdflush is provided by fdflush package.
fdflush is:
fdflush is a band-aid for floppy (or other) drives with bad disk-change sensing. fdflush makes the system believe the disk-change switch has been triggered forcing the system to discard the buffered data.
If you have one of these slightly-broken disk drives, you’ll have to run fdflush every time you change a disk.
fdflush is useful for computers which might be sleeping when you change floppies or other removable media.
The command “floppycontrol -f” does the same thing, but the fdutils package is significantly larger; it only uses the floppy-specific flush ioctl.
The command “blockdev –flushbufs” only uses the generic flush ioctl.
To fix this problem, we can install more using the command below.
sudo apt-get -y install fdflush
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install fdflush.
sudo apt -y install fdflush
Or if you have aptitude installed you can use the following command.
sudo aptitude install fdflush
Summary
In this tutorial we learn how to fix fdflush command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.