Tuesday, January 11, 2011

How to format a USB or removable hard drive on Ubuntu?

To format a file system on Ubuntu or any other distribution, we do not usually have a contextual menu button "Format ..." or something similar. However, we do have the necessary tools.

gnome-format

If you want you can use graphical interface gnome-format, A program of the Gnome project is already discontinued, but it does a good job. You can find it in your repository.


mkfs

The tool of Unix-like systems for this work is mkfs. Let's see what we do from the console to format a removable device.

What device?

First you'll know what device it is. To do this with the command mount show a list of all devices that are mounted at the time. Look for our device, which will be of style /dev/sdb1 through the reference we have in the mount point: /media/usb.

New filesystem

We can only create the new file system. Depending on the file system, use any of the following commands (as long as super users):
FAT32 (recommended for USB if you also use it in Windows): mkfs.vfat /dev/sdX
ext3: mkfs.ext3 /dev/sdX
ex4: mkfs.ext4 /dev/sdX
After a few seconds, the file system is created and we will have ready device.
If this article was useful and you want to help us to grow Subscribing to our feed or Click "Like" in our Facebook page ,or follow us via Twitter or subscribing to our feed.

People who read this post also read :



1 comments:

Thank you so much for sharing. I really appreciate your post.

Post a Comment

Twitter Delicious Facebook Digg Stumbleupon Favorites More