[SOLVED] [partition] Which ID to use to get "fat16", "fat32", or "vfat"?
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
[partition] Which ID to use to get "fat16", "fat32", or "vfat"?
There's a script that expects "parted -s /dev/sdb1 print" to return either "fat16", "fat32", or "vfat".
However, when using "mkfs.vfat -F 32 /dev/sdb1" followed by "fdisk /dev/sdb" to set its ID to "W95 FAT32" (type=b), parted returns "Partition Table: msdos". I also tried type=c, ie. "W95 FAT32 (LBA)", to no avail.
Does someone know which ID I should use so that parted is happy and the script proceeds?
You confuse partition type and filesystem format and partition table type. "fat16", "vfat", "ext4" are filesystems, partition types can be for example FAT12, FAT16, FAT32, Linux swap, etc. And partition tables can be "msdos" (most common), "GPT", "Apple". So specify which you want. Anyway filesystem is visible with this command "parted -s /dev/sdb1 print". You can paste this script here, maybe in there is something wrong.
root@ubuntu:~# parted /dev/sdb1
GNU Parted 2.3
Welcome to GNU Parted! Type 'help' to view a list of commands.
Model: Unknown (unknown)
Disk /dev/sdb1: 1079MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos