FDISK command in Windows
The Windows fdisk command allows users to manage hard drive partitions effectively. With fdisk, users can create, delete, and format partitions on their hard drives. By using the various options and parameters available with the fdisk command, users can optimize their hard drive space and allocate it as needed. This powerful tool is essential for system administrators and advanced users who need to manage disk partitions efficiently.
FDISK Syntax:
Section titled “FDISK Syntax:”fdisk [options] [parameters]Windows FDISK Options:
Section titled “Windows FDISK Options:”| Option | Description |
|---|---|
| /status | Display partition information |
| /list | Display a list of disk drives |
| /mbr | Create or repair the MBR (Master Boot Record) on disk |
| /info | Display disk partition information |
FDISK Parameters:
Section titled “FDISK Parameters:”| Parameter | Description |
|---|---|
| drive | Specifies the drive letter or number of the disk |
| /disk: number | Selects the disk number to work with |
| /add | Add a new partition to the disk |
| /delete | Delete a partition from the disk |
| /setid | Set the partition ID for a partition |
List all available disk drives
Section titled “List all available disk drives”fdisk -lDisplays a list of all available disk drives on the system.
Create a new DOS partition table
Section titled “Create a new DOS partition table”fdisk /mbrCreates a new DOS partition table on the master boot record.
Delete a partition
Section titled “Delete a partition”fdisk /del 1Deletes the partition with the number 1 on the disk.
Set the active partition
Section titled “Set the active partition”fdisk /activate 2Sets the second partition as the active partition.
Display partition information
Section titled “Display partition information”fdisk /infoDisplays detailed information about the disk partitions.
Change the partition ID
Section titled “Change the partition ID”fdisk /id 1 07Changes the partition ID of partition 1 to 07.
Create a new primary partition
Section titled “Create a new primary partition”fdisk /newPrompts to create a new primary partition on the disk.
Set the partition size
Section titled “Set the partition size”fdisk /size 1 100MSets the size of partition 1 to 100 megabytes.
How do I use fdisk in Windows?
Section titled “How do I use fdisk in Windows?”To use the fdisk command in Windows, execute the following command:
fdisk --option <value>How can I list all available disk partitions using fdisk in CMD?
Section titled “How can I list all available disk partitions using fdisk in CMD?”To list all available disk partitions using fdisk in CMD, use the following command:
fdisk -lHow do I create a new partition with fdisk in Windows?
Section titled “How do I create a new partition with fdisk in Windows?”To create a new partition with fdisk in Windows, follow these steps:
fdisk /create partition primaryHow can I format a partition using fdisk in CMD?
Section titled “How can I format a partition using fdisk in CMD?”To format a partition using fdisk in CMD, use the following command:
fdisk /format fs=ntfs quickHow do I delete a partition with fdisk in Windows?
Section titled “How do I delete a partition with fdisk in Windows?”To delete a partition with fdisk in Windows, use the following command:
fdisk /delete partitionHow can I change the active partition using fdisk in CMD?
Section titled “How can I change the active partition using fdisk in CMD?”To change the active partition using fdisk in CMD, execute the following command:
fdisk /set activeHow do I check the current disk status with fdisk in Windows?
Section titled “How do I check the current disk status with fdisk in Windows?”To check the current disk status with fdisk in Windows, use the command:
fdisk /statusHow can I resize a partition using fdisk in CMD?
Section titled “How can I resize a partition using fdisk in CMD?”To resize a partition using fdisk in CMD, execute the following command:
fdisk /resizeHow do I display detailed disk information with fdisk in Windows?
Section titled “How do I display detailed disk information with fdisk in Windows?”To display detailed disk information with fdisk in Windows, use the command:
fdisk /detailApplications of the FDISK Command
Section titled “Applications of the FDISK Command”- Creating a new partition
- Deleting a partition
- Displaying partition information
- Changing partition sizes
- Setting the active partition
- Checking disk integrity
- Managing disk partitions