Skip to content

Commit f31abd1

Browse files
chcurlet-msftCopilotlearn-build-service-prod-10[bot]learn-build-service-prod-07[bot]robinharwood
authored
Add ReFS boot volume unattend deployment article (#8084)
* Add ReFS boot volume unattend deployment article Adds a how-to under Storage > ReFS for deploying Windows Server with a ReFS boot volume via Setup unattend, including manual creation of a 2 GB NTFS WinRE partition (required because ReFS does not support volume shrink). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * Use 'an ReFS' (pronounced R-E-F-S) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * Apply suggestion from @learn-build-service-prod-10[bot] Co-authored-by: learn-build-service-prod-10[bot] <274431553+learn-build-service-prod-10[bot]@users.noreply.github.com> * Apply suggestion from @learn-build-service-prod-10[bot] Co-authored-by: learn-build-service-prod-10[bot] <274431553+learn-build-service-prod-10[bot]@users.noreply.github.com> * Apply suggestion from @learn-build-service-prod-10[bot] Co-authored-by: learn-build-service-prod-10[bot] <274431553+learn-build-service-prod-10[bot]@users.noreply.github.com> * Apply suggestion from @learn-build-service-prod-07[bot] Co-authored-by: learn-build-service-prod-07[bot] <274430390+learn-build-service-prod-07[bot]@users.noreply.github.com> * Apply suggestion from @learn-build-service-prod-07[bot] Co-authored-by: learn-build-service-prod-07[bot] <274430390+learn-build-service-prod-07[bot]@users.noreply.github.com> * Apply suggestion from @learn-build-service-prod-10[bot] Co-authored-by: learn-build-service-prod-10[bot] <274431553+learn-build-service-prod-10[bot]@users.noreply.github.com> * Apply suggestion from @learn-build-service-prod-10[bot] Co-authored-by: learn-build-service-prod-10[bot] <274431553+learn-build-service-prod-10[bot]@users.noreply.github.com> * Apply suggestion from @learn-build-service-prod-10[bot] Co-authored-by: learn-build-service-prod-10[bot] <274431553+learn-build-service-prod-10[bot]@users.noreply.github.com> * Apply suggestion from @learn-build-service-prod-10[bot] Co-authored-by: learn-build-service-prod-10[bot] <274431553+learn-build-service-prod-10[bot]@users.noreply.github.com> * Apply suggestion from @learn-build-service-prod-10[bot] Co-authored-by: learn-build-service-prod-10[bot] <274431553+learn-build-service-prod-10[bot]@users.noreply.github.com> * Apply suggestion from @learn-build-service-prod-10[bot] Co-authored-by: learn-build-service-prod-10[bot] <274431553+learn-build-service-prod-10[bot]@users.noreply.github.com> * Apply suggestion from @learn-build-service-prod-10[bot] Co-authored-by: learn-build-service-prod-10[bot] <274431553+learn-build-service-prod-10[bot]@users.noreply.github.com> * Apply suggestion from @learn-build-service-prod-10[bot] Co-authored-by: learn-build-service-prod-10[bot] <274431553+learn-build-service-prod-10[bot]@users.noreply.github.com> * Apply suggestion from @learn-build-service-prod-10[bot] Co-authored-by: learn-build-service-prod-10[bot] <274431553+learn-build-service-prod-10[bot]@users.noreply.github.com> * Update title to lead with 'Deploy Windows Server' Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * Revert title to 'Deploy an ReFS boot volume on Windows Server using Setup unattend' Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * Update title to 'Deploy Windows Server on an ReFS boot volume using Setup unattend' Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * Set ms.subservice to 'storage' to match docfx fileMetadata Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * Update TOC entry to match new article title Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * Editorial updates * Update EFI system partition sizing to documented UEFI/GPT minimums Set the ESP to 200 MB on 512/512e disks and 300 MB on 4Kn disks, replacing the previous 100 MB value in the partition layout table, unattend.xml, and DiskPart script. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * Clarify that the 120 GB OS partition is an example, not a requirement Add a note and inline comments explaining the OS partition is an example size. To fill the disk, subtract the ESP, MSR, and recovery partition sizes and avoid leaving trailing unallocated space after the recovery partition. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * Add temporary drive-letter steps when registering WinRE on a hidden recovery partition When the disk is laid out via unattend.xml, the recovery partition is hidden with no drive letter. Add DiskPart steps to temporarily assign a letter before copying winre.wim and remove it afterward so the partition stays hidden. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * Remove push-button reset reference Push-button reset isn't relevant to this scenario; remove it from the list of WinRE features. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * Reposition article for Windows Server Insider Preview ReFS boot volume support is a preview feature; update version references (title, description, intro, prerequisites, and REFS format note) from Windows Server 2025 to Windows Server Insider Preview. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * Clarify RecoveryDrive placeholder is substituted without a colon The example commands already include the colon (<RecoveryDrive>:\\...), so substituting R: would produce an invalid R::\\... path. Change the example to R and note the letter is used without a colon. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * Remove quotes from DiskPart assign letter commands The DiskPart assign letter= syntax doesn't use quotes around the drive letter; quotes can cause a syntax error. Update the pre-partition script to use unquoted drive letters. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * Apply suggestion from @learn-build-service-prod-01[bot] Co-authored-by: learn-build-service-prod-01[bot] <274427437+learn-build-service-prod-01[bot]@users.noreply.github.com> * Apply suggestion from @learn-build-service-prod-01[bot] Co-authored-by: learn-build-service-prod-01[bot] <274427437+learn-build-service-prod-01[bot]@users.noreply.github.com> * Apply suggestion from @learn-build-service-prod-03[bot] Co-authored-by: learn-build-service-prod-03[bot] <274428581+learn-build-service-prod-03[bot]@users.noreply.github.com> * Apply suggestion from @learn-build-service-prod-01[bot] Co-authored-by: learn-build-service-prod-01[bot] <274427437+learn-build-service-prod-01[bot]@users.noreply.github.com> * Apply suggestion from @learn-build-service-prod-01[bot] Co-authored-by: learn-build-service-prod-01[bot] <274427437+learn-build-service-prod-01[bot]@users.noreply.github.com> * Apply suggestion from @learn-build-service-prod-01[bot] Co-authored-by: learn-build-service-prod-01[bot] <274427437+learn-build-service-prod-01[bot]@users.noreply.github.com> * Clarify recovery partition drive-letter hiding in the unattend example The unattend ModifyPartition schema doesn't support GptAttributes, so the recovery partition can't set NO_DRIVE_LETTER the way the DiskPart flow does. Note that the recovery TypeID keeps Windows from assigning a drive letter, and explain how to apply the matching GPT attributes post-install with DiskPart for parity. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * Add preview labeling, build prereq, and editorial cleanup to ReFS boot article * Apply suggestion from @learn-build-service-prod-06[bot] Co-authored-by: learn-build-service-prod-06[bot] <274430002+learn-build-service-prod-06[bot]@users.noreply.github.com> --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: learn-build-service-prod-10[bot] <274431553+learn-build-service-prod-10[bot]@users.noreply.github.com> Co-authored-by: learn-build-service-prod-07[bot] <274430390+learn-build-service-prod-07[bot]@users.noreply.github.com> Co-authored-by: robinharwood <19212983+robinharwood@users.noreply.github.com> Co-authored-by: learn-build-service-prod-01[bot] <274427437+learn-build-service-prod-01[bot]@users.noreply.github.com> Co-authored-by: learn-build-service-prod-03[bot] <274428581+learn-build-service-prod-03[bot]@users.noreply.github.com> Co-authored-by: learn-build-service-prod-06[bot] <274430002+learn-build-service-prod-06[bot]@users.noreply.github.com>
1 parent 9dca2f8 commit f31abd1

2 files changed

Lines changed: 317 additions & 0 deletions

File tree

Lines changed: 315 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,315 @@
1+
---
2+
title: ReFS Boot Volume Setup for Windows Server (preview)
3+
description: Deploy Windows Server Insider Preview on a ReFS boot volume by using a Setup unattend answer file, and learn how to pre-create the required NTFS WinRE partition.
4+
author: robinharwood
5+
ai-usage: ai-assisted
6+
ms.author: roharwoo
7+
ms.topic: how-to
8+
ms.date: 07/03/2026
9+
ms.reviewer: chcurlet
10+
#customer intent: As a Windows Server administrator, I want to install Windows Server with a ReFS boot volume by using an unattend answer file so that I can deploy a unified ReFS-based storage host with a working recovery environment.
11+
---
12+
13+
# Deploy Windows Server on a ReFS boot volume by using Setup unattend (preview)
14+
15+
> [!IMPORTANT]
16+
> ReFS boot is currently in PREVIEW.
17+
> This information relates to a prerelease product that may be substantially modified before it's released. Microsoft makes no warranties, expressed or implied, with respect to the information provided here.
18+
19+
In Windows Server Insider Preview, you can use Resilient File System (ReFS) as the boot volume so that a single file system spans both the operating system and your data volumes. This setup is useful on dedicated storage hosts that already rely on ReFS features such as block cloning and integrity streams. For background on the file system itself, see [Resilient File System (ReFS) overview](refs-overview.md).
20+
21+
ReFS doesn't support volume shrink, so Windows Setup can't create the Windows Recovery Environment (WinRE) partition automatically when you format the OS volume as ReFS. Your unattend answer file must create the WinRE partition explicitly and format it as NTFS.
22+
23+
This article shows you how to author a Windows Setup answer file (unattend.xml) that installs Windows Server Insider Preview onto a ReFS boot volume on a Unified Extensible Firmware Interface (UEFI) and GUID Partition Table (GPT) disk, and how to pre-create the NTFS WinRE partition so the recovery environment works.
24+
25+
## Prerequisites
26+
27+
Before you begin, make sure you have the following items:
28+
29+
- Windows Server Insider Preview build 29531 or later. ReFS boot is available in Insider Preview builds from February 11, 2026 (minimum build 29531.1000.260206-1841). If you're not enrolled, see [Get started with Windows Server Insider Preview](https://insider.windows.com/for-business-getting-started-server).
30+
- A target server with Unified Extensible Firmware Interface (UEFI) firmware and a GUID Partition Table (GPT)-partitioned system disk. ReFS boot requires UEFI and isn't available for legacy BIOS or Generation 1 virtual machines.
31+
- Windows Server Insider Preview installation media (ISO or USB).
32+
- A bootable [Windows PE](/windows-hardware/manufacture/desktop/winpe-intro) or Windows Setup environment. To build WinPE media, see [Create bootable WinPE media](/windows-hardware/manufacture/desktop/winpe-create-usb-bootable-drive).
33+
- A valid `unattend.xml` answer file. To author one, use [Windows System Image Manager (Windows SIM)](/windows-hardware/customize/desktop/wsim/windows-system-image-manager-technical-reference).
34+
- Familiarity with [Configure UEFI/GPT-Based Hard Drive Partitions](/windows-hardware/manufacture/desktop/configure-uefigpt-based-hard-drive-partitions).
35+
36+
## When to use ReFS for the boot volume
37+
38+
ReFS provides data integrity, scale, and resiliency. Boot Windows Server from ReFS when you want a single file system across the boot volume and data volumes. For example, dedicated storage hosts already rely on ReFS features such as block cloning and integrity streams for their workloads, so extending ReFS to the boot volume keeps the entire host on one file system.
39+
40+
Use NTFS for the boot volume when you need features that ReFS doesn't support on the OS volume. Examples include file-level compression and features that depend on volume shrink.
41+
42+
Validate third-party tooling before broad deployment. Antivirus, backup, and disk-management agents might assume the OS volume is NTFS and fail or behave unexpectedly on a ReFS boot volume.
43+
44+
## Plan the partition layout
45+
46+
For a ReFS boot volume on UEFI and GPT, use the following partition layout. The WinRE (Recovery) partition must be **NTFS** even when the OS volume is ReFS. WinRE itself doesn't run from a ReFS volume.
47+
48+
| Order | Partition | File system | Recommended size |
49+
|-------|-----------|-------------|------------------|
50+
| 1 | EFI System Partition (ESP) | FAT32 | 200 MB (512/512e disks) or 300 MB (4Kn disks) |
51+
| 2 | Microsoft Reserved (MSR) | (none) | 16 MB |
52+
| 3 | Windows (OS) | **ReFS** | Remaining capacity, minus the recovery partition |
53+
| 4 | Windows Recovery (WinRE) | **NTFS** | 2 GB |
54+
55+
Place the recovery partition immediately after the Windows partition. This placement makes it easier to apply future WinRE updates that need a larger partition. For details, see [Windows Recovery Environment (WinRE) - Hard drive partitions](/windows-hardware/manufacture/desktop/windows-recovery-environment--windows-re--technical-reference#hard-drive-partitions).
56+
57+
Size each partition correctly up front. ReFS doesn't support volume shrink, so you can't recover space from the OS partition after install to grow the recovery partition.
58+
59+
## Create the disk layout
60+
61+
Windows Setup creates the WinRE partition automatically only on NTFS boot volumes, where it shrinks the OS volume on first boot. ReFS doesn't support volume shrink, so on a ReFS boot volume you must lay out all four partitions yourself, including the NTFS WinRE partition.
62+
63+
If you don't create an explicit WinRE partition, Setup installs the OS successfully on ReFS, but WinRE features (automatic repair and BitLocker recovery boot) don't work.
64+
65+
Create the layout in one of two ways. Use the unattend approach (recommended) so Setup performs every step from one answer file. Use the DiskPart approach if you already stage Windows PE on your build hosts and prefer to run Setup by using a minimal answer file.
66+
67+
## Author the unattend.xml answer file for a ReFS boot volume
68+
69+
To create an `unattend.xml` answer file that targets a ReFS boot volume, add the following elements to the [`Microsoft-Windows-Setup`](/windows-hardware/customize/desktop/unattend/microsoft-windows-setup) component in the `windowsPE` configuration pass:
70+
71+
1. Add a [`DiskConfiguration`](/windows-hardware/customize/desktop/unattend/microsoft-windows-setup-diskconfiguration) > [`Disk`](/windows-hardware/customize/desktop/unattend/microsoft-windows-setup-diskconfiguration-disk) element that targets disk 0 and sets `WillWipeDisk` to `true`.
72+
73+
1. Under [`CreatePartitions`](/windows-hardware/customize/desktop/unattend/microsoft-windows-setup-diskconfiguration-disk-createpartitions), define the EFI, MSR, OS, and recovery partitions in the order shown in [Plan the partition layout](#plan-the-partition-layout).
74+
75+
1. Under [`ModifyPartitions`](/windows-hardware/customize/desktop/unattend/microsoft-windows-setup-diskconfiguration-disk-modifypartitions), format the OS partition by setting `Format` to `REFS`.
76+
77+
1. In the `ModifyPartition` element for the recovery partition, set `Format` to `NTFS` and set the `TypeID` attribute to `DE94BBA4-06D1-4D40-A16A-BFD50179D6AC` to mark it as a Windows Recovery Tools partition.
78+
79+
1. Under [`ImageInstall`](/windows-hardware/customize/desktop/unattend/microsoft-windows-setup-imageinstall) > [`OSImage`](/windows-hardware/customize/desktop/unattend/microsoft-windows-setup-imageinstall-osimage) > [`InstallTo`](/windows-hardware/customize/desktop/unattend/microsoft-windows-setup-imageinstall-osimage-installto), point Setup at the ReFS OS partition (`DiskID 0`, `PartitionID 3`).
80+
81+
The following example installs Windows Server to a ReFS partition on disk 0 and creates an NTFS recovery partition for WinRE. Expand the section to view the full answer file.
82+
83+
The 120-GB OS partition size in the following examples is an example configuration, not a requirement. In a typical deployment, size the OS partition to use the remaining disk capacity minus the recovery partition. Adjust the value to suit your hardware.
84+
85+
<details>
86+
<summary>Example unattend.xml for UEFI and GPT, ReFS boot, and NTFS WinRE</summary>
87+
88+
```xml
89+
<?xml version="1.0" encoding="utf-8"?>
90+
<unattend xmlns="urn:schemas-microsoft-com:unattend">
91+
<settings pass="windowsPE">
92+
<component name="Microsoft-Windows-Setup"
93+
processorArchitecture="amd64"
94+
publicKeyToken="31bf3856ad364e35"
95+
language="neutral"
96+
versionScope="nonSxS"
97+
xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State">
98+
99+
<DiskConfiguration>
100+
<Disk wcm:action="add">
101+
<DiskID>0</DiskID>
102+
<WillWipeDisk>true</WillWipeDisk>
103+
104+
<CreatePartitions>
105+
<!-- 1. EFI System Partition. Use 200 MB on 512/512e disks; use 300 MB on 4Kn disks. -->
106+
<CreatePartition wcm:action="add">
107+
<Order>1</Order>
108+
<Type>EFI</Type>
109+
<Size>200</Size>
110+
</CreatePartition>
111+
112+
<!-- 2. Microsoft Reserved Partition -->
113+
<CreatePartition wcm:action="add">
114+
<Order>2</Order>
115+
<Type>MSR</Type>
116+
<Size>16</Size>
117+
</CreatePartition>
118+
119+
<!-- 3. Windows (OS) partition -->
120+
<CreatePartition wcm:action="add">
121+
<Order>3</Order>
122+
<Type>Primary</Type>
123+
<!-- Example size only, not a requirement. To fill the disk, set this to (total disk size in MB) - 200 (ESP) - 16 (MSR) - 2048 (recovery). Don't leave trailing unallocated space after the recovery partition. -->
124+
<Size>120000</Size>
125+
</CreatePartition>
126+
127+
<!-- 4. Windows Recovery (WinRE) partition - 2 GB -->
128+
<CreatePartition wcm:action="add">
129+
<Order>4</Order>
130+
<Type>Primary</Type>
131+
<Size>2048</Size>
132+
</CreatePartition>
133+
</CreatePartitions>
134+
135+
<ModifyPartitions>
136+
<ModifyPartition wcm:action="add">
137+
<Order>1</Order>
138+
<PartitionID>1</PartitionID>
139+
<Label>System</Label>
140+
<Format>FAT32</Format>
141+
</ModifyPartition>
142+
143+
<ModifyPartition wcm:action="add">
144+
<Order>2</Order>
145+
<PartitionID>2</PartitionID>
146+
</ModifyPartition>
147+
148+
<!-- OS partition formatted as ReFS -->
149+
<ModifyPartition wcm:action="add">
150+
<Order>3</Order>
151+
<PartitionID>3</PartitionID>
152+
<Label>Windows</Label>
153+
<Letter>C</Letter>
154+
<Format>REFS</Format>
155+
</ModifyPartition>
156+
157+
<!-- Recovery partition: NTFS, marked as Windows Recovery Tools. No <Letter> is set, and the recovery TypeID keeps Windows from assigning a drive letter. -->
158+
<ModifyPartition wcm:action="add">
159+
<Order>4</Order>
160+
<PartitionID>4</PartitionID>
161+
<Label>Recovery</Label>
162+
<Format>NTFS</Format>
163+
<TypeID>DE94BBA4-06D1-4D40-A16A-BFD50179D6AC</TypeID>
164+
</ModifyPartition>
165+
</ModifyPartitions>
166+
</Disk>
167+
168+
<WillShowUI>OnError</WillShowUI>
169+
</DiskConfiguration>
170+
171+
<ImageInstall>
172+
<OSImage>
173+
<InstallTo>
174+
<DiskID>0</DiskID>
175+
<PartitionID>3</PartitionID>
176+
</InstallTo>
177+
<InstallToAvailablePartition>false</InstallToAvailablePartition>
178+
</OSImage>
179+
</ImageInstall>
180+
181+
</component>
182+
</settings>
183+
</unattend>
184+
```
185+
186+
</details>
187+
188+
> [!IMPORTANT]
189+
> The `Format` element of `ModifyPartition` accepts `REFS` as a value only in Windows Server Insider Preview builds that include ReFS boot. On other builds, Setup fails the answer-file pass with an invalid format error.
190+
191+
The unattend `ModifyPartition` schema doesn't set GPT attributes directly. The example doesn't assign a drive letter to the recovery partition and relies on the recovery `TypeID` (`DE94BBA4-06D1-4D40-A16A-BFD50179D6AC`) to mark it as a Windows Recovery Tools partition, which Windows doesn't assign a drive letter. To match the DiskPart flow exactly and also set `GPT_BASIC_DATA_ATTRIBUTE_NO_DRIVE_LETTER` and `GPT_ATTRIBUTE_PLATFORM_REQUIRED`, apply `gpt attributes=0x8000000000000001` to the recovery partition after installation by using DiskPart.
192+
193+
## Prepartition the ReFS disk by using DiskPart
194+
195+
Instead of using the unattend `DiskConfiguration` section, you can lay out the disk yourself in Windows PE by using a DiskPart script. Use the answer file only for the install step. This approach produces the same layout as the unattend example in [Author the unattend.xml answer file for a ReFS boot volume](#author-the-unattendxml-answer-file-for-a-refs-boot-volume).
196+
197+
To prepartition the disk by using DiskPart, create a script with the following commands and run it from Windows PE before starting Setup. Adjust partition sizes as needed.
198+
199+
> [!WARNING]
200+
> The following script runs `clean` against `disk 0`, which permanently deletes all partitions and data on that disk. Before you run it, confirm the target disk number by using `list disk` in DiskPart and update `select disk 0` if your boot disk has a different number.
201+
202+
1. Save the following script as `X:\layout.txt` in your Windows PE image. The `set id` command marks the partition with `PARTITION_MSFT_RECOVERY_GUID` so Windows recognizes it as a recovery partition. The `gpt attributes` command combines `GPT_BASIC_DATA_ATTRIBUTE_NO_DRIVE_LETTER` and `GPT_ATTRIBUTE_PLATFORM_REQUIRED`, which hides the drive letter and prevents accidental modification.
203+
204+
```diskpart
205+
rem === ReFS boot layout for UEFI and GPT ===
206+
select disk 0
207+
clean
208+
convert gpt
209+
210+
rem 1. EFI System Partition (use size=200 on 512/512e disks; use size=300 on 4Kn disks)
211+
create partition efi size=200
212+
format quick fs=fat32 label="System"
213+
assign letter=S
214+
215+
rem 2. Microsoft Reserved
216+
create partition msr size=16
217+
218+
rem 3. Windows (OS) partition - ReFS (size=120000 is an example only, not a requirement; to fill the disk use (total disk size in MB) - 200 (ESP) - 16 (MSR) - 2048 (recovery), leaving no trailing unallocated space)
219+
create partition primary size=120000
220+
format quick fs=refs label="Windows"
221+
assign letter=C
222+
223+
rem 4. Windows Recovery (WinRE) partition - NTFS, 2 GB, marked as recovery
224+
create partition primary size=2048
225+
format quick fs=ntfs label="Recovery"
226+
assign letter=R
227+
set id="DE94BBA4-06D1-4D40-A16A-BFD50179D6AC"
228+
gpt attributes=0x8000000000000001
229+
230+
list partition
231+
exit
232+
```
233+
234+
1. Copy `layout.txt` onto your Windows PE media (for example, to the root of the USB drive so it's available as `X:\layout.txt` in WinPE), and then boot the target server from that media into Windows PE. For details on creating WinPE media, see [WinPE intro](/windows-hardware/manufacture/desktop/winpe-intro) and [Copype command-line options](/windows-hardware/manufacture/desktop/copype-command-line-options).
235+
236+
1. From the Windows PE command prompt, run DiskPart against the script:
237+
238+
```cmd
239+
diskpart /s X:\layout.txt
240+
```
241+
242+
1. Run Setup against the ReFS OS partition:
243+
244+
```cmd
245+
setup.exe /unattend:X:\unattend.xml
246+
```
247+
248+
`X:\unattend.xml` is an answer file that contains only the `ImageInstall` section of the example in [Author the unattend.xml answer file for a ReFS boot volume](#author-the-unattendxml-answer-file-for-a-refs-boot-volume). Omit `DiskConfiguration` because you already partitioned the disk.
249+
250+
## Register WinRE on the recovery partition
251+
252+
After Setup completes and Windows boots, register the WinRE image so the recovery tools target the dedicated recovery partition.
253+
254+
1. Sign in to the new Windows Server installation as an administrator and open an elevated command prompt.
255+
256+
1. Confirm the current WinRE state:
257+
258+
```cmd
259+
reagentc /info
260+
```
261+
262+
1. If you laid out the disk with the unattend.xml or DiskPart examples in this article, the recovery partition is hidden and has no drive letter. Temporarily assign one with DiskPart so you can copy files to it. Adjust `disk` and `partition` numbers to match your layout:
263+
264+
```diskpart
265+
select disk 0
266+
select partition 4
267+
assign letter=R
268+
exit
269+
```
270+
271+
1. If WinRE is disabled or points to the wrong location, copy `winre.wim` to the recovery partition and re-register it. Substitute the temporary drive letter you assigned (for example, `R`) for `<RecoveryDrive>`. Use the drive letter only, without a colon, because the commands already include the colon:
272+
273+
```cmd
274+
mkdir <RecoveryDrive>:\Recovery\WindowsRE
275+
xcopy /h C:\Windows\System32\Recovery\Winre.wim <RecoveryDrive>:\Recovery\WindowsRE\
276+
reagentc /setreimage /path <RecoveryDrive>:\Recovery\WindowsRE /target C:\Windows
277+
reagentc /enable
278+
reagentc /info
279+
```
280+
281+
1. Remove the temporary drive letter so the recovery partition stays hidden. Use the same `disk` and `partition` numbers as before:
282+
283+
```diskpart
284+
select disk 0
285+
select partition 4
286+
remove letter=R
287+
exit
288+
```
289+
290+
1. Verify that `Windows RE status` is `Enabled` and that the location matches the recovery partition.
291+
292+
For more information, see [Deploy Windows RE](/windows-hardware/manufacture/desktop/deploy-windows-re).
293+
294+
## Verify the ReFS boot volume
295+
296+
After the server reboots into Windows for the first time, confirm the boot volume is ReFS by using the [Get-Volume](/powershell/module/storage/get-volume) cmdlet in PowerShell:
297+
298+
```powershell
299+
Get-Volume -DriveLetter C | Format-List DriveLetter, FileSystemType, Size, SizeRemaining
300+
```
301+
302+
The `FileSystemType` value should be `ReFS`. Alternatively, check from the command line:
303+
304+
```cmd
305+
fsutil fsinfo volumeinfo C:
306+
```
307+
308+
Confirm that the output includes the line `File System Name : ReFS`.
309+
310+
## Related content
311+
312+
- [Resilient File System (ReFS) overview](refs-overview.md)
313+
- [Windows Setup automation overview](/windows-hardware/manufacture/desktop/windows-setup-automation-overview)
314+
- [Configure UEFI/GPT-based hard drive partitions](/windows-hardware/manufacture/desktop/configure-uefigpt-based-hard-drive-partitions)
315+
- [Deploy Windows RE](/windows-hardware/manufacture/desktop/deploy-windows-re)

WindowsServerDocs/storage/toc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,8 @@ items:
249249
href: refs/block-cloning.md
250250
- name: Integrity streams
251251
href: refs/integrity-streams.md
252+
- name: Deploy Windows Server on a ReFS boot volume by using Setup unattend
253+
href: refs/refs-boot-windows-server-unattend.md
252254
- name: ReFSUtil
253255
href: ../administration/windows-commands/refsutil.md
254256
- name: Storage Migration Service

0 commit comments

Comments
 (0)