UNIXHDCP.COM/UNIXCOPY.COM (how to use) by Erdogan Tan

Assembling:

masm unixhdcp.asm
link /t unixhdcp

= 26/01/2020 ===

Working Directory: RUNIX2
53.1MB Hard Disk Image: HD0.IMG (C=400, H=16, S=17)
Bootfile: BOOT5.BIN (dos), boot (runix)
Kernel: RUNIX2.BIN (dos), unix (runix)

All files must be in working (dos) directory...
(Accept it as RUNIX2, here)

*** 

Create HD0.IMG file by using HDIMAGE.COM
Create Runix (71h) partition by using HDIMAGE.COM
(Follow partition creating menu after selecting disk geometry.) 

sample disk geometry
--------------------
Cylinders: 400
Heads:      16
Sectors:    17

****

Then, format RUNIX (71h) partition by using UNIXHDFS.COM

***

And.. 

Start UNIXHDCP/UNIXCOPY program with HD image by using..
C:\RUNIX2> UNIXHDCP -i HD0.IMG 
				..command
then..

use '?' command for command help. (in UNIXHDCP/UNIXCOPY)

ls -l . ; list root dir contents..

***

At first, copy boot file to root directory..
(its name must be 'boot')

fromdos boot4.bin boot

..then set 'boot' file as startup file (as boot file)

bootfile boot

..then.. copy runix (v2) kernel file as unix (in root directory)

fromdos runix2.bin unix

...

(Other files are copied from dos as above 'fromdos' command samples..)

'chdir' command may be used to change runix working directory..

For example: chdir bin

Other UNIXCOPY commands: dir, ls, todos, rm, mkdir, rmdir, link, exit,
show, inode, chmod, chown, chgrp, namei, fs, volume, nobootfile, help.

...

Finally, this hd image is ready to test, Retro UNIX 386 v2 OS project works.

(You can use Bochs emulator for testing Retro UNIX 386 v2 installation...)

***

NOTE: It is possible to use a real hard disk if a RUNIX v2 (71h) partition
is already created on it. UNIXHDFS.COM can format 71h (RUNIX v2) partition
and UNIXHDCP.COM can be used to copy boot, kernel and program files 
to the RUNIX v2 file system on hard disk.  
