SAMdisk — list

The list command displays a list of hard disks and other block devices.

Note: that this command requires Administrator access, and must be run from an elevated command prompt under Windows Vista/7/8. On Mac and Linux you’ll need to use sudo.

List Drives

To show a list of local hard disks and other block storage devices:

SAMdisk list

Sample output:

0:
 Name:      ST380021A
 Capacity:  80026361856 bytes = 156301488 sectors = 80GB
1:
 Name:      Generic-Compact Flash
 Capacity:  524869632 bytes = 1025136 sectors = 525MB
 Format:    Atom Lite, 641 records, bootable

Add -v to display more detail on each item, or use the info command for a single item.

List Records

To list the named BDOS records on Atom and Atom Lite drives (drive 1 in this example):

SAMdisk list 1:

Sample output:

Atom Lite, 641 records:

    1 : System
   10 : Comet v18
   11 : encdrv26
   40 : SAM Paint
   50 : Lemmings! 1-1
   51 : Lemmings! 1-2

List Record

To show the files in a single BDOS record (drive 1, record 1 in this example):

SAMdisk list 1:1

Sample output:

Record 1: System

  1* Mini-FAT16  256  SPECIAL
  2  AL-BDOS15a   21  CODE  32777,10701         22/07/2012 00:59
  3  AL-LOGO      49  SCREEN$ [mode 4]          22/07/2012 00:59

 3 files, 77 free slots,  163K used, 617K free

This is also equivalent to using the dir command on a single record.