USB Keys, HDD

Reformatting USB key to FAT32 on Linux:

At first glance we need to remove any partitions that remain on the USB key.

- Open a terminal and type su or
sudo su and when prompted, enter root password
- Type "fdisk -l". Take note of the USB drive letter (
/dev/sdx).
- Type "fdisk /dev/sdx" (replace x in sdx with the drive letter)
- Type "d" to delete a partition
- Followed by "1" to select the 1st partition and press enter
- Type "d" to delete another partition (fdisk should auto-select the second partition)

Now we need to create a partition and write it back to the USB key.

- Type "n" to create a new partition
- Type "p" to make this the primary partition and press enter
- Type "1" to make the first partition and press enter
- Press enter to accept the default first cylinder
- Press enter again to accept the default last cylinder
- Type "w" to write the new partition information to USB key
- Type "umount /dev/sdx" (replace x in sdx with correct drive letter)

The last step is to create a fat32 (vfat) filesystem.

Type "mkfs.vfat -F 32 /dev/sdx1" (replace x in sdx with your drive letter)

You now have a USB key formatted with a single fat32 partition.

No comments:

Post a Comment