PDA

View Full Version : [ubuntu] Pen drive formatting .



rsiddharth
July 13th, 2009, 06:56 AM
I want to format my pen drive ( USB stick ) , how will I do it in ubuntu ? .

Thank you for any help .

hkvn
July 13th, 2009, 06:58 AM
Use gparted

mano cazalet
July 13th, 2009, 07:07 AM
for ext3 you can do it from terminal with

sudo mkfs.ext3 /dev/sdaX

just be careful to format the correct drive

for ntfs i don't know how it works in terminal, just in gparted

ddrichardson
July 13th, 2009, 07:11 AM
gparted is not installed by default so you could just open a terminal and use the mkfs.vfat command. Make sure you know the partition name (as in /dev/sdb) and remember that you need to use sudo so make sure you have the correct device.

You can find the device using:

dmesg|grep usbWith the device plugged in.

To format:

sudo mkfs.vfat DEVICE_NAME

dharanitharan
July 31st, 2009, 08:43 AM
wat i ve to do to format the pen drive with ntfs file system:)

kpkeerthi
July 31st, 2009, 08:44 AM
wat i ve to do to format the pen drive with ntfs file system:)

Install gparted using synaptic. Its interface is graphical and intuitive.

vinutux
July 31st, 2009, 09:39 AM
Install gparted using synaptic. Its interface is graphical and intuitive.

Install gparted
sudo apt-get install gparted

Humanum
July 31st, 2009, 11:01 AM
wat i ve to do to format the pen drive with ntfs file system:)

Once you've installed Gparted, launch it and then select the drive you want to format.

Then, click on it (might be with the right button) and you'll have a list of options... from there it's kind of easy peasy... You read and apply

Haven't got my laptop near to tell the whole process :popcorn:

dharanitharan
July 31st, 2009, 12:53 PM
is there any other way s available to format via terminal commands:confused:

Grenage
July 31st, 2009, 12:56 PM
Totally,

For example, I want a basic format for use on linux and windows:

If you need to partition it:
fdisk /dev/sdc (pen drive)
make a type-c partition

Just to format the partition:
mkdosfs /dev/sdc1 (pick the right drive and partition)

Edit: ddrichardson has already covered this for you, scroll up.

dharanitharan
July 31st, 2009, 01:00 PM
thanks a lot:)

rsiddharth
July 31st, 2009, 01:09 PM
I apologize for being 2 weeks to respond . I Thank you ddrichardson , mano cazalet and others for your help .