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