Wmic: Difference between revisions
Jump to navigation
Jump to search
(Created page with "wmic diskdrive list brief will list the physical drives. C:\Users\maarten.LIPPMANN.000>wmic diskdrive list brief Caption DeviceID Model ...") |
No edit summary |
||
(7 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
wmic diskdrive list brief | wmic diskdrive list brief | ||
will list the physical drives. | will list the physical drives from the windows command line. | ||
C:\Users\maarten.LIPPMANN | C:\Users\maarten.LIPPMANN>wmic diskdrive list brief | ||
Caption DeviceID Model Partitions Size | Caption DeviceID Model Partitions Size | ||
TOSHIBA MK1637GSX \\.\PHYSICALDRIVE1 TOSHIBA MK1637GSX 1 160039272960 | TOSHIBA MK1637GSX \\.\PHYSICALDRIVE1 TOSHIBA MK1637GSX 1 160039272960 | ||
TOSHIBA THNSNC128GCSJ \\.\PHYSICALDRIVE0 TOSHIBA THNSNC128GCSJ 4 128035676160 | TOSHIBA THNSNC128GCSJ \\.\PHYSICALDRIVE0 TOSHIBA THNSNC128GCSJ 4 128035676160 | ||
ST2000NM 0011 USB Device \\.\PHYSICALDRIVE2 ST2000NM 0011 USB Device 1 2000396321280 | ST2000NM 0011 USB Device \\.\PHYSICALDRIVE2 ST2000NM 0011 USB Device 1 2000396321280 | ||
You can then use [http://maarten.lippmann.us/?page_id=116 dd] from the [http://sourceforge.net/projects/unxutils/ unix utils] package to write an image to a drive. | |||
I use this to backup or install [http://www.nmedia.net/flashrd/ flashrd] images onto a usb stick or cf card for my [https://soekris.com/ soekris] devices if I don't have easy access to a Linux or BSD system. |
Latest revision as of 16:59, 20 June 2015
wmic diskdrive list brief
will list the physical drives from the windows command line.
C:\Users\maarten.LIPPMANN>wmic diskdrive list brief Caption DeviceID Model Partitions Size TOSHIBA MK1637GSX \\.\PHYSICALDRIVE1 TOSHIBA MK1637GSX 1 160039272960 TOSHIBA THNSNC128GCSJ \\.\PHYSICALDRIVE0 TOSHIBA THNSNC128GCSJ 4 128035676160 ST2000NM 0011 USB Device \\.\PHYSICALDRIVE2 ST2000NM 0011 USB Device 1 2000396321280
You can then use dd from the unix utils package to write an image to a drive.
I use this to backup or install flashrd images onto a usb stick or cf card for my soekris devices if I don't have easy access to a Linux or BSD system.