reformat a USB with cd image

Andy Green andy at warmcat.com
Fri Sep 14 07:19:03 UTC 2007


Somebody in the thread at some point said:

> I have a USB with a livecd image written on it (using dd if livecd.iso
> of /dev/sdc ). How to revert it to FAT  or  other file system?

All you need to do to make it "normal" again is to write a partition
table on /dev/sdc.

# fdisk /dev/sdc

Then "o" for empty partition table, add partion 1 with "n" using the
flag you want (FAT16, ext3 or whatever).  Then "w" to commit the table
to the USB stick and exit.

Pull the stick out and re-insert it to make sure the new partition table
is understood by the kernel.  Then

# mkfs.vfat /dev/sdc1

or whatever to format your first partition.

-Andy




More information about the fedora-list mailing list