Initial import from FreeBSD RELENG_4:
[dragonfly.git] / usr.bin / doscmd / README.booting_dos
1 /* BSDI README.booting_dos,v 2.2 1996/04/08 19:32:18 bostic Exp*/
2 /* $FreeBSD: src/usr.bin/doscmd/README.booting_dos,v 1.3.2.1 2000/06/29 23:47:28 ps Exp $ */
3
4 To install DOS on a pseudo hard disk under doscmd:
5
6     1)  Create a .doscmdrc with at least the following:
7
8             assign A: /dev/fd0.1440 1440
9             assign A: /dev/fd0.720 720
10             assign hard boot_drive 80 2 2
11
12         You may need to adjust the raw files for the A: drive to match
13         your system.  This example will cause the HD drive to be tried
14         first and the DD drive second.
15
16         Note that you should only use raw devices or files at this point,
17         do not use a cooked device!  (Well, it would probably be okay
18         for a hard disk, but certainly not the floppy)
19
20         boot_drive should be the file name of where you want your bootable
21         image to be.  The three numbers which follow "80 2 2" say that the
22         drive will have 80 cylinders, 2 heads and 2 sectors per track.
23         This is the smallest drive possible which still can have MS DOS
24         5.0 installed on it along with a config.sys and autoexec.bat file.
25
26         You might want to create a larger boot drive.
27
28         The file boot_drive must exist, so use the command touch to create
29         it.
30
31     2)  Insert a floppy disk into the A: drive which is bootable to MS-DOS
32         and has the commands fdisk, format and sys on it.  You should also
33         copy the file redir.com onto the floppy by either mounting it
34         with the msdos file system type or by using mtools.
35
36                 (i.e. mwrite redir.com a:)
37
38     3)  run doscmd.
39
40     4)  At the > prompt type "fdisk"
41
42     5)  Select "Create DOS partition or Logical Drive"
43
44     6)  Select "Create Primary DOS Partition"
45
46     7)  Tell it how big to make it (I say use the whole drive.
47         It is pretty tiny after all.)
48
49     8)  Get out of FDISK by hitting <ESC> a few times.
50
51     9)  doscmd will now abort (will try and fix this in a future version)
52
53     10) start up doscmd again, leaving the floppy in the drive.
54
55     11) At the > prompt, type "format c:" and follow the instructions.
56
57     12) At the > prompt type "sys c:"
58
59     13) Get out of doscmd.
60
61     14) Either remove the floppy from the drive or add the line
62
63             boot C:
64
65         to your .doscmdrc
66
67     15) You should now be running DOS off of your new disk.  You will
68         probably want both config.sys and an autoexec.bat file.  To
69         start with, you can say:
70
71         > copy con: config.sys
72         LASTDRIVE=Z
73         ^Z
74         > copy con: autoexec.bat
75         @echo off
76         redir.com
77         ^Z
78
79         
80     16) Quit doscmd.
81
82     17) You now have a bootable pseudo disk which will automatically call
83         the magic "redir" program, which installs FreeBSD disks.  To use
84         them add lines to your .doscmdrc such as:
85
86             assign D: /usr/dos
87             assign P: -ro /usr/prb
88
89         Note that you will not always be able to access every file due to
90         naming problems.
91
92     18) To use the new EMS memory you need to copy the file emsdriv.sys
93         to your DOS boot disk (disk image) in the same way you copied
94         redir.com. The use it in your "config.sys" from DOS:
95                 device=C:\emsdriv.sys
96         where C: is your boot drive (supply the correct letter, if needed)
97         and emsdriv.sys is the driver. You could load it high. It should
98         report "Doscmd EMS 4.0 driver installed".