Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have inherited a few LVM volumes and I noticed that fdisk reports the disks that make up the volume group as partition type 83 (Linux) and not 8e (Linux LVM). Is this a problem and how important are the fdisk partion types? Do they affect anything or are they just labels for convenience sake? Thanks for your help.

share|improve this question

2 Answers 2

up vote 4 down vote accepted

LVM does not look at the partition table at all - it doesn't even knows it actually exist. So you can set whatever "partition type" value you want there and it won't change anything as far as LVM is concerned.

LVM uses regular expressions in its config file to know what block devices to check for physical volumes, see the filter keyword in lvm.conf(5).

Some other tools do look at partition types, the linux kernel itself being the first example:

  • partition type 0x05, "Extended", tells the kernel to go look for an Extended Boot Record in the given partition, to find so called "logical partitions"
  • partition type 0xfd, "Linux RAID", tells the md driver in the kernel to try to autostart that raid volume, if it finds a suitable superblock in the given partition
share|improve this answer

The partition type is not important for lvm, md or mount. All of them are checking for signatures and internal structures to determine if they can use the device. Only user friendly partitioning programs might get confused. You can safely change the partition type if you want to be correct.

share|improve this answer
    
is there any limit to the partition types i can change it to? could i change it from type 83 linux to type b w95 fat32 ? or is it just within the minix/linux types (i.e. 8X). thanks for your help. –  jwinders Aug 30 '11 at 15:06
    
You can have problems if you put it extended, because the kernel will search for logical partitions. It will actually search for a partition table at the beginning of the partition marked as extended. If you have 2 partitions marked as extended you can have more compatibility problems. I strongly suggest to use the right type. And you can change from a linux type to a fat/fat32 type without no problem in linux. But be careful because Windows will ask you to format those partitions. –  Mircea Vutcovici Aug 30 '11 at 16:05
    
And the fact that you can do something in a different way does not means that is wise to do that. –  Mircea Vutcovici Aug 30 '11 at 16:07

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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