How to edit the files in the boot / system partitions? Solved

  1.    29 Jun 2016 #1

    How to edit the files in the boot / system partitions?

    See the image there. How can you access the file systems of the first two partitions on that disk? I want to add files to the recovery environment, but you can't do anything with those partitions in Windows (can't assign drive letters or anything).
      My ComputerSystem Spec

  2. topgundcp's Avatar
    Posts : 2,438
    Ubuntu14.04x64 MintMate17x64 Win10Prox64
       29 Jun 2016 #2

    The Recovery Environment is in the Recovery Partition (450MB): WinRE.wim (hidden)This file is built based on the WinPE which contains 2 executables:
    (Recovery Environment) and startrep.exe (Startup repair)

    To access it, you'd need to use diskpart command to assign a letter, change the attribute to unhidden on WinRE.wim , copy it to another folder or desktop, mount it, modify it and copy back.
      My ComputerSystem Spec

  3.    29 Jun 2016 #3

    You can assign drive letters using the DISKPART commands but be very careful about modifying these partitions. You can use MiniTool Partition Wizard to explore the contents of these partitions.

    DISKPART example commands:

    1. Open Elevated Command Prompt.
    2. Type: DISKPART
    3. At the DISKPART prompt, type: list volume
    4. Make note of the number of the simple volume whose drive letter you want to assign, change, or remove.
    5. At the DISKPART prompt, type: select volume n where n is the volume's number, whose drive letter you want to assign, change, or remove.
    6. At the DISKPART prompt, type assign letter=L where L is the drive letter you want to assign or change.
    7. Copy the files you need using Windows Explorer to access the drive
    8. To remove the drive letter type remove letter=L
      My ComputersSystem Spec

  4.    29 Jun 2016 #4

    Thanks for the replies. What about the Bitlocker Recovery environment? When you choose 'more recovery options' and it boots you straight into an admin CMD window, with an X: drive that has a Windows folder with loads of utils (including Regedit, etc)?
      My ComputerSystem Spec

  5.    29 Jun 2016 #5

    So after mounting it with Diskpart, it won't even let me enter the Recovery folder. Even after trying to change the owner / permissions.
      My ComputerSystem Spec

  6.    29 Jun 2016 #6

    Are you logged on as Administrator?

    I'd be wary of changing permission on these special partitions until you receive more advice on the Forum.

    Why do you want to change this partition anyway?
      My ComputersSystem Spec

  7. topgundcp's Avatar
    Posts : 2,438
    Ubuntu14.04x64 MintMate17x64 Win10Prox64
       29 Jun 2016 #7

    The folder structure of the Recovery Partition is ahown below:
    Click image for larger version. 

Name:	a.png 
Views:	1 
Size:	54.1 KB 
ID:	87406

    When you are in the Recovery Environment, WinPE is loaded into RAM, the folder structure looks the same as Windows under X: ie. Windows, System32 and includes limited set of commands such as regedit.exe etc...
      My ComputerSystem Spec

  8.    29 Jun 2016 #8

    I want to know: 1) Can I add tools to the Recovery Environment and 2) Can I remove the Recovery Environment completely (bearing in mind, this is a Bitlocker-protected OS).

    The former because I'm interested in adding functionality to the RE, and the latter because in one specific case, I want to prevent a user from using the Bitlocker RE to subvert the Windows security (you can re-enable the local admin account, for instance, even without any credentials).
      My ComputerSystem Spec

  9.    29 Jun 2016 #9

    Thankyou all for your help - I have tested, and I can both add apps to the Winre.wim, or cripple the RE by removing cmd.exe.

      My ComputerSystem Spec


Related Threads
Hi, So I thought I'd sling a new disk in my system. And then the OS wasn't seeing it so instead of looking in disk manager I just swapped the cables for my D: drive and powered on. The boot config was missing and Win 10 wouldn't boot. Somehow my...
How do i edit my music files in General Support
How do I edit the Media information (Contributing artist, track member, genre etc.) on a music file/track. This option was available at the bottom of the page in Windows 7.
I used MicroTool partition manager to delete the extra partitions on an OS drive with win10 (leaving just the main C partition on the drive), and now the laptop will not recognize the SSD with the OS on it, and obviously cannot boot. I also tried...
I can edit and view the tags (? these are called tags right ?) like 'Comments', 'Title', 'Authors' etc for .JPG and .JPEG files but cannot do the same for .PNG files. How do I it ? If it is not possible, then is there any way to convert 100s of png...
Solved How do I merge boot and system partitions in Installation and Upgrade
Hi everyone, I recently updated from Win7 to Win10. Initially when updating I was encountering an error, which I resolved by splitting my SSD into 2 partitions using CMD (I found this information through other posts). Now the SSD is in 2...
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 17:08.
Find Us