0

How to change my partition type id from 83 to 8e without formatting and losing data?

1

Run fdisk on the appropriate disk, for example

sudo fdisk /dev/sdb

Press t to change the type of a partition. If there are several, you will be asked which one you want to change:

Partition number (1,2, default 2):

If there’s only one, fdisk will tell you it’s automatically selecting it:

Selected partition 1

Once the partition is selected, fdisk will ask what type you want:

Partition type (type L to list all types):

Enter “8e” here. Press p to check the result, then w to write it to disk if the changes are OK or q to quit without saving.

This won’t touch the contents of the partition, you won’t lose any data. It also won’t set LVM up, if that’s what you’re really after.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.