h1

format flash disk in REDHAT

February 15, 2012

Do you use Linux as your OS? But your flash disk has no disk space? Don’t worry, this is the step of formatting flash disk in Linux, especially REDHAT :

  • unmount your flash disk
  • open new terminal
  • make sure you’re on root
  • run fdisk -l to make sure, which device your flashdisk is (device might be something like /dev/hda or /dev/sda

output will be something like this :
Disk /dev/hdb: 64 heads, 63 sectors, 621 cylinders
Units = cylinders of 4032 * 512 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 184 370912+ 83 Linux
/dev/hda2 185 368 370944 83 Linux
/dev/sda1 369 552 370944 83 Linux
/dev/sda2 553 621 139104 82 Linux swap

  • format your flash disk with this command : mkfs.vfat -F32 -n your-flash-disk-name device

mkfs.vfat -F32 -n MYNAME /dev/sda1

Now you can reuse your flash disk 😉

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: