dimecres, 11 de juliol del 2007

How to format an USB

I would like to make use of this post to explain to you how you can format you USB from linux (in an Ubuntu "Fiesty", to be precise :P).
The steps you have to follow are very simply:
  1. Connect you usb.
  2. If it is mounted automatically you have to umount it before you can format it:
    $ cat /etc/mtab
    # With this command you can look for your usb device
    $ sudo umount /dev/sdb1
  3. Formatting:
    $ sudo mkfs.vfat -I /dev/sdb1
    # The command mkfs.vfat formats your usb into FAT32
  4. Mount the usb:
    $ sudo mount -t auto /dev/sdb1 /media/disk
  5. Check its capacity:
    $df -h
With this 5 steps you will have your USB as a new one. It's easy, isn't it? :D