{"id":240,"date":"2005-03-20T19:44:00","date_gmt":"2005-03-21T03:44:00","guid":{"rendered":"https:\/\/kb.terabyteunlimited.com\/kb-articles\/image-for-dos-windows-partition-list-l-command-line-option\/"},"modified":"2021-09-06T23:09:39","modified_gmt":"2021-09-07T06:09:39","slug":"image-for-dos-windows-partition-list-l-command-line-option","status":"publish","type":"lsvr_kba","link":"https:\/\/www.terabyteunlimited.com\/kb\/kb-articles\/image-for-dos-windows-partition-list-l-command-line-option\/","title":{"rendered":"Image for DOS\/Windows &#8220;Partition List&#8221; (\/L) Command Line Option"},"content":{"rendered":"<p><strong><font color=\"#ff0000\">Note:<\/font><\/strong> For information regarding this option when using version 2 of Image for DOS, Image for Linux, or Image for Windows, please see this article: <a href=\"https:\/\/www.terabyteunlimited.com\/kb\/?p=387\" target=\"_blank\" rel=\"noopener\">Explanation of the Image for DOS\/Linux\/Windows &quot;Partition List&quot; (\/L) Command Line Option<\/a><\/p>\r\n  <p>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 <strong>\/L<\/strong>, and its use is explained below.<\/p>\r\n  <p><font color=\"#0000ff\">Image for DOS:<\/font><br \/><strong>IMAGE \/L<\/strong>[F|U|A]<strong>h +<\/strong>|<strong>-<\/strong><\/p>\r\n  <p><font color=\"#0000ff\">Image for Windows:<\/font><br \/><strong>IMAGEW \/L<\/strong><strong>h +<\/strong>|<strong>-<\/strong><\/p>\r\n  <p>Detailed information on use:<\/p>\r\n  <ul>\r\n    <li>As shown above, <strong>h<\/strong> represents the hard drive number (0 through 9), and is a required parameter.<br \/><\/li>\r\n    <li>Using <strong>+<\/strong>&nbsp;specifies that the amount of free space available within each listed partition should be shown;&nbsp;using&nbsp;<strong>-<\/strong> causes available free space to be omitted from the listing.&nbsp; This parameter is required, and&nbsp;must be&nbsp;preceded by a single space.<br \/><\/li>\r\n    <li>Use <strong>F<\/strong> if the applicable drive is a IEEE 1394 device <strong>(Image for DOS only)<\/strong>.<br \/><\/li>\r\n    <li>Use <strong>U<\/strong> if the applicable drive is a&nbsp;USB 2&nbsp;device <strong>(Image for DOS only)<\/strong>.<br \/><\/li>\r\n    <li>Use <strong>A<\/strong> to specify that Image for DOS should perform direct hard drive access, rather than using the system BIOS <strong>(Image for DOS only)<\/strong>.<br \/><\/li>\r\n    <li>To view the output when using the <strong>\/L<\/strong> parameter with Image for Windows, you must redirect the output to a file for viewing.&nbsp; For example:<br \/>\r\n      <ul>\r\n        <li><strong>IMAGEW \/L1 + &gt; C:&#92;info.txt<\/strong><br \/><br \/>(To create or overwrite&nbsp;a file named C:&#92;info.txt.)<br \/><\/li>\r\n        <li><strong>IMAGEW \/L1 + &gt;&gt; C:&#92;info.txt<\/strong><br \/><br \/>(To create or append to a file named C:&#92;info.txt.)<br \/><\/li>\r\n        <li><strong>CMD \/C IMAGEW \/L1 + &gt; C:&#92;info.txt<\/strong><br \/><br \/>(The additional <strong>CMD \/C<\/strong> is necessary&nbsp;when running IMAGEW.EXE with the \/L parameter from a shortcut, rather than from a command line or batch file.)<br \/><\/li>\r\n      <\/ul>\r\n    <\/li>\r\n    <li>Administrator privileges are required when using the <strong>\/L<\/strong> parameter with Image for Windows.<\/li>\r\n  <\/ul>\r\n  <p>Examples of use:<\/p>\r\n  <p dir=\"ltr\"><strong>IMAGE \/LA0 +<\/strong><\/p>\r\n  <blockquote style=\"MARGIN-RIGHT: 0px\" dir=\"ltr\">\r\n    <p>The above command line will cause Image for DOS to list the partitions for hard drive&nbsp;0 (\/LA<strong><font color=\"#ff0000\">0<\/font><\/strong> +).&nbsp; The hard drive will be accessed directly, bypassing the system BIOS (\/L<strong><font color=\"#ff0000\">A<\/font><\/strong>0 +).&nbsp; The free space available in each partition will be shown (\/LA0 <strong><font color=\"#ff0000\">+<\/font><\/strong>).<\/p>\r\n  <\/blockquote>\r\n  <p dir=\"ltr\"><strong>IMAGE \/LF3 +<\/strong><\/p>\r\n  <blockquote style=\"MARGIN-RIGHT: 0px\" dir=\"ltr\">\r\n    <p>The above command line will cause Image for DOS to list the partitions for IEEE 1394 hard drive 3 (\/L<strong><font color=\"#ff0000\">F<\/font><font color=\"#ff0000\">3<\/font><\/strong> +).&nbsp; The free space available in each partition will also be shown (\/LF3 <strong><font color=\"#ff0000\">+<\/font><\/strong>).<\/p>\r\n  <\/blockquote>\r\n  <p dir=\"ltr\"><strong>IMAGE \/L2 -<\/strong><\/p>\r\n  <blockquote style=\"MARGIN-RIGHT: 0px\" dir=\"ltr\">\r\n    <p>The above command line will cause Image for DOS to list the partitions for hard drive 2 (\/LF<strong><font color=\"#ff0000\">2<\/font><\/strong> -).&nbsp; The free space available in each partition will not be shown (\/LF2 <strong><font color=\"#ff0000\">-<\/font><\/strong>).<\/p>\r\n  <\/blockquote>\r\n  <p dir=\"ltr\"><strong>IMAGEW \/L1 + &gt; C:&#92;info.txt<br \/><\/strong><\/p>\r\n  <blockquote style=\"MARGIN-RIGHT: 0px\" dir=\"ltr\">\r\n    <p>The above command line will cause Image for&nbsp;Windows to list the partitions for hard drive 1 (\/L<strong><font color=\"#ff0000\">1<\/font><\/strong> + &gt; C:&#92;info.txt).&nbsp; The free space available in each partition will also be shown (\/L1 <strong><font color=\"#ff0000\">+<\/font><\/strong>&nbsp;&gt; C:&#92;info.txt).&nbsp; The output will be saved in the file <strong>C:&#92;info.txt<\/strong> (\/L1 + &gt; <strong><font color=\"#ff0000\">C:&#92;info.txt<\/font><\/strong>).&nbsp; Because <strong>&gt;<\/strong> was used to direct the output, rather than <strong>&gt;&gt;<\/strong>, the contents of <strong>C:&#92;info.txt<\/strong> will be overwritten, if it exists when the command is issued.<\/p>\r\n  <\/blockquote>\r\n  <p>An example of what output might look like when using the <strong>\/L<\/strong> parameter follows:<\/p>\r\n  <p><font face=\"Courier New\"><strong>Partition 1&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 1024MB&nbsp;&nbsp;&nbsp;&nbsp; 513MB Pri (B8)&nbsp;&nbsp; FAT-32<br \/>BootIt EMBRM&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; 8MB&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1MB Pri (53)&nbsp;&nbsp; FAT-16<\/strong><\/font> <\/p>\r\n  <p>&nbsp;<\/p>\r\n  <p>Where:<\/p>\r\n  <ul>\r\n    <li><strong>Partition 1<\/strong> is the name of the first partition <\/li>\r\n    <li><strong>1024MB<\/strong> is the size of <strong>Partition 1<\/strong> <\/li>\r\n    <li><strong>513MB<\/strong> is the free space available in <strong>Partition 1<\/strong> <\/li>\r\n    <li><strong>Pri<\/strong> indicates that <strong>Partition 1<\/strong> is a primary partition <\/li>\r\n    <li><strong>B8<\/strong> is the partition ID for <strong>Partition 1<\/strong> <\/li>\r\n    <li><strong>FAT-32<\/strong> is the file system in use by <strong>Partition 1<\/strong><br \/><\/li>\r\n    <li><strong>BootIt EMBRM<\/strong>&nbsp;is the name of the&nbsp;second partition <\/li>\r\n    <li><strong>8MB<\/strong> is the size of <strong>BootIt EMBRM<\/strong> <\/li>\r\n    <li><strong>1MB<\/strong> is the free space available in <strong>BootIt EMBRM<\/strong> <\/li>\r\n    <li><strong>Pri<\/strong> indicates that <strong>BootIt EMBRM<\/strong> is a primary partition <\/li>\r\n    <li><strong>53<\/strong> is the partition ID for <strong>BootIt EMBRM<\/strong> <\/li>\r\n    <li><strong>FAT-16<\/strong> is the file system in use by <strong>BootIt EMBRM<\/strong><\/li>\r\n  <\/ul>","protected":false},"excerpt":{"rendered":"<p>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 &quot;Partition List&quot; (\/L) Command Line Option Beginning with Image for DOS version 1.89 and Image for Windows version 1.51, a command line option to [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"lsvr_kba_cat":[1818],"lsvr_kba_tag":[2118],"class_list":["post-240","lsvr_kba","type-lsvr_kba","status-publish","hentry","lsvr_kba_cat-ifd-ifl-ifw-version-1-archive","lsvr_kba_tag-archived"],"_links":{"self":[{"href":"https:\/\/www.terabyteunlimited.com\/kb\/wp-json\/wp\/v2\/lsvr_kba\/240","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.terabyteunlimited.com\/kb\/wp-json\/wp\/v2\/lsvr_kba"}],"about":[{"href":"https:\/\/www.terabyteunlimited.com\/kb\/wp-json\/wp\/v2\/types\/lsvr_kba"}],"author":[{"embeddable":true,"href":"https:\/\/www.terabyteunlimited.com\/kb\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.terabyteunlimited.com\/kb\/wp-json\/wp\/v2\/comments?post=240"}],"version-history":[{"count":1,"href":"https:\/\/www.terabyteunlimited.com\/kb\/wp-json\/wp\/v2\/lsvr_kba\/240\/revisions"}],"predecessor-version":[{"id":5988,"href":"https:\/\/www.terabyteunlimited.com\/kb\/wp-json\/wp\/v2\/lsvr_kba\/240\/revisions\/5988"}],"wp:attachment":[{"href":"https:\/\/www.terabyteunlimited.com\/kb\/wp-json\/wp\/v2\/media?parent=240"}],"wp:term":[{"taxonomy":"lsvr_kba_cat","embeddable":true,"href":"https:\/\/www.terabyteunlimited.com\/kb\/wp-json\/wp\/v2\/lsvr_kba_cat?post=240"},{"taxonomy":"lsvr_kba_tag","embeddable":true,"href":"https:\/\/www.terabyteunlimited.com\/kb\/wp-json\/wp\/v2\/lsvr_kba_tag?post=240"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}