When I run cfdisk (or fdisk) to partition a storage device, there's a point where I can specify the file system type. Does this do anything with respect to the actual file system? Suppose I want to to format a usb thumb drive with an ext2 file system. I'll still need to run mke2fs after cfdisk, correct?Would there be any problems with choosing something like FAT32 (or SWAP or whatever) in cfdisk and then creating an ext2 file system with mke2fs? What's the worst that could happen?
Difference between running mke2fs and setting FS type in cfdisk?
filesystems;fdisk;cfdisk
No it doesn't generally matter, it's just setting a value in the MBR portion of the partition.                       On certain OS'es such as Windows it does a check of the parititon type that's written here and will balk if it doesn't recognize it, on Linux it's generally oblivious and doesn't care what you put in that location.See my answer to this Q&A where I cover it a bit more if you're interested, titled: fdisk -l shows ext3 file system as HPFS/NTFS.TL;DRSo to summarize, you can generally select whatever you want for the partition types during the fdisk/cfdisk stage, and what really controls the type of a partition is the way that it's formatted when mkfs.* is used.The worst that can happen is that your partition is not bootable by your OS, and you'll have to re-partition and re-format.