I have been requested (by dvhenry) to provide some examples of using DISKPART to show partition information within Windows. Knowledge of the utility could potentially be useful for those advising Linux newcomers desiring a Windows/openSUSE dualboot who are having difficulties with fdisk -l. The utility is started within the console (which can be obtained within Windows 7 by searching' for
cmd’). Note that the console text can be copied from the menu obtained by right-clicking the title bar -> Edit -> Select All. Then RMB -> Edit -> Copy.
To begin a diskpart session, type diskpart on the console. Then to list the available disk drives type `list disk’:
DISKPART> list disk
Disk ### Status Size Free Dyn Gpt
-------- ------------- ------- ------- --- ---
Disk 0 Online 698 GB 3072 KB
Disk 1 Online 223 GB 12 MB
To select a specific disk drive type `select disk=n’, where n is the Disk number.
DISKPART> select disk=0
Disk 0 is now the selected disk.
To list the partitions of the selected drive, the size, and locations, type `list partitions’:
DISKPART> list partition
Partition ### Type Size Offset
------------- ---------------- ------- -------
Partition 0 Extended 585 GB 101 MB
Partition 4 Logical 31 GB 102 MB
Partition 5 Logical 31 GB 31 GB
Partition 6 Logical 31 GB 62 GB
Partition 7 Logical 492 GB 93 GB
Partition 1 Primary 64 GB 586 GB
Partition 2 Primary 16 GB 650 GB
Partition 3 Primary 32 GB 666 GB
To obtain more information about a specific partition, it must first be selected:
DISKPART> select partition=1
Partition 1 is now the selected partition.
Once, selected, more information can be obtained - how much depends on whether it’s a recognised Windows format:
DISKPART> detail partition
Partition 1
Type : 07
Hidden: No
Active: Yes
Offset in Bytes: 629251506176
Volume ### Ltr Label Fs Type Size Status Info
---------- --- ----------- ----- ---------- ------- --------- --------
* Volume 5 C WIN64 NTFS Partition 64 GB Healthy System
The disk drive selected above (disk 0) is my Windows hard drive. You will now see how the information differs if a partition from my Linux hard drive is selected.
DISKPART> select disk=1
Disk 1 is now the selected disk.
DISKPART> list partition
Partition ### Type Size Offset
------------- ---------------- ------- -------
Partition 1 Primary 1027 MB 1024 KB
Partition 2 Primary 127 GB 1028 MB
Partition 0 Extended 95 GB 128 GB
Partition 3 Logical 64 GB 128 GB
Partition 4 Logical 31 GB 192 GB
DISKPART> select partition=2
Partition 2 is now the selected partition.
DISKPART> detail partition
Partition 2
Type : 83
Hidden: Yes
Active: No
Offset in Bytes: 1077936128
There is no volume associated with this partition.
HTH