Windows 中是否有 fdisk 命令?

New*_*ewb 6 windows linux command-line

在 Linux 中,有一个有用的fdisk命令。

在 Windows 中是否有类似的东西?具体来说,我需要使用(类似)fdisk -l

Hen*_*nes 11

diskpart

[开始运行] diskpart list disk

在此处输入图片说明

此外,还有wmic diskdrive。您可以从命令行使用它,但您可能希望应用一些过滤器以避免最终得到太多信息。

可用性 BytesPerSector Capabilities CapabilityDescriptions Caption CompressionMethod ConfigManagerErrorCode ConfigManagerUserConfig CreationClassName DefaultBlockSize Description DeviceID ErrorCleared ErrorDescription ErrorMethodology FirmwareRevision Index InstallDate InterfaceType LastErrorCode 制造商 MaxBlockSize MaxMediaSize MediaLoaded MediaType MinBlockSize 模型名称 NeedsCleaning NumberOfMediaSupported Power SCSIManageButures SCSIPorts SCSIPorts SCSIPortCapectors SCSIPortable 状态PoweredsCleaning NumberOfMediaSupportedSystemCreationClassName SystemName TotalCylinders TotalHeads TotalSectors TotalTracks TracksPerCylinder  
              512 {3, 4} {"Random Access", "Supports Writing"} LSI 9750-8i DISK SCSI 磁盘设备 0 FALSE Win32_DiskDrive 磁盘驱动器 \\.\PHYSICALDRIVE0 5.08 0 SCSI (标准磁盘驱动器) TRUE 固定硬盘介质 LSI 9750 -8i 磁盘 SCSI 磁盘设备 \\.\PHYSICALDRIVE0 2 SCSI\DISK&VEN_LSI&PROD_9750-8I____DISK\5&15EE98A3&0&000000 0 0 10 0 19 L2080BGN154FA1000272 -576210269 79987195904 OK Win32_ComputerSystem CORE 36707 224 156224992 82224368                
              512 {3, 4} {"Random Access", "Supports Writing"} LSI 9750-8i DISK SCSI 磁盘设备 0 FALSE Win32_DiskDrive 磁盘驱动器 \\.\PHYSICALDRIVE1 5.08 1 SCSI (标准磁盘驱动器) TRUE 固定硬盘介质 LSI 9750 -8i 磁盘 SCSI 磁盘设备 \\.\PHYSICALDRIVE1 2 SCSI\DISK&VEN_LSI&PROD_9750-8I____DISK\5&15EE98A3&0&000100 0 0 10 1 63 WQC05071864F9000A2CB 2999965248000 OK Win32_ComputerSystem CORE 364725 255 5859307125 93004875 255                
              512 {3, 4} {"Random Access", "Supports Writing"} LSI 9750-8i DISK SCSI 磁盘设备 0 FALSE Win32_DiskDrive 磁盘驱动器 \\.\PHYSICALDRIVE2 5.08 2 SCSI (标准磁盘驱动器) TRUE 固定硬盘介质 LSI 9750 -8i 磁盘 SCSI 磁盘设备 \\.\PHYSICALDRIVE2 1 SCSI\DISK&VEN_LSI&PROD_9750-8I____DISK\5&15EE98A3&0&000200 0 0 10 2 63 P6901YFP93CC9C000C66 -900772765 144987010560 OK Win32_ComputerSystem CORE 17627 255 283177755 4425588                
                                                                                   通用闪存 HS-COMBO USB 设备 0 FALSE Win32_DiskDrive 磁盘驱动器 \\.\PHYSICALDRIVE3 4.44 3 USB(标准磁盘驱动器) TRUE 通用闪存 HS-COMBO USB 设备 \\.\PHYSICALDRIVE3 0 USBSTOR\DISK&VEN_GENERIC&PROD_FLASH_HS_8040400404031 0 OK Win32_ComputerSystem CORE