[[!meta title="Change partition type without reformatting"]] [[!meta date="2011-01-02 17:29"]] [[!meta author="rohieb"]] [[!meta license="CC-BY-SA 3.0"]] Note to myself: it is possible to change the partition type of a already formatted (and used) partition. For example, if you have already formatted the partition with NTFS, but accidentally had created it with partition type `0x83` (Linux), so Windows can’t read it, since it expects `0x07` (HPFS/NTFS). On Linux, you can use sfdisk for that purpose: # Be root # dd if=/dev/sdb of=sdb-bootsector count=1 # backup boot sector # sfdisk -d /dev/sdb | sed -e 's/Id=83/Id=07/' > /tmp/sdb.txt # sfdisk /dev/sdb < /tmp/sdb.txt (fill in the right values for your case) Of course, good old fdisk works also, use the `t` command. [(Source)](http://serverfault.com/questions/46758/can-you-change-the-partition-type-on-a-linux-server-without-starting-up-fdisk/46840#46840) [[!tag hacking howto useless_bits_of_information fdisk Linux Master_Boot_Record NTFS partition partition_table partition_type sfdisk]]