

Install parted on Ubuntu and Debian # sudo apt update sudo apt install parted Install parted on CentOS and Fedora # sudo yum install parted Identifying the USB or SD Card Name # If parted is not installed on your system, you can install it using your distribution package manager. You can check if it is installed on your system by typing: parted -version parted (GNU parted) 3.2Ĭopyright (C) 2014 Free Software Foundation, Inc. The parted package is pre-installed on most Linux distros nowadays. GNU Parted is a tool for creating and managing partition tables. If you have data on the UDB drive or the SD card, make sure you back it up. It’s important to note that formatting is a destructive process, and it will erase all the existing data.

This article explains how to format a USB Drive or SD Card on Linux using the parted utility. Or parted to format the drive and create the required partitions. In Linux, you can use a graphical tool like GParted or command-line tools such as fdisk However, in some cases, you may need to format the drive. Typically most USB drives and SD cards come preformatted using the FAT file system and do not need to be formatted out of the box. Before you can use an SD card or USB drive, it needs to be formatted and partitioned.
