[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

parted need the type for a correct partition table



Daniel

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
http://www.gnu.org/software/parted/manual/parted.html#mkpart

that the fs-type (partition code) is required for data partitions.
Though its a bad example they give with an logical partition that dont
need it.

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.

regards
//Peter

-- 

bitrunner

0708-460260
Andra L?nggatan 28
41327 G?teborg
Sweden



Reply to: