Thursday, December 4, 2008

How Format Pen Drive in ubuntu?

If you are using linux but dont have enough knowledge to Format Pen Drive, give a look at following commands. You can format USB pen drive with the help of following commands:

[a] fdisk : Partition table manipulator for Linux

[b] mkfs.ext3 : Create an ext2/ext3 filesystem by formatting given partition name (/dev/partition)

[c] e2label : Change the label on an ext2/ext3 filesystem

First make sure USB Pen Drive is not mounted. Click on Places > Computer > Select USB pen > Right click > Select Unmount Volume.

Let us assume that /dev/sda1 is your partition name for USB pen drive. To format type the following command (Open X terminal and type the command)
$ sudo mkfs.ext3 /dev/sda1
Caution: Careful while entering device/partition name; wrong name can wipe out entire hard disk!!!
Now use e2label command to change the filesystem label on the ext3 filesystem located on device /dev/sda1:
$ sudo e2label /dev/sda1 usb-pen
You can also create an MS-DOS/Windows XP file system under Linux, enter:
$ sudo mkfs.vfat /dev/sda1

Now you are ready to use USB pen drive.

You can also format Pen Drive with gparted software. For this you need to do the following steps:

1) Click on system->Administration->synaptic package manager ,it will open the package manager window.

2) In that search for package "gparted" then,click on "mark for installation" and then press the button "apply" then it will install gparted software.

3) After installation click on system->Administration->partion Editor,it will open partion editor window.

4) First make sure USB pen is not mounted. Click on Places > Computer > Select USB pen > Right click > Select Unmount Volume.

5) Then , select pendrive and right click on it and then select "format to" option then press "apply" button.

Now also you are ready to use USB Pen Drive.

5 comments:

MTM said...

Formatting a pendrive worked well using gparted in Ubuntu. Thank you very much.

G Shri Raaghav Prasad said...
This comment has been removed by the author.
G Shri Raaghav Prasad said...

Gparted rocks...small,simple and powerful...thanks....

kiel said...

I agree with u mr Shri raaghav prasad
===========
webdesign

webdesign said...

thanks for the information about pendrive in ubuntu.
==========
non voice projects