starous
Posts: 9
Joined: Tue Sep 18, 2012 2:48 pm

Why my first partition is FAT16?

Wed Sep 26, 2012 10:13 pm

Hi all,
first, excuse me if I'm writing in the wrong forum, but I didn't know where to ask my question.
After flashing the RasPi image to may 16GB SD card I have noticed that my first partition is formatted with FAT16. But on most of the forums I see that people has FAT2. Were my partitions created wrongly?

This is a print from parted:

Code: Select all

Model: SD SA16G (sd/mmc)
Disk /dev/mmcblk0: 15.7GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start   End     Size    Type     File system  Flags
 1      4194kB  62.9MB  58.7MB  primary  fat16        lba
 2      62.9MB  1940MB  1877MB  primary  ext4
 3      1940MB  15.7GB  13.8GB  primary
Thanks!

User avatar
redhawk
Posts: 3465
Joined: Sun Mar 04, 2012 2:13 pm
Location: ::1

Re: Why my first partition is FAT16?

Wed Sep 26, 2012 10:39 pm

For the PI to boot up the first partition on the SD card must be either fat32 or fat16 to read the files the fact it's not fat32 doesn't matter considering it's small size anyway.

Richard S.

User avatar
jojopi
Posts: 3147
Joined: Tue Oct 11, 2011 8:38 pm

Re: Why my first partition is FAT16?

Wed Sep 26, 2012 10:53 pm

On most images, "sudo parted -l /dev/mmcblk0" will say that the first partition is fat16, whereas "sudo fdisk -l /dev/mmcblk0" will say it is fat32. That is because fdisk reads the id field from the partition table, whereas parted reads the filesystem superblock.

For such a small partition it would be less efficient to use fat32, so the formatting program uses fat16 despite the partition id. Arguably, the partition id should be set to 0x0e (fat16 lba) instead of 0x0c (fat32 lba), but in practice no operating system cares about this.

starous
Posts: 9
Joined: Tue Sep 18, 2012 2:48 pm

Re: Why my first partition is FAT16?

Thu Sep 27, 2012 1:01 pm

Thanks guys for answering my question ;)

Return to “Beginners”