Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Clear msftres and other GPT 'flags' set by GNU Parted' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Clear msftres and other GPT 'flags' set by GNU Parted
Authored by: skodabenz on Aug 22, '09 08:40:51AM

For those of you who are struck up with the "msftres" flag bug in GNU Parted try this software to correct the problem :-

[link:]http://www.rodsbooks.com/gdisk/[link:]

[link:]http://sourceforge.net/projects/gptfdisk[link:]

You need to compile this software before using it. Just download the gdisk*.tgz file, decompress it, cd into that folder, type make.

If "make" command gives an error like "g++ not found", then you need to install "GCC and, G++ or GCC-C++" depending on the package name before compiling it. Follow the Read me file in gdisk folder on how to use the software.

This software is modelled along Linux fdisk (fdisk is for MBR disks).

Usage (for correcting the msftres flag problem only) :-

Type the commands in order in a terminal :-

1. su

2. Type the root password

3. gdisk /dev/sda (or /dev/sdb or sdc etc. - check GParted for the device file name of your disk)

4. At the prompt Command (m for help): type p

Number Start (block) End (block) Size Code Name

1 62 3980213 1.9 GiB 0c01

5. Note down the numbers of the partition(s) marked msftres ( all partitions with the code 0c01).

6. At the prompt Command (m for help): type t , then at the next prompt type the partition number for which you want to remove msftres :-

Current type is 'Microsoft Reserved'

Hex code (L to show codes, 0 to enter raw code):

7. To change the partition type to "Linux/Windows data" (Basic Data Partition) type 0700 at the prompt.

Hex code (L to show codes, 0 to enter raw code): 0700

Changed system type of partition to 'Linux/Windows data'

8. Now at the prompt Command (m for help): type w . This is very important as the changes will not be made to the disk until you do this. All the changes are done by gdisk by copying the GPT table into RAM and working from there. Only this step saves the changes to the GPT table in the disk and then the program exits.

9. If at any stage you want to exit the program without changing anything in the disk, type

Command (m for help): q

Note: I did not write this program and I take no responsibility whatsoever if anything goes wrong while using this. Follow step 9 if you want to exit without making changes.

For more info go to these links :-

[link:]http://www.insanelymac.com/forum/index.php?showtopic=113754&mode=linear[link:]

[link:]http://www.insanelymac.com/forum/index.php?showtopic=31562&mode=linear[link:]

The software GPT fdisk is also available for Mac OS X. The software version at the time of writing this is 0.3.2 .



[ Reply to This | # ]
Clear msftres and other GPT 'flags' set by GNU Parted
Authored by: skodabenz on Sep 25, '09 08:31:47AM
This bug has been corrected in GNU Parted GIT repository
http://git.debian.org/?p=parted/parted.git (as on 25th September 2009).

[ Reply to This | # ]
Clear msftres and other GPT 'flags' set by GNU Parted
Authored by: PizzaCake on Oct 24, '09 08:49:01AM

Using gparted 0.4.4 to create a FAT 32 partition I ended up with the dreaded microsoft reserved partition. Diskutil simply gave up and crashed. Gdisk 0.5 fixed it :) I first tried changing the type of the partition but this was not enough, the partitions were still messed up. After deleting the troublesome 'reserved' partition and rebooting all prior problems were fixed including gpt and mbr syncing as verified with refit.

Note gdisk is a lot easier to use now as it asks which which partition rather than entering sector numbers.

Many thanks to the author.



[ Reply to This | # ]