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


  1. Posts : 19
    Windows 10
       #1

    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 Computer


  2. Posts : 2,799
    Linux Mint 20.1 Win10Prox64
       #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:
    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 Computer


  3. Posts : 7,904
    Windows 11 Pro 64 bit
       #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 Computers


  4. Posts : 19
    Windows 10
    Thread Starter
       #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 Computer


  5. Posts : 19
    Windows 10
    Thread Starter
       #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 Computer


  6. Posts : 7,904
    Windows 11 Pro 64 bit
       #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 Computers


  7. Posts : 2,799
    Linux Mint 20.1 Win10Prox64
       #7

    The folder structure of the Recovery Partition is ahown below:
    How to edit the files in the boot / system partitions?-.png

    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 Computer


  8. Posts : 19
    Windows 10
    Thread Starter
       #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 Computer


  9. Posts : 19
    Windows 10
    Thread Starter
       #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.

    Thanks!
      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 01:20.
Find Us




Windows 10 Forums