parted need the type for a correct partition table
- Subject: parted need the type for a correct partition table
- From: peter.skogstrom at bitrunner.com (Peter Skogström)
- Date: Fri, 16 Nov 2007 00:59:33 +0100
- Message-id: <473CDD65.firstname.lastname@example.org>
I believe that the commit 2e51237e125d7512c7c5d6d6747c10f5da5f3147
is not correct. It will still work but the partition dont have the right
type (partition code) set. Instead it probably will have type 83 as
default in the partition table.
fdisk will show the type. Parted will not, it only shows the filesystem
in the partition.
mkpart primary fat16 0.0 100%" || true
The parted docs says
that the fs-type (partition code) is required for data partitions.
Though its a bad example they give with an logical partition that dont
The partition type/code is inside the 64 byte big partition table in the
first sector of the disk.
So the first commit was correct as mkfs dont have anything with the type
code to do, it has to be set by the partition tool (parted) in this case.
Andra L?nggatan 28