Windows OS Hub
  • Windows Server
    • Windows Server 2016
    • Windows Server 2012 R2
    • Windows Server 2012
    • Windows Server 2008 R2
    • SCCM
  • Active Directory
    • Group Policies
  • Windows Clients
    • Windows 10
    • Windows 8
    • Windows 7
    • MS Office
    • Outlook
  • Virtualization
    • VMWare
    • Hyper-V
  • PowerShell
  • Exchange
  • Home
  • About

Windows OS Hub

  • Windows Server
    • Windows Server 2016
    • Windows Server 2012 R2
    • Windows Server 2012
    • Windows Server 2008 R2
    • SCCM
  • Active Directory
    • Group Policies
  • Windows Clients
    • Windows 10
    • Windows 8
    • Windows 7
    • MS Office
    • Outlook
  • Virtualization
    • VMWare
    • Hyper-V
  • PowerShell
  • Exchange

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

November 26, 2019 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 Sign a PowerShell Script (PS1) with...

February 25, 2021

How to Shadow (Remote Control) a User’s RDP...

February 22, 2021

Configuring PowerShell Script Execution Policy

February 18, 2021

Configuring Proxy Settings on Windows Using Group Policy...

February 17, 2021

Updating Group Policy Settings on Windows Domain Computers

February 16, 2021

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
  • Windows 10
  • Windows 8
  • Windows 7
  • Windows Server 2016
  • Windows Server 2012 R2
  • Windows Server 2008 R2
  • PowerShell
  • VMWare
  • MS Office

Recent Posts

  • Accessing USB Flash Drive from VMWare ESXi

    February 26, 2021
  • How to Sign a PowerShell Script (PS1) with a Code Signing Certificate?

    February 25, 2021
  • Change the Default Port Number (TCP/1433) for a MS SQL Server Instance

    February 24, 2021
  • How to Shadow (Remote Control) a User’s RDP session on RDS Windows Server 2016/2019?

    February 22, 2021
  • Configuring PowerShell Script Execution Policy

    February 18, 2021
  • Configuring Proxy Settings on Windows Using Group Policy Preferences

    February 17, 2021
  • Updating Group Policy Settings on Windows Domain Computers

    February 16, 2021
  • Managing Administrative Shares (Admin$, IPC$, C$, D$) in Windows 10

    February 11, 2021
  • Packet Monitor (PktMon) – Built-in Packet Sniffer in Windows 10

    February 10, 2021
  • Fixing “Winload.efi is Missing or Contains Errors” in Windows 10

    February 5, 2021

Follow us

woshub.com
  • Facebook
  • Twitter
  • RSS
Popular Posts
  • How to Allow Multiple RDP Sessions in Windows 10?
  • How to Repair EFI/GPT Bootloader on Windows 10?
  • How to Restore Deleted EFI System Partition in Windows 10?
  • Network Computers are not Showing Up in Windows 10
  • Booting Windows 7 / 10 from GPT Disk on BIOS (non-UEFI) systems
  • How to Run Program without Admin Privileges and to Bypass UAC Prompt?
  • Removable USB Flash Drive as Local HDD in Windows 10 / 7
Footer Logo

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


Back To Top