Can Partition Type be changed

Page 3 of 3 FirstFirst 123

  1. Posts : 5,478
    2004
       #21

    You can change partition types back and forward - it doesn't affect the partition contents at all as you are updating the partition table not whatever is written to the disk in the partitions location. You could in fact delete the entire partition table and recreate it and you would not lose any data as long as when you recreate it you put in the same start and end positions.

    Anyway, assuming you want to set partition 4 to recovery then you can do is as @Bree mentioned earlier - i.e.
    set id=de94bba4-06d1-4d40-a16a-bfd50179d6ac

    Here I change mine to MS Basic data and back... You can see when type is set to MS Basic Data type (ebd0a0a2-b9e5-4433-87c0-68b6b72699c7) you get the "no volume associated with this partition" message as there is no letter assigned. You don't get this message when it is Recovery type as the OS doesn't expect the recovery partition to be mounted.

    Code:
    PS C:\Windows\system32> diskpart
    
    Microsoft DiskPart version 10.0.15063.0
    
    Copyright (C) Microsoft Corporation.
    On computer: MACBOOK
    
    DISKPART> sel disk 0
    
    Disk 0 is now the selected disk.
    
    DISKPART> sel par 1
    
    Partition 1 is now the selected partition.
    
    DISKPART> det par
    
    Partition 1
    Type    : de94bba4-06d1-4d40-a16a-bfd50179d6ac
    Hidden  : Yes
    Required: Yes
    Attrib  : 0X8000000000000001
    Offset in Bytes: 1048576
    
      Volume ###  Ltr  Label        Fs     Type        Size     Status     Info
      ----------  ---  -----------  -----  ----------  -------  ---------  --------
    * Volume 1         Recovery     NTFS   Partition    450 MB  Healthy    Hidden
    
    DISKPART> set id=ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
    
    DiskPart successfully set the partition ID.
    
    DISKPART> det par
    
    Partition 1
    Type    : ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
    Hidden  : No
    Required: Yes
    Attrib  : 0X8000000000000001
    Offset in Bytes: 1048576
    
    There is no volume associated with this partition.
    
    DISKPART> set id=de94bba4-06d1-4d40-a16a-bfd50179d6ac
    
    DiskPart successfully set the partition ID.
    
    DISKPART> det par
    
    Partition 1
    Type    : de94bba4-06d1-4d40-a16a-bfd50179d6ac
    Hidden  : Yes
    Required: Yes
    Attrib  : 0X8000000000000001
    Offset in Bytes: 1048576
    
      Volume ###  Ltr  Label        Fs     Type        Size     Status     Info
      ----------  ---  -----------  -----  ----------  -------  ---------  --------
    * Volume 1         Recovery     NTFS   Partition    450 MB  Healthy    Hidden
    
    DISKPART>
      My Computer


  2. Posts : 31,660
    10 Home x64 (22H2) (10 Pro on 2nd pc)
       #22

    Thanks for that demonstration @lx07, you have recreated the situation shown in post #1. It would seem that setting the partition ID to a recovery partition is necessary after all.

    Setting the type to MS Basic Data type (ebd0a0a2-b9e5-4433-87c0-68b6b72699c7) appears to be the other damage that was done in the resizing. Correcting that and setting the path with reagentc should be all that's needed (assuming of course that the data in the partition wasn't damaged).
      My Computers


  3. Posts : 37
    Windows 10 Build 1607
    Thread Starter
       #23

    lx07 said:
    You can change partition types back and forward - it doesn't affect the partition contents at all as you are updating the partition table not whatever is written to the disk in the partitions location. You could in fact delete the entire partition table and recreate it and you would not lose any data as long as when you recreate it you put in the same start and end positions.

    Anyway, assuming you want to set partition 4 to recovery then you can do is as @Bree mentioned earlier - i.e.
    set id=de94bba4-06d1-4d40-a16a-bfd50179d6ac
    [/code]
    That did the trick! Disk Management looks good as does DiskPart partition detail. I tried out Veritas SR 2016 and it also now recognizes this partition needs to be included in the backup.
      My Computer


  4. Posts : 31,660
    10 Home x64 (22H2) (10 Pro on 2nd pc)
       #24

    PoulsboMike said:
    That did the trick! Disk Management looks good as does DiskPart partition detail. I tried out Veritas SR 2016 and it also now recognizes this partition needs to be included in the backup.
    The final test is to see if it is now a workling recovery partition.

    Boot to Advanced Startup Options in Windows 10
    Last edited by Bree; 14 Jun 2017 at 15:52.
      My Computers


  5. Posts : 5,478
    2004
       #25

    Good news. What is your plan now?

    Earlier you had this:
    Code:
    C:\WINDOWS\system32>reagentc /info
    Windows Recovery Environment (Windows RE) and system reset configuration
    Information:
        Windows RE status:         Enabled
        Windows RE location:       \        
        Boot Configuration Data (BCD) identifier: 3bb76b1b-8c2b-11e2-be6a-9c2a7048d782    
        Recovery image location:   \\?\GLOBALROOT\device\harddisk0\partition7\DELL\Image
        Recovery image index:      1
        Custom image location:
        Custom image index:        0
    Are you going to register partition 4 as mentioned in post 14? You only need one RE partition so if you register 4 you could delete 2 and 6
    Code:
    Partition ###  Type              Size     Offset
      -------------  ----------------  -------  -------
    * Partition 1    System             500 MB  1024 KB
      Partition 2    Recovery            40 MB   504 MB
      Partition 3    Reserved           128 MB   544 MB
      Partition 4    Primary            618 MB   672 MB
      Partition 5    Primary           1847 GB  1290 MB
      Partition 6    Recovery           450 MB  1848 GB
      Partition 7    Recovery            13 GB  1849 GB
    Or you could register 6 and delete 2 and 4.

    Partition 7 is some Dell recovery partition I suppose which you could delete (or not) as you wish.

    It doesn't matter really as long as you have one registered that works but I'd certainly delete partition #2 or next upgrade windows will make yet another recovery partition as 40MB is too small to fit the WinRE.wim.
      My Computer


  6. Posts : 37
    Windows 10 Build 1607
    Thread Starter
       #26

    lx07 said:
    Good news. What is your plan now?
    I executed the setid change on partition 4. Everything seems to be back where I wanted -- with a larger partition.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 19:27.
Find Us




Windows 10 Forums