Public bug reported:

Binary package hint: parted

Please correct the "msftres" flag bug in libparted by deleting the
following code from (parted-source-dir)/libparted/labels/gpt.c :-

if (strncmp (fs_type->name, "fat", 3) == 0
|| strcmp (fs_type->name, "ntfs") == 0) {
gpt_part_data->type = PARTITION_MSFT_RESERVED_GUID;
return 1;
}

The "Microsoft Reserved" Partition in GPT is needed only for conversion
from a basic disk to dynamic disk in Windows. Otherwise it is not at all
needed and according to Microsoft, any FAT(16,32 etc..) or NTFS
partition(s) should be "Basic Data Partition" if they have to be
accessible in Windows and Mac (Linux allows access even to a msftres
partition).

Think of it like the 128 MB gap between partitions imposed by Mac OS X's
Disk Utility in GPT disk for future usage which cannot be anticipated at
present. Microsoft creates this partition for any future usage similar
to the 128 MB gap.

The above mentioned code in libparted assumes that any FAT or NTFS
partition must be marked as Microsoft Reserved (the same way any HFS
partition must be marked Apple_HFS), but this is not correct.

This bug can be corrected by either deleting the above lines or by
modifying them as follows :-

if (strncmp (fs_type->name, "fat", 3) == 0
|| strcmp (fs_type->name, "ntfs") == 0) {
gpt_part_data->type = PARTITION_BASIC_DATA_GUID;
return 1;
}

** Affects: parted (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: gpt libparted msftres parted

** Description changed:

  Binary package hint: parted
  
- Please correct the msftres bug in libparted by deleting the following
- code from (parted-source-dir)/libparted/labels/gpt.c :-
+ Please correct the "msftres" flag bug in libparted by deleting the
+ following code from (parted-source-dir)/libparted/labels/gpt.c :-
  
  if (strncmp (fs_type->name, "fat", 3) == 0
  || strcmp (fs_type->name, "ntfs") == 0) {
  gpt_part_data->type = PARTITION_MSFT_RESERVED_GUID;
  return 1;
  }
  
  The "Microsoft Reserved" Partition in GPT is needed only for conversion
  from a basic disk to dynamic disk in Windows. Otherwise it is not at all
  needed and according to Microsoft, any FAT(16,32 etc..) or NTFS
  partition(s) should be "Basic Data Partition" if they have to be
  accessible in Windows and Mac (Linux allows access even to a msftres
- partition). Think of it like the 128 MB gap between partitions imposed
- by Mac OS X's Disk Utility in GPT disk for future usage which cannot be
- anticipated at present. Microsoft creates this partition for any future
- usage similar to th 128 MB gap. The actual size of a msftres partition
- need not exceed 128 MB according to Microsoft.
+ partition).
+ 
+ Think of it like the 128 MB gap between partitions imposed by Mac OS X's
+ Disk Utility in GPT disk for future usage which cannot be anticipated at
+ present. Microsoft creates this partition for any future usage similar
+ to the 128 MB gap.
  
  The above mentioned code in libparted assumes that any FAT or NTFS
  partition must be marked as Microsoft Reserved (the same way any HFS
- partition must be marked Apple_HFS), but this is not correct. This bug
- can be corrected by either deleting the above lines or by modifying them
- as follows :-
+ partition must be marked Apple_HFS), but this is not correct.
+ 
+ This bug can be corrected by either deleting the above lines or by
+ modifying them as follows :-
  
  if (strncmp (fs_type->name, "fat", 3) == 0
  || strcmp (fs_type->name, "ntfs") == 0) {
  gpt_part_data->type = PARTITION_BASIC_DATA_GUID;
  return 1;
  }

-- 
"msftres" flag bug in GNU Parted while using GPT disk
https://bugs.launchpad.net/bugs/397386
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to