Walkthrough 1 - Part 1 (DiskPart)

Use Microsoft DiskPart to prepare the external drive. A quick note on DiskPart -

The following is a walkthrough of the steps required for creating a bootable external USB disk using DiskPart. The actions include wiping the disk before creating and formatting four new partitions - as this could potentially result in data loss, ensure that the correct disk is selected. DiskPart works by targeting an object (either a disk, volume or partition) - making it have "focus".

Proposed disk/partition structure -

Partition Size (GiB) Usage
1 1 Boot files and WinPE
2 40 64-bit Windows To Go
3 30 32-bit Windows To Go
4 - Data

Recommendation - Remove all external disks except the one you plan to use - this should make disk selection easier.

 list disk  - use this command to list all available disks.

 select disk #  - select the disk from the list using the syntax select disk # (e.g. select disk 1). Size or other attributes should help to identify it.

 detail disk  - use this command to check that you have selected the correct disk. You can see from the output below that the disk Type: is USB, indicating that it's an external disk connected via the USB interface (the internal disk is likely to be Type: SATA).

 clean  - run this command when you are confident that you have selected the correct disk. This command will write zeros to a small part of the disk, removing the partition table. Alternatively, run the command clean all to write zeros to the whole disk - securely erasing all data. Be aware that running the clean all command can take hours depending on the size of the disk and USB speed.

 convert mbr  - ensure that the disk type is MBR (Master Boot Record). Windows will boot from an MBR type disk on UEFI systems as long as there is a partition with EFI boot files. Filesystem support varies between systems and manufacturers. A FAT32 partition should be supported on all systems in order to meet the UEFI specifications.

 create partition primary size=1024  - create a partition with a size of 1024 MiB / 1 GiB (this should be large enough for the boot files and WinPE - adjust size and label as required).

 active  - mark the partition as active / bootable. This is not required if booting on UEFI firmware, but is required if booting on BIOS systems and UEFI in compatibility mode (CSM).

 format fs=fat32 label=SSD1 quick  - format using the FAT32 filesystem. This should make the disk compatible on systems with UEFI or BIOS firmware. Edit the label as required.

 assign letter=r  - mount the partition as drive/volume R:\.

 create partition primary size=40960  - create a partition with a size of 40960 MiB / 40 GiB - this partition will be used for the 64-bit Windows To Go operating system.

 format fs=ntfs label=SSD2 quick  - format using the NTFS filesystem. Edit the label as required.

 assign letter=s  - mount the partition as drive/volume S:\.

 create partition primary size=30720  - create a partition with a size of 30720 MiB / 30 GiB - this partition will be used for the 32-bit Windows To Go operating system.

 format fs=ntfs label=SSD3 quick  - format using the NTFS filesystem. Edit the label as required.

 assign letter=t  - mount the partition as drive/volume T:\.

 create partition primary  - create another partition. As the size is not specified, it will span the rest of the disk.

 format fs=ntfs label=SSD4 quick  - format using the NTFS filesystem. Edit the label as required.

 assign letter=u  - mount the partition as drive/volume U:\.

 list partition .


Diskpart can be scripted. The following is a script file to automate the commands listed above (replace "select disk #" with the correct disk number) -

Save as D:\walkthrough1.txt and then run the following command from an elevated command prompt (run as Administrator). Adjust path and filename as required -

Document date - 6th July 2022