freeramdisk command not found

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

Introduction

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

freeramdisk: command not found

or when using sudo you get the following error message

sudo: freeramdisk: command not found

Solutions to freeramdisk: command not found

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

In Ubuntu freeramdisk is provided by loadlin package.

loadlin is:

LOADLIN-1.6 is highly adaptable to different DOS configurations, and now has very few loading restrictions. It makes use of extended memory and also can load big kernels (bzImages) and ramdisk images (initrd) directly high.

LOADLIN also can load out of Virtual-86 mode (which is normal when using EMS drivers) if a VCPI server is present.

The loadlin package also includes the freeramdisk program, which can return memory to the system when a ramdisk is no longer needed.

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

sudo apt-get -y install loadlin

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

You can also use apt command to install loadlin.

sudo apt -y install loadlin

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

sudo aptitude install loadlin

Summary

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