{"id":387,"date":"2009-08-10T12:55:00","date_gmt":"2009-08-10T19:55:00","guid":{"rendered":"https:\/\/kb.terabyteunlimited.com\/kb-articles\/explanation-of-the-image-for-dos-linux-windows-partition-list-l-command-line-option\/"},"modified":"2021-09-03T15:16:47","modified_gmt":"2021-09-03T22:16:47","slug":"explanation-of-the-image-for-dos-linux-windows-partition-list-l-command-line-option","status":"publish","type":"lsvr_kba","link":"https:\/\/www.terabyteunlimited.com\/kb\/kb-articles\/explanation-of-the-image-for-dos-linux-windows-partition-list-l-command-line-option\/","title":{"rendered":"Explanation of the Image for DOS\/Linux\/Windows &#8220;Partition List&#8221; (\/L) Command Line Option"},"content":{"rendered":"<p><strong>Introduction<\/strong><\/p>\r\n  <p>Image for DOS, Image for Linux, and Image for Windows each support a command line option to view the partitions on a selected hard drive or in a specified backup image. The applicable command line parameter is <strong>\/L<\/strong> with Image for DOS and Image for Windows, and <strong>--L<\/strong> (or <strong>-L<\/strong>) with Image for Linux.&nbsp; The use of this parameter is explained below.<\/p>\r\n  <p><strong>Usage Notes<\/strong><\/p>\r\n  <ul>\r\n    <li>As with all Image for DOS\/Linux\/Windows command line parameters, none of the parameters and modifiers shown below are case sensitive.&nbsp; (Under Linux, however, the paths and file names <em>are<\/em> case sensitive.)<br \/><br \/><\/li>\r\n    <li>Administrator privileges are required when using the <strong>\/L<\/strong> parameter with Image for Windows.&nbsp; This does not mean that the actual Administrator account must be used; only that the applicable user must be a <em>member<\/em> of the Administrators group.<br \/><\/li>\r\n  <\/ul><strong>Description<\/strong> \r\n  <p><font color=\"#0000ff\">Image for DOS:<\/font><br \/>IMAGE \/L <strong>[<\/strong>\/F:&quot;<strong>[<\/strong><em>a<\/em>@0x<em>b<\/em><strong>|<\/strong>c<strong>]<\/strong>:&#92;path&#92;image.tbi&quot;<strong>|<\/strong>\/D:n<strong>]<\/strong><strong> [<\/strong>\/OPT<strong>[<\/strong>:A<strong>|<\/strong>:F<strong>|<\/strong>:S<strong>|<\/strong>:U<strong>]] [<\/strong>\/FS<strong>] [<\/strong>\/ALL<strong>] [<\/strong>&gt; <strong>[<\/strong>c:<strong>]<\/strong>&#92;path&#92;filename.txt<strong>]<\/strong><\/p>\r\n  <p><font color=\"#0000ff\">Image for Linux:<\/font><br \/>imagel --L <strong>[<\/strong>--F:&quot;<strong>[<\/strong><em>a<\/em>@0x<em>b<\/em><strong>]<\/strong>\/path\/image.tbi&quot;<strong>|<\/strong>--D:<em>n<\/em><strong>] [<\/strong>--OPT<strong>[<\/strong>:G<strong>|<\/strong>:L<strong>]] [<\/strong>--FS<strong>]<\/strong>&nbsp;<strong>[<\/strong>--ALL<strong>]<\/strong> &gt; &quot;\/path\/filename.txt&quot;<\/p>\r\n  <p><font color=\"#0003ff\">Image for Windows:<\/font><br \/><strong>[<\/strong>CMD \/C<strong>]<\/strong> IMAGEW \/L <strong>[<\/strong>\/F:&quot;<strong>[<\/strong><em>a<\/em>@0x<em>b<\/em><strong>|<\/strong>c<strong>]<\/strong>:&#92;path&#92;image.tbi&quot;<strong>|<\/strong>\/D:n<strong>]<\/strong> <strong>[<\/strong>\/OPT<strong>]<\/strong> <strong>[<\/strong>\/FS<strong>]<\/strong> <strong>[<\/strong>\/ALL<strong>]<\/strong> &gt; &quot;<strong>[<\/strong>c:<strong>]<\/strong>&#92;path&#92;filename.txt&quot;<\/p>\r\n  <ul>\r\n    <li><strong>CMD \/C <\/strong>is required when running <strong>IMAGEW.EXE<\/strong> with the <strong>\/L<\/strong> parameter from a shortcut, rather than from a command line or batch file. <strong>Note:<\/strong> The shortcut doesn't require <strong>CMD \/C<\/strong> if you use the <strong>\/stdout<\/strong> option instead of standard redirection. <br \/><br \/><\/li>\r\n    <li>The &quot;<strong>a<\/strong>&quot; in <em><strong>a<\/strong><\/em><strong>@0x<em>b<\/em><\/strong> signifies a hard drive number (0 through 9).&nbsp; The &quot;<strong>0xb<\/strong>&quot; represents a partition ID in hexadecimal notation. Thus, paths and file names may be specified using hard drive\/partition notation (e.g. <font color=\"#008800\"><strong>0@0x01<\/strong><\/font> for partition 01 on hard drive number 0).<br \/><br \/><\/li>\r\n    <li>Alternatively (as denoted by the &quot;<strong>c<\/strong>&quot; in &quot;<em><strong>a<\/strong><\/em><strong>@0x<em>b<\/em><\/strong><strong>|c<\/strong>&quot;), Image for Windows and Image for DOS allow you to specify drive letters. This requires that the applicable drive letter has been assigned.<br \/><br \/><\/li>\r\n    <li>With some Linux shells, quotation marks must be preceded with a backslash (e.g. <font color=\"#008800\"><strong>&#92;&quot;\/path\/filename.txt&#92;&quot;<\/strong><\/font> rather than <font color=\"#008800\"><strong>&quot;\/path\/filename.txt&quot;<\/strong><\/font>).<br \/><strong><br \/><\/strong><\/li>\r\n    <li><strong>\/L<\/strong> (<strong>-L or --L<\/strong> for IFL) instructs the program to generate a partition listing.<br \/><br \/><\/li>\r\n    <li><strong>\/F<\/strong> (<strong>--F<\/strong> for IFL) can be used to list the partition information within the specified image file.<br \/><br \/>\r\n      <ul>\r\n        <li>An image file path\/name must&nbsp;be supplied.<br \/><br \/>\r\n          <ul>\r\n            <li>To point to an image file in a specific folder, supply a path and file name (e.g. <strong><font color=\"#008800\">\/F:c:&#92;path&#92;image.tbi<\/font><\/strong>).<br \/><\/li>\r\n            <li>To point to an image file&nbsp;in the current directory, supply just the file name (e.g. <font color=\"#008800\"><strong>\/F:image.tbi<\/strong><\/font>).<br \/><\/li>\r\n            <li>Quotation marks and long file names may be used where supported by the OS and file system (e.g. <strong><font color=\"#008800\">\/F:&quot;c:&#92;long path&#92;image.tbi&quot;<\/font><\/strong>).<br \/><br \/><\/li>\r\n          <\/ul>\r\n        <\/li>\r\n        <li>Cannot be used with the <strong>\/D<\/strong> (<strong>--D<\/strong> for IFL) parameter.<br \/><br \/><\/li>\r\n        <li>If <strong>\/F<\/strong> and <strong>\/D:<em>n<\/em><\/strong> (<strong>--F<\/strong> and <strong>--D:<em>n<\/em><\/strong> for IFL) are each omitted, the partitions on all detected drives will be listed.<br \/><br \/><\/li>\r\n      <\/ul>\r\n    <\/li>\r\n    <li><strong>\/D:<em>n<\/em><\/strong> (<strong>--D:<em>n<\/em><\/strong> for IFL) can be used to specify the hard drive number (0 through 9) for which the partitions should be listed.<br \/><br \/>\r\n      <ul>\r\n        <li>The <em><strong>n<\/strong><\/em> is required, and specifies the hard drive number for which the partitions should be listed. <\/li>\r\n        <li>Cannot be used with the <strong>\/F<\/strong> (<strong>--F<\/strong> for IFL) parameter. <\/li>\r\n        <li>If <strong>\/D:<em>n<\/em><\/strong> and <strong>\/F<\/strong> (<strong>--D:<em>n<\/em><\/strong> and <strong>--F<\/strong> for IFL) are each omitted, the partitions on all detected drives will be listed.<br \/><br \/><\/li>\r\n      <\/ul>\r\n    <\/li>\r\n    <li><strong>\/OPT<\/strong> (<strong>--OPT<\/strong> for IFL) causes optical drives to be included in the list.<br \/><br \/>\r\n      <ul>\r\n        <li>Image for DOS supports the following modifiers for the <strong>\/OPT<\/strong> parameter:<br \/><br \/>\r\n          <ul>\r\n            <li><strong>\/OPT:A<\/strong> lists detected ATA\/ATAPI optical drives. <\/li>\r\n            <li><strong>\/OPT:F<\/strong> lists detected IEEE 1394 optical drives. <\/li>\r\n            <li><strong>\/OPT:S<\/strong> lists optical drives using ASPI. <\/li>\r\n            <li><strong>\/OPT:U<\/strong> lists detected USB 2 optical drives.<br \/><br \/><\/li>\r\n          <\/ul>\r\n        <\/li>\r\n        <li>Image for Linux supports the following modifiers for the <strong>--OPT<\/strong> parameter:<br \/><br \/>\r\n          <ul>\r\n            <li><strong>--OPT:G<\/strong> lists detected SCSI optical drives. <\/li>\r\n            <li><strong>--OPT:L<\/strong> lists detected &quot;Linux device&quot; optical drives.<br \/><br \/><\/li>\r\n          <\/ul>\r\n        <\/li>\r\n        <li>Image for Windows will list all detected optical drives when <strong>\/OPT<\/strong> is supplied.<br \/><br \/><\/li>\r\n      <\/ul>\r\n    <\/li>\r\n    <li><strong>\/FS<\/strong> (<strong>--FS<\/strong> for IFL) causes free space information to be included in the list.<br \/><br \/><\/li>\r\n    <li><strong>\/ALL<\/strong> (<strong>--ALL<\/strong> for IFL) will create a more detailed report.<br \/><br \/><\/li>\r\n    <li><strong>&gt;&nbsp;c:&#92;path&#92;filename.txt<\/strong> (<strong>&gt; \/path\/filename.txt<\/strong> for IFL) specifies the path\/file name where the list of partitions will be written.<br \/><br \/>\r\n      <ul>\r\n        <li>Required when using Image for Windows with the <strong>\/L<\/strong> parameter. <\/li>\r\n        <li>Optional when using Image for DOS with the <strong>\/L<\/strong> parameter (if omitted, IFD will display the output on screen). <\/li>\r\n        <li>May be required using Image for Linux with the <strong>\/L<\/strong> parameter, depending on the shell\/terminal being used (some may not show output on screen). <\/li>\r\n        <li>To create this file in a specific folder, supply a path and file name (e.g. <strong><font color=\"#008800\">&gt;&nbsp;c:&#92;path&#92;filename.txt<\/font><\/strong>). <\/li>\r\n        <li>To create this file in the current directory, supply just the file name (e.g. <strong><font color=\"#008800\">&gt; filename.txt<\/font><\/strong>). <\/li>\r\n        <li>Quotation marks and long file names may be used when supported by the file system (e.g. <strong><font color=\"#008800\">&gt; &quot;c:&#92;long path&#92;filename.txt&quot;<\/font><\/strong>). <\/li>\r\n        <li>Use one <strong>&gt;<\/strong> to create <em>or overwrite<\/em> the output file (e.g. <strong><font color=\"#008800\">&gt; filename.txt<\/font><\/strong>). <\/li>\r\n        <li>Use two <strong>&gt;<\/strong> to create <em>or append to<\/em> the output file (e.g. <strong><font color=\"#008800\">&gt;&gt; filename.txt<\/font><\/strong>). <\/li>\r\n        <li><strong>Note:<\/strong> If the standard redirection (as in the above examples) doesn't work, you can specify the <strong>\/stdout<\/strong> option instead. <br \/>For example: <font color=\"#008800\"><strong>IMAGE \/L \/D:0 \/ALL \/STDOUT:d:&#92;partinfo.txt<\/strong><\/font> <\/li>\r\n      <\/ul>\r\n    <\/li>\r\n  <\/ul>\r\n  <p><strong>Usage Examples<\/strong><\/p>\r\n  <p dir=\"ltr\"><strong>IMAGE \/L \/F:1@0xDF:&#92;path&#92;backup.tbi<\/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 partition information stored within the image file named <strong>backup.tbi<\/strong>, which resides in the folder <strong>&#92;path<\/strong> on the partition with ID <strong>DF<\/strong> on hard drive number <strong>1<\/strong> (<strong>1@0xDF<\/strong>). Output will be displayed on screen.<br \/><\/p>\r\n  <\/blockquote>\r\n  <p dir=\"ltr\"><strong>IMAGE \/L \/D:1 \/OPT:S \/FS &gt; E:&#92;backups&#92;partinfo.txt<\/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 number 1 (<strong>\/D:1<\/strong>) and for any detected ASPI optical drives (<strong>\/OPT:S<\/strong>). The free space available in each partition will also be shown (<strong>\/FS<\/strong>). Output will not be shown on screen, but will instead be written to the file <strong>partinfo.txt<\/strong>, which will be created or overwritten (<strong>&gt;<\/strong>) in the <strong>&#92;backups<\/strong> folder on the <strong>E:<\/strong> partition.<br \/><\/p>\r\n  <\/blockquote>\r\n  <p dir=\"ltr\"><strong>CMD \/C &quot;C:&#92;Program Files&#92;TeraByte Unlimited&#92;Image for Windows&#92;V2&#92;imagew.exe&quot; \/D:0 &gt;&gt; &quot;&#92;&#92;192.168.1.2&#92;C$&#92;Backups&#92;D-Partinfo.txt&quot;<br \/><\/strong><\/p>\r\n  <blockquote style=\"MARGIN-RIGHT: 0px\" dir=\"ltr\">\r\n    <p>The above command line is configured to run from a shortcut only (due to the use of <strong>CMD \/C<\/strong>) and will cause Image for Windows to list the partitions for hard drive number 0 (<strong>\/D:0<\/strong>). Output will be written to the file <strong>D-Partinfo.txt<\/strong>, which will be created or appended to (<strong>&gt;&gt;<\/strong>) in the <strong>&#92;Backups<\/strong> folder on the mapped C: drive (<strong>C$<\/strong>) of the system with the LAN IP address <strong>192.168.1.2<\/strong>.&nbsp; Please note that this command line requires that the system denoted by 192.168.1.2 is accessible and that it does not have administrative shares disabled in any way.<br \/><\/p>\r\n  <\/blockquote>\r\n  <p dir=\"ltr\"><strong>imagel --L --D:2 &gt; \/media\/backups\/images\/partinfo<br \/><\/strong><\/p>\r\n  <blockquote style=\"MARGIN-RIGHT: 0px\" dir=\"ltr\">\r\n    <p>The above command line will cause Image for Linux to list the partitions for hard drive number 2 (<strong>--D:2<\/strong>). Output will be written to the file <strong>partinfo<\/strong>, which will be created or overwritten (<strong>&gt;<\/strong>) in the <strong>\/images<\/strong> folder on the partition mounted at <strong>\/media\/backups<\/strong>.<br \/><\/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 color=\"#008800\" face=\"Courier New\"><strong>HD0&nbsp; (0x80) (FD2C4742)<br \/><br \/>Dr &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Name &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Size &nbsp;&nbsp;&nbsp;&nbsp;Typ &nbsp;&nbsp;ID &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;File System<br \/>-- ---------------- ----------- --- ------ ------------------<br \/>&nbsp;&nbsp;&nbsp;System Reserved &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;100MiB Pri (01) &nbsp;&nbsp;HPFS\/NTFS<br \/>C: Win7 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;38810MiB Pri (02) &nbsp;&nbsp;HPFS\/NTFS<br \/>&nbsp;&nbsp;&nbsp;<\/strong><\/font><font color=\"#008800\" face=\"Courier New\"><strong>BootIt EMBRM&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; 5MB Pri (80)&nbsp;&nbsp;&nbsp;BootIt EMBRM<\/strong><\/font><\/p>\r\n  <p>Where:<\/p>\r\n  <ul>\r\n    <li><strong>System Reserved<\/strong> is the name of the first partition <\/li>\r\n    <li>The partition size is <strong>100MiB<\/strong> <\/li>\r\n    <li><strong>Pri<\/strong> indicates that <strong>System Reserved<\/strong> is a primary partition <\/li>\r\n    <li><strong>01<\/strong> is the partition ID <\/li>\r\n    <li><strong>NTFS<\/strong> is the file system used on the partition<strong><br \/><\/strong><br \/><\/li>\r\n    <li><strong>Win7<\/strong> is the name of the second partition <\/li>\r\n    <li>The partition size is <strong>38810MiB<\/strong> <\/li>\r\n    <li><strong>Pri<\/strong> indicates that <strong>Win7<\/strong> is a primary partition <\/li>\r\n    <li><strong>02<\/strong> is the partition ID <\/li>\r\n    <li><strong>NTFS<\/strong> is the file system used on the partition<strong><br \/><\/strong><br \/><\/li>\r\n    <li><strong>BootIt EMBRM<\/strong>&nbsp;is the name of the&nbsp;third partition <\/li>\r\n    <li>The partition size is <strong>5MiB<\/strong> <\/li>\r\n    <li><strong>Pri<\/strong> indicates that <strong>BootIt EMBRM<\/strong> is a primary partition <\/li>\r\n    <li><strong>80<\/strong> is the partition ID <\/li>\r\n    <li><strong>BootIt EMBRM <\/strong>is the file system used on the partition <\/li>\r\n  <\/ul>","protected":false},"excerpt":{"rendered":"<p>Introduction Image for DOS, Image for Linux, and Image for Windows each support a command line option to view the partitions on a selected hard drive or in a specified backup image. The applicable command line parameter is \/L with Image for DOS and Image for Windows, and &#8211;L (or -L) with Image for Linux.&nbsp; [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"lsvr_kba_cat":[1805],"lsvr_kba_tag":[],"class_list":["post-387","lsvr_kba","type-lsvr_kba","status-publish","hentry","lsvr_kba_cat-shared-issues"],"_links":{"self":[{"href":"https:\/\/www.terabyteunlimited.com\/kb\/wp-json\/wp\/v2\/lsvr_kba\/387","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=387"}],"version-history":[{"count":0,"href":"https:\/\/www.terabyteunlimited.com\/kb\/wp-json\/wp\/v2\/lsvr_kba\/387\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.terabyteunlimited.com\/kb\/wp-json\/wp\/v2\/media?parent=387"}],"wp:term":[{"taxonomy":"lsvr_kba_cat","embeddable":true,"href":"https:\/\/www.terabyteunlimited.com\/kb\/wp-json\/wp\/v2\/lsvr_kba_cat?post=387"},{"taxonomy":"lsvr_kba_tag","embeddable":true,"href":"https:\/\/www.terabyteunlimited.com\/kb\/wp-json\/wp\/v2\/lsvr_kba_tag?post=387"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}