[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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
[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