1.    29 Jun 2016 #1
    Join Date : Apr 2016
    Posts : 18
    Windows 10

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


    http://abload.de/image.php?img=untitled39jwv.png

    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.    29 Jun 2016 #2
    Join Date : Jul 2014
    San Jose, California
    Posts : 2,057
    Ubuntu14.04x64 MintMate17x64 Win10Prox64

    The Recovery Environment is in the Recovery Partition (450MB): WinRE.wim (hidden)This file is built based on the WinPE which contains 2 executables:
    recenv.exe
    (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
    Join Date : Jun 2015
    UK
    Posts : 1,897
    Windows 10 Home x64 (Laptop), Windows 10 Pro x64 (Desktop)

    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 ComputerSystem Spec
  4.    29 Jun 2016 #4
    Join Date : Apr 2016
    Posts : 18
    Windows 10
    Thread Starter

    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
    Join Date : Apr 2016
    Posts : 18
    Windows 10
    Thread Starter

    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
    Join Date : Jun 2015
    UK
    Posts : 1,897
    Windows 10 Home x64 (Laptop), Windows 10 Pro x64 (Desktop)

    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 ComputerSystem Spec
  7.    29 Jun 2016 #7
    Join Date : Jul 2014
    San Jose, California
    Posts : 2,057
    Ubuntu14.04x64 MintMate17x64 Win10Prox64

    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
    Join Date : Apr 2016
    Posts : 18
    Windows 10
    Thread Starter

    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
    Join Date : Apr 2016
    Posts : 18
    Windows 10
    Thread Starter

    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.

    Thanks!
      My ComputerSystem Spec

 


Similar Threads
Thread Forum
Solved Boot Trouble, system partitions and UEFI
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...
General Support
How do i edit my music files
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.
General Support
Solved Deleted recovery and boot partitions; can no longer boot
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...
General Support
How do I edit/view 'comments' tag for .PNG files ?
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...
Customization
Solved How do I merge boot and system partitions
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...
Installation and Upgrade
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 07:28.
Find Us
Twitter Facebook Google+ Ten Forums iOS App Ten Forums Android App



Windows 10 Forums