Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This question already has an answer here:

I'm new to Linux Mint and I've just installed Linux Mint 14. Now I need to format my USB drive, but I'm not getting any option to do that.

Please suggest me anyone, how can I do that with a GUI?

share|improve this question

marked as duplicate by jasonwryan, Mat, rahmu, vonbrand, Renan Mar 19 '13 at 12:49

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

up vote 7 down vote accepted

You can use graphical tools to achieve this, such as GParted. You can install this like so:

apt-get update
apt-get install gparted

Your OS may also include a graphical package manager, if so, you can alternatively install the gparted package from there.

After gparted is installed, run it. Select your flash drive (be careful, make sure it is the right device by checking the size, name, and existing partitions), and delete all of the existing partitions. Then, create a new filesystem that spans the disk, and tell gparted to format it to ext4 (which is probably the filesystem you want), then click OK.

Command line alternative

Alternatively, you can also do this with fdisk and the filesystem's mkfs tool. Assuming the relevant block device is /dev/sdb (check using fdisk -l and/or blkid, it is very possible that it is not) and you want to format to ext4 (you probably do):

# Create partition scheme
fdisk /dev/sdb << 'EOF'

# Format partition 1
mkfs.ext4 /dev/sdb1

If you only want one partition, it is also possible to create it with no partition table:

mkfs.ext4 /dev/sdb
share|improve this answer
I'd use ext2 for a flash drive, as journaling can be a real pain if this flash drive ever gets removed without properly unmounting. – Wyatt8740 Aug 2 '14 at 4:02

Not the answer you're looking for? Browse other questions tagged or ask your own question.