How to Format a Drive in Linux?
Contents

Linux Hard Disk Format Command

  • Step #1 : Partition the new disk using fdisk command. Following command will list all detected hard disks:
  • Step#2 : Format the new disk using mkfs.ext3 command.
  • Step#3 : Mount the new disk using mount command.
  • Step#4 : Update /etc/fstab file.
  • Task: Label the partition.

How do I format a drive in Ubuntu?

Steps

  1. Open the Disks program.
  2. Select the drive you want to format.
  3. Click the Gear button and select “Format Partition.”
  4. Select the file system you want to use.
  5. Give the volume a name.
  6. Select whether or not you want a secure erase.
  7. Click the “Format” button to start the format process.
  8. Mount the formatted drive.

How do I format a Linux hard drive in Windows 10?

Format Linux USB Drive to recover full disk space in Windows 10

  • Step 1: Run Administrator Command Prompt. On Windows 10, Windows 8.1 and Windows 7 search for command and simply right-click Command Prompt shortcut from the search results and select Run as administrator .
  • Step 2: Use diskpart to clean disk.
  • Step 3: Re-partition and format.
James H. Sterling

James H. Sterling

Environmental Science & Climate Journalist

James Sterling reports on renewable energy developments, climate policy, ecological conservation, and green tech innovations around the globe.

Share this article
Twitter Facebook Pinterest