About ASR

author: Michael I Boborykin
[miha@mail.dux.ru]
20  1998 . 23:58

Author write that he made ASR as tool for support satellite net,
when after some trials to reset WinNT by phone he understood
that this process must die.

ASR know NOTHING about file system on physical disk, and determination
of start sector and number of sectors for HD partition - is user's problem.

(Author recommend Norton Disk Editor for this aim, but I think that
GRduw-info is more better).

ASR work ONLY UNDER DOS (direct, via BIOS, access to hard disks).


Command line parameters:

1) save, restore, verify

   asr <op> <file> <ndrive> <start sec> <num sec> [-v]

where
 <file> - file's name
 <ndrive> - (physical) disk's count: 0 - floppy A:, 128 - first, 129 - second, etc
 <start sec> - start sector on disk <ndrive> (0-based)
 <num sec> - number of sectors on disk <ndrive>
 -v -  show progress bar
 <op> - command:
  -r  - read <num sec> sectors from disk <ndrive> from <start sec> with record to file
<file>
  -rc - same, but with compress (algorithm PKZIP)
  -w  - write <num sec> sectors to disk <ndrive> from <start sec> information from file
<file>
  -wc - same, but with de-compress information from file
  -v  - verify <num sec> sectors from disk <ndrive> from <start sec> and file <file>
  -vc - same, but with de-compress information from file
  -k  - filling by value 0 <num sec> sectors of disk <ndrive> from <start sec>
  
2) mix

  asr -reboot  - reboot OS (DOS)
  asr /?       - very short reference
  
3) cleaning - filling by value 0 unusing space of logic disk (not only under DOS)

   asr -c <file> [-v]
    
    <file> - file's name on logic disk (for example:   C:\x.tmp)
    -v -  show progress bar
    
=======================================================
Example_1

   asr -r c:\drv_a.cmp 0 0 2880 -v
   
 =>  record image 1.44_floppy to file  c:\drv_a.cmp
=======================================================
Example_2

HD = C+(D+E).

cyl * head * sect/tr  =>  sect
C    164   128    63     1322496
D    164   128    63     1322496
E    291   128    63     2346624
--------------------------------
HD   619   128    63     4991616

 Have system (boot) diskette A:  with  A:\ASR.exe  and  A:\ASR.bat with string X.

X = "ASR -r E:\diskimag 128 0 1322496 -v" => record image C to file E:\diskimag
X = "ASR -w E:\diskimag 128 0 1322496 -v" => restore C from image from file E:\diskimag

Note: Winimage is good viewer for diskimages.
=======================================================
Example_3

It is very easy to save/restore HD-image to/from some
bootable CD-R disks.
=======================================================
