mmc command not found

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

Introduction

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

mmc: command not found

or when using sudo you get the following error message

sudo: mmc: command not found

Solutions to mmc: command not found

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

In Ubuntu mmc is provided by mmc-utils package.

mmc-utils is:

mmc-utils is a tool that supports the MMC device development of Linux kernel.

The mmc-utils tools can do the following:

  • Print and parse extcsd data.
  • Determine the eMMC writeprotect status.
  • Set the eMMC writeprotect status.
  • Set the eMMC data sector size to 4KB by disabling emulation.
  • Create general purpose partition.
  • Enable the enhanced user area.
  • Enable write reliability per partition.
  • Print the response to STATUS_SEND (CMD13).
  • Enable the boot partition.
  • Set Boot Bus Conditions.
  • Enable the eMMC BKOPS feature.
  • Permanently enable the eMMC H/W Reset feature.
  • Permanently disable the eMMC H/W Reset feature.
  • Send Sanitize command.
  • Program authentication key for the device.
  • Counter value for the rpmb device will be read to stdout.
  • Read from rpmb device to output.
  • Write to rpmb device from data file.
  • Enable the eMMC cache feature.
  • Disable the eMMC cache feature.
  • Print and parse CID data.
  • Print and parse CSD data.
  • Print and parse SCR data.

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

sudo apt-get -y install mmc-utils

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

You can also use apt command to install mmc-utils.

sudo apt -y install mmc-utils

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

sudo aptitude install mmc-utils

Summary

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