Stack Exchange Network
Stack Exchange network consists of 181 Q&A communities including
Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Visit Stack Exchange
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.
Sign up to join this community
Anybody can ask a question
The best answers are voted up and rise to the top
10 years, 8 months ago
Method #1 (The Graphical Way)
Disks program from dash:
Then choose your device from left. Make sure you have selected at least one volume, and click on
format as below:
Method #2 (The Command-Line Way)
In case you can't get your device formatted from
Method #1 try this way.
Open the Terminal (
Ctrl + Alt + T)
List your block storage devices by issuing the command
Then identify your pen drive by it's SIZE. In my case its
Erase everything in the pen drive
sudo dd if=/dev/zero of=/dev/sdb bs=4k && sync
/dev/sdb with your corresponding device. This will take some time. It will pretend to stuck. Just be patient.
Make a new partition table in the device:
sudo fdisk /dev/sdb
Then press letter
o to create a new empty DOS partition table.
Make a new partition:
n to add a new partition. You will be prompted for the size of the partition. Making a primary partition when prompted, if you are not sure.
Then press letter
w to write table to disk and exit.
Format your new partition.
See what is your new partition with a command
In my case it is
192k 52 52 gold badges 468 468 silver badges 719 719 bronze badges
Oct 9, 2012 at 5:35
9,205 11 11 gold badges 42 42 silver badges 68 68 bronze badges
You can try the application called
Disks Utility. It's a very handy utility which should let you format the disk, among other things. You can find it by pressing ALT + F2 and typing the name, or going to System > Administration, or I guess typing the name in unity dash.
68.9k 56 56 gold badges 215 215 silver badges 327 327 bronze badges
Oct 9, 2012 at 5:36
Karthik T Karthik T
2,011 1 1 gold badge 14 14 silver badges 20 20 bronze badges
By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our
Accept all cookies
Necessary cookies only