Knowledge Base Glossary       Exit
(how to) Search  

Browse by Category
Knowledge Base > Archive > Products > IFD/IFL/IFW - Version 1 > Image for DOS/Windows "Partition List" (/L) Command Line Option

Image for DOS/Windows "Partition List" (/L) Command Line Option

Note: For information regarding this option when using version 2 of Image for DOS, Image for Linux, or Image for Windows, please see this article: Explanation of the Image for DOS/Linux/Windows "Partition List" (/L) Command Line Option

Beginning with Image for DOS version 1.89 and Image for Windows version 1.51, a command line option to view the partitions on a selected hard drive is provided. The applicable command line parameter is /L, and its use is explained below.

Image for DOS:
IMAGE /L[F|U|A]h +|-

Image for Windows:
IMAGEW /Lh +|-

Detailed information on use:

  • As shown above, h represents the hard drive number (0 through 9), and is a required parameter.
  • Using + specifies that the amount of free space available within each listed partition should be shown; using - causes available free space to be omitted from the listing.  This parameter is required, and must be preceded by a single space.
  • Use F if the applicable drive is a IEEE 1394 device (Image for DOS only).
  • Use U if the applicable drive is a USB 2 device (Image for DOS only).
  • Use A to specify that Image for DOS should perform direct hard drive access, rather than using the system BIOS (Image for DOS only).
  • To view the output when using the /L parameter with Image for Windows, you must redirect the output to a file for viewing.  For example:
    • IMAGEW /L1 + > C:\info.txt

      (To create or overwrite a file named C:\info.txt.)
    • IMAGEW /L1 + >> C:\info.txt

      (To create or append to a file named C:\info.txt.)
    • CMD /C IMAGEW /L1 + > C:\info.txt

      (The additional CMD /C is necessary when running IMAGEW.EXE with the /L parameter from a shortcut, rather than from a command line or batch file.)
  • Administrator privileges are required when using the /L parameter with Image for Windows.

Examples of use:

IMAGE /LA0 +

The above command line will cause Image for DOS to list the partitions for hard drive 0 (/LA0 +).  The hard drive will be accessed directly, bypassing the system BIOS (/LA0 +).  The free space available in each partition will be shown (/LA0 +).

IMAGE /LF3 +

The above command line will cause Image for DOS to list the partitions for IEEE 1394 hard drive 3 (/LF3 +).  The free space available in each partition will also be shown (/LF3 +).

IMAGE /L2 -

The above command line will cause Image for DOS to list the partitions for hard drive 2 (/LF2 -).  The free space available in each partition will not be shown (/LF2 -).

IMAGEW /L1 + > C:\info.txt

The above command line will cause Image for Windows to list the partitions for hard drive 1 (/L1 + > C:\info.txt).  The free space available in each partition will also be shown (/L1 + > C:\info.txt).  The output will be saved in the file C:\info.txt (/L1 + > C:\info.txt).  Because > was used to direct the output, rather than >>, the contents of C:\info.txt will be overwritten, if it exists when the command is issued.

An example of what output might look like when using the /L parameter follows:

Partition 1       1024MB     513MB Pri (B8)   FAT-32
BootIt EMBRM        8MB       1MB Pri (53)   FAT-16

 

Where:

  • Partition 1 is the name of the first partition
  • 1024MB is the size of Partition 1
  • 513MB is the free space available in Partition 1
  • Pri indicates that Partition 1 is a primary partition
  • B8 is the partition ID for Partition 1
  • FAT-32 is the file system in use by Partition 1
  • BootIt EMBRM is the name of the second partition
  • 8MB is the size of BootIt EMBRM
  • 1MB is the free space available in BootIt EMBRM
  • Pri indicates that BootIt EMBRM is a primary partition
  • 53 is the partition ID for BootIt EMBRM
  • FAT-16 is the file system in use by BootIt EMBRM

How helpful was this article to you?


powered by Lore