Windows OS Hub
  • Windows Server
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
    • Windows Server 2012 R2
    • Windows Server 2008 R2
    • SCCM
  • Active Directory
    • Active Directory Domain Services (AD DS)
    • Group Policies
  • Windows Clients
    • Windows 11
    • Windows 10
    • Windows 8
    • Windows 7
    • Windows XP
    • MS Office
    • Outlook
  • Virtualization
    • VMWare
    • Hyper-V
    • KVM
  • PowerShell
  • Exchange
  • Cloud
    • Azure
    • Microsoft 365
    • Office 365
  • Linux
    • CentOS
    • RHEL
    • Ubuntu
  • Home
  • About

Windows OS Hub

  • Windows Server
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
    • Windows Server 2012 R2
    • Windows Server 2008 R2
    • SCCM
  • Active Directory
    • Active Directory Domain Services (AD DS)
    • Group Policies
  • Windows Clients
    • Windows 11
    • Windows 10
    • Windows 8
    • Windows 7
    • Windows XP
    • MS Office
    • Outlook
  • Virtualization
    • VMWare
    • Hyper-V
    • KVM
  • PowerShell
  • Exchange
  • Cloud
    • Azure
    • Microsoft 365
    • Office 365
  • Linux
    • CentOS
    • RHEL
    • Ubuntu

 Windows OS Hub / Windows 10 / Creating Multiple Partitions on a USB Drive in Windows 10

April 19, 2023 Windows 10

Creating Multiple Partitions on a USB Drive in Windows 10

Full multiple partitions support for any USB storage device has appeared in Windows 10 starting with build 1703 (Creators Update). Now, a Windows 10 user can get access to all partitions on a USB flash drive (or SD card), as well as create multiple logical partitions on such a media using the built-in OS tools. Previously, when connecting a USB stick with several partitions (that were created on Linux or using third-party tools) to a computer running Windows, the OS displayed only the first primary partition (all other partitions were ignored). Normal operation with multiple partitions in Windows was available only for the drives identified as fixed (non-removable/local).

We remind that common hard disk drives (and USB HDDs) in Windows are identified as Basic, while USB flash drives and SD cards — as Removable. The operating system detects the disk type by a special RMB (removable media bit) descriptor on the device controller. Previously, we have considered a way to substitute the controller response using a special driver Hitachi Microdrive (Turn a USB Stick Into a Local Hard Disk in Windows).

Windows 10 Creators Update (and newer) automatically displays all partitions available on a USB stick or SD card and ignores the RMB bit. In this case, the USB drive is still identified as a Removable device.

Contents:
  • How to Create Multiple Partitions on a USB Drive in Windows 10?
  • Partition USB Drive in Windows 10 Using DiskPart
  • Create Multiple Partitions on a USB Flash Drive Using PowerShell

How to Create Multiple Partitions on a USB Drive in Windows 10?

Let’s try to create several partitions on a USB stick in Windows 10. Suppose that a primary partition is already created on the USB stick, which occupies the entire volume of the USB media. We will compress it and create the second (and subsequent) partitions:

  1. Connect the USB stick to the computer’s USB port;
  2. Format the USB flash drive in the NTFS file system and then open the Disk Management (diskmgmt.msc) console;
  3. Right-click the partition on the USB stick and select Shrink Volume in the context menu;shrink usb volume in windows 10
  4. Specify the size of free space after shrinking and click Shrink. For example, we want to create two partitions of 7 GB and 8 GB on the 15 GB USB flash device;shrinking volume size
  5. Right-click on the unallocated disk area and select New Simple Volume to create an additional partition;create second partition on a removable drive
  6. Select the drive letter, volume label and file system type (I formatted the second partition in the FAT32 file system).second partiotion on usb flash drive - windows 10 v1703

As you can see, we have got the USB stick with two partitions. The first partition is formatted in NTFS, and the second in FAT32. Both partitions are displayed in Windows and ready to use.

Partition USB Drive in Windows 10 Using DiskPart

You can also create several partitions on a USB flash drive using the DiskPart CLI tool. In this example, we will create two partitions: the first partition with the FAT32 file system, and the second with NTFS (you cannot create the first partition with FAT32 from the GUI of the Disk Management console).

Open an elevated command prompt and run the DiskPart command. In the context of Diskpart, you must run the following commands one by one:

list disk
select <here you must specify the disk number assigned to the USB drive in your system>
clean
create partition primary size=3000
format quick fs=fat32 label="FirstFAT32Partition"
assign letter=J
active
create partition primary
format fs=ntfs quick label="Data(NTFS)"
assign letter=K
list vol
exit

Create Multiple Partitions on a USB Flash Drive Using PowerShell

You can also create several partitions on a USB flash drive using PowerShell cmdlets from the built-in Storage module.

Get the USB disk ID on your computer:

Get-Disk

The following command will remove all data from the USB storage device.

Delete the existing partitions on the USB drive:

Get-Partition –DiskNumber 1 | Remove-Partition

Use the following PowerShell commands to create two logical partitions on a USB flash drive and format them:

New-Partition –DiskNumber 1 -Size 4gb -DriveLetter J
Format-Volume -DriveLetter J -FileSystem NTFS -NewFileSystemLabel USBVol1
New-Partition –DiskNumber 1 –UseMaximumSize -DriveLetter K
Format-Volume -DriveLetter K -FileSystem Fat32 -NewFileSystemLabel USBVol2

powershell: create two partitions on the usb stick using powershell

Keep in mind that USB sticks with multiple partitions will be correctly displayed only on Windows 10 1703 and newer. In earlier versions of Windows, only the first partition will be still displayed.

If when connecting a USB flash drive with several partitions, Windows doesn’t assign them drive letters, check the Virtual Disk service settings according to the article.

Why might you need several partitions on a USB flash drive?

  • If the USB drive needs to be used in different OS with different file systems (for example, in Windows and Linux/Android);
  • As the simplest way to hide data on the USB media;
  • If you use a USB flash drive to boot and install Windows on the UEFI computers. The fact is that the UEFI computer allows you to boot only from a FAT32 drive. But you cannot put a file larger than 4 GB on it (FAT32 file system limitation). As a result, you will have to split the Windows install.wim file into several parts (see the example here), or create a second NTFS partition on the bootable USB device and copy the installation WIM/ESD file there.

2 comments
5
Facebook Twitter Google + Pinterest
previous post
VMWare vSphere: Failed to Upload Files to Datastore
next post
Running PowerShell Script (*.PS1) as a Windows Service

Related Reading

How to Connect VPN Before Windows Logon

November 14, 2023

Using WPAD (Web Proxy Auto-Discovery Protocol) on Windows

November 7, 2023

Zabbix: How to Get Data from PowerShell Scripts

October 27, 2023

Tracking Printer Usage with Windows Event Viewer Logs

October 19, 2023

How to Use Ansible to Manage Windows Machines

September 25, 2023

2 comments

George December 26, 2017 - 4:39 pm

Very helpful article. Well explained and straight to the point.

Reply
Talat September 24, 2019 - 7:58 am

Thank you very much. i have successfully made partition in FAT32 in my USB drive.

Reply

Leave a Comment Cancel Reply

Categories

  • Active Directory
  • Group Policies
  • Exchange Server
  • Microsoft 365
  • Azure
  • Windows 11
  • Windows 10
  • Windows Server 2022
  • Windows Server 2019
  • Windows Server 2016
  • PowerShell
  • VMWare
  • Hyper-V
  • Linux
  • MS Office

Recent Posts

  • How to Connect VPN Before Windows Logon

    November 14, 2023
  • Removing Azure Arc Setup Feature on Windows Server 2022

    November 9, 2023
  • Using WPAD (Web Proxy Auto-Discovery Protocol) on Windows

    November 7, 2023
  • Send Emails with Microsoft Graph API and PowerShell

    November 6, 2023
  • Zabbix: How to Get Data from PowerShell Scripts

    October 27, 2023
  • Tracking Printer Usage with Windows Event Viewer Logs

    October 19, 2023
  • PowerShell: Configure Certificate-Based Authentication for Exchange Online (Azure)

    October 15, 2023
  • Reset Root Password in VMware ESXi

    October 12, 2023
  • How to Query and Change Teams User Presence Status with PowerShell

    October 8, 2023
  • How to Increase Size of Disk Partition in Ubuntu

    October 5, 2023

Follow us

  • Facebook
  • Twitter
  • Telegram
Popular Posts
  • Booting Windows 7 / 10 from GPT Disk on BIOS (non-UEFI) systems
  • Removable USB Flash Drive as Local HDD in Windows 10 / 7
  • How to increase KMS current count (count is insufficient)
  • How to Disable UAC Prompt for Specific Applications in Windows 10?
  • How to Connect L2TP/IPSec VPN Server From Windows
  • Managing Printers and Drivers with PowerShell in Windows 10 / Server 2016
  • Managing Printers from the Command Prompt in Windows 10 / 8.1
Footer Logo

@2014 - 2023 - Windows OS Hub. All about operating systems for sysadmins


Back To Top