How to Create a Bootable USB Flash Drive in Windows Using CMD Last Updated : 21 Jun, 2025 Summarize Comments Improve Suggest changes Share Like Article Like Report Want to install a new Windows operating system using a USB drive and looking for a way to make it bootable? You can do it easily with a built-in tool on your computer—CMD (Command Prompt) without using any third-party software.In this guide, we’ll show you 12 easy steps to create a bootable USB flash drive using CMD. You'll learn how to format the drive, set it up properly, and prepare it to install Windows (or even Linux). Let’s get started!How to Create a Bootable USB Flash driveWhy Use CMD to Create a Bootable USB?CMD is a built-in tool in Windows that provides full control over disk operations. It allows you to format drives, mark partitions as active, and prepare USB devices for booting all without downloading any software.Steps to Create a Bootable Windows USB Using CMDHere are the 12 steps to create a bootable USB flash drive using Command Prompt:Step 1: Open CMD as Administrator Run the Command Prompt in Administrator mode. There are two ways to do the same: Press Start , Search for CMD , right-click on it, and select Run as Administrator. Or, press ctrl + shift + Esc to Open Task Manager, click on File -> Run new task, search for CMD and press enter. Step 2: Connect the USB DriveInsert the USB Device that you want to make bootable.Step 3: Use Diskpart CommandType the command diskpart and then press Enter.Step 4: Use List Disk CommandType the command list disk to display a list of all the available storage devices on your system. Press Enter to continue. Step 5: Select the USB DriveIdentify your USB disk from the list. Usually, it's labeled as Disk 1. Select it using:Note: Generally, it is marked as Disk 1, it might vary from system to system. Make sure not to select any other available disk as it will get formatted.Step 6: Format the USB DriveTo make a pen drive bootable, there is a need to format it to clean the existing data. This can be done by the use of clean commands.Step 7: Create Partition Type the command create partition primary and press Enter. This will make the disk primary and ready to be made bootable. Step 8: Select Partition as Primary To choose the partition created as primary, type the command select partition 1, and press Enter. Step 9: Format as NTFSBefore making the disk bootable, you need to format it as NTFS if you are using legacy BIOS. This can be done with the use of a command format fs=ntfsquick and press Enter. Note: If you are using Unified Extensible Firmware Interface or in simple words UEFI BIOS then you must type in the following command instead. Most modern systems are UEFI systems, you can check your system manufacturer's website to know whether your system is legacy BIOS or UEFI BIOS.format fs=fat32 quickStep 10: Use Active CommandType the command active and press Enter. This will mark the primary bootable partition as Active. Step 11: Use Diskpart to ExitType the command exit to exit DISKPART and press Enter. Now close the command prompt window. Step 12: Copy Data to Bootable Now copy all the data from the OS installation disk to your USB drive that is just been made bootable.ConclusionCreating a bootable USB flash drive using CMD is a reliable and efficient way to install or repair your Windows (or Linux) system. It gives you full control, doesn’t require third-party software, and works across both BIOS and UEFI systems. Follow these steps, and you’ll have a fully functional bootable USB ready to go! Comment More infoAdvertise with us Next Article How to Create a Bootable USB Flash Drive in Windows Using CMD A Abhinav96 Follow Improve Article Tags : Operating Systems linux Command Prompt Windows Hacks Similar Reads Operating System Tutorial An Operating System(OS) is a software that manages and handles hardware and software resources of a computing device. Responsible for managing and controlling all the activities and sharing of computer resources among different running applications.A low-level Software that includes all the basic fu 4 min read Types of Operating Systems Operating Systems can be categorized according to different criteria like whether an operating system is for mobile devices (examples Android and iOS) or desktop (examples Windows and Linux). Here, we are going to classify based on functionalities an operating system provides.8 Main Operating System 11 min read What is an Operating System? An Operating System is a System software that manages all the resources of the computing device. Acts as an interface between the software and different parts of the computer or the computer hardware. Manages the overall resources and operations of the computer. Controls and monitors the execution o 9 min read CPU Scheduling in Operating Systems CPU scheduling is a process used by the operating system to decide which task or process gets to use the CPU at a particular time. This is important because a CPU can only handle one task at a time, but there are usually many tasks that need to be processed. The following are different purposes of a 8 min read Introduction of Deadlock in Operating System A deadlock is a situation where a set of processes is blocked because each process is holding a resource and waiting for another resource acquired by some other process. In this article, we will discuss deadlock, its necessary conditions, etc. in detail.Deadlock is a situation in computing where two 11 min read Page Replacement Algorithms in Operating Systems In an operating system that uses paging for memory management, a page replacement algorithm is needed to decide which page needs to be replaced when a new page comes in. Page replacement becomes necessary when a page fault occurs and no free page frames are in memory. in this article, we will discus 7 min read Paging in Operating System Paging is the process of moving parts of a program, called pages, from secondary storage (like a hard drive) into the main memory (RAM). The main idea behind paging is to break a program into smaller fixed-size blocks called pages.To keep track of where each page is stored in memory, the operating s 8 min read Disk Scheduling Algorithms Disk scheduling algorithms are crucial in managing how data is read from and written to a computer's hard disk. These algorithms help determine the order in which disk read and write requests are processed, significantly impacting the speed and efficiency of data access. Common disk scheduling metho 12 min read Memory Management in Operating System Memory is a hardware component that stores data, instructions and information temporarily or permanently for processing. It consists of an array of bytes or words, each with a unique address. Memory holds both input data and program instructions needed for the CPU to execute tasks.Memory works close 7 min read Banker's Algorithm in Operating System Banker's Algorithm is a resource allocation and deadlock avoidance algorithm used in operating systems. It ensures that a system remains in a safe state by carefully allocating resources to processes while avoiding unsafe states that could lead to deadlocks.The Banker's Algorithm is a smart way for 8 min read Like