[CentOS] How to format a USB drive?

m.roth at 5-cent.us m.roth at 5-cent.us
Thu Jun 2 15:35:56 UTC 2011


Todd,

Todd Cary wrote:
> I have a usb drive, /media/disk and I want to reformat it.  There
> are several questions that come up:
>
> How can I determine the current format?
>
> Do I use the mkfs command?
>
You can pretty much format it any way you want. fdisk /media/disk, then p,
will tell you what it thinks it is; change the type with a t if you want
something different. Partition it as you like - it's just a storage
medium.

My USB key that I have set up to install CentOS from has a 10M DOS
partition, and the rest of the 8G is ext3 (or did I make it ext2 - I
forget).

       mark




More information about the CentOS mailing list