If the PC supports PXE boot does anybody know if you can install DOS over
PXE or how hard it is to setup a PXE server? What are my options for doing
this I guess is my question.
>Is there any way to install DOS on a modern PC or laptop with no floppy
>drive? I can burn CDs if necessary but I can't figure out if it's possible
>to get 5 installation disks on one CD to be recognized during an install or
>if a CD install for DOS is even possible. Any suggestions?
I take it you are trying to install DOS from a set of distribution disks? ...
I haven't done that since about the first time I installed DOS.
You can burn a bootable CD which will emulate a floppy boot, and you
can install DOS from that .. the trick with using distribution diskettes which
want you to change disks is that you can't physically do that. Depending
on the installed, you might be able to install from directories on a CD.
But.. all you need to install DOS is a boot disk with FDISK & FORMAT,
and some way to get the various utilities you use onto the system.
If you have DOS running somewhere else, this is dead easy ... just boot
the system, do FORMAT/S on a floppy to create a bootable disk. Add
the CD-ROM driver and MSCDEX (and appropriate CONFIG.SYS and
AUTOEXEC.BAT files to load them), I'd also make sure FDISK, FORMAT,
XCOPY, a text editor and an UNZIP are on the floppy, although these
could be on the CD if you like (once you boot the floppy, you will be
able to access anything on the CD).
The burn a CD with that boot floppy image, and the rest of the CD filled
with the stuff you want to be able to install - probably at least a DOS
directory with the DOS utilities, and perhaps a BIN or CMDS directory
with all the small 3rd party utilities you like. You can also put directories
with larger packages if you wish. It may be easier for you to put ZIPs
on the CD and just unzip them to the hard drive.
Then, just boot the CD, which will get you to an A:\> DOS prompt ... then
use FDISK to create a DOS partition, and FORMAT/S to format it and
make it bootable. Copy over your CD driver, CONFIG.SYS and
AUTOEXEC.BAT files, and tweak them as you wish for your hard drive
install (add HIMEM, EMM386 if you wish, RAMDRIVE if you wish etc.)
Use XCOPY to copy over the \DOS and whatever other directories you
wish from the CD (or UNZIP if you saved them as ZIPS).
And thats it - you are basically up and running. Remove the CD and
reboot and you should get up on a hard-drive based system. If you
messed up CONFIG.SYS or AUTOEXEC.BAT bad enough that it
won't boot, just boot the CD and go fix it.
Another option is to put the hard drive into a system with a floppy,
then install your distribution floppies to it, and move the drive back.
basic DOS doesn't really care about many details of the system
it's running on (it's requirements are very modest that most any PC
can meet and it doesn't check), so you can move HDs with DOS
on them around pretty easily.
In either case, you will want to make sure that you include software
in the new system to let you easily transfer more files to/from it - see
my recent posting for some ideas.
Dave
--
dave09@ Low-cost firmware development tools: www.dunfield.com
dunfield. Classic computer collection: www.classiccmp.org/dunfield
com
Yes, a modern PC will boot any bootable media that it can locate: floppy,
harddisk, USB stick, USB harddrive, CD-ROM, etc. It's called BBS: BIOS Boot
Spec. The BIOS will emulate a floppy or harddisk if a bootable floppy or
harddisk image is found on a USB device. One DOS boots, you can access the
remainder of your files via some other device, even if they aren't on the
boot device. CD-ROMs and non-bootable USB devices will need DOS device
drivers.
One method is a bootable harddisk which was formated, partitioned, and had
DOS installed, when it was in another computer. I.e., you setup DOS on one
computer harddisk and pull the drive and use it in the new machine.
Another method is a bootable CD-ROM.
To see the BBS boot menu, you may need to enable the normal boot sequence in
BIOS. I.e., not fast, not quick, etc. This displays the POST, memory
check, auto-detected devices, etc followed by another status screen showing
DMA, IRQ's, ACPI, etc. Once that's enabled, you should be able to press a
key, like F11, to pull up the BBS boot menu during the *first* screen.
Then, you can select the drive to boot from. Alternately, you can set the
BIOS to just boot that device. So, all you need do is copy an image of a
DOS boot disk to a USB stick, and you should be able to boot it. Sometimes
requires special software. From there, you'll need to FDISK, FORMAT, and
SYS your harddisk. If the boot image has MSCDEX and your CD-ROM drivers,
you can copy them over, setup the correct lines in CONFIG.SYS and
AUTOEXEC.BAT and you'll have access to a CD-ROM, e.g., will the rest of DOS
on it.
> I can burn CDs if necessary but I can't figure out if it's possible
> to get 5 installation disks on one CD to be recognized during an install
or
> if a CD install for DOS is even possible. Any suggestions?
>
You should only need a few files on a bootable DOS image to boot DOS.
msdos.sys
io.sys
command.com
; these three are installed by SYS command
sys.com
format.com
fdisk.exe
mscdex.exe
attrib.exe
-and maybe a CD-ROM driver ...
config.sys
autoexec.bat
; these will have standard DOS commands to run mscdex and your CD-ROM
driver, if needed
Then, you can copy the remainder of files off of another device: harddisk,
floppy, cdrom, usb stick, usb harddisk, etc.
You should be able to locate decent boot disk images on the 'net if you
don't have any. They'll probably be FreeDOS, but you might find DR-DOS. In
dark corners, you may even find MS-DOS or PC-DOS...
Rod Pemberton
Thanks for your posts. I'm missing something here.
I created a zip file of an installed DOS system and got it onto my Linux
host. My plan was to try to boot a DOS boot disk and follow your
instructions to format a partition I already have created, but for some
reason the boot disk only recognized my A: drive. I got the abort/retry/fail
prompt when I tried to dir c: or dir d: etc.
I was going to use one of my swap partitions as a home for a real DOS since
it's 2G. Using Linux fdisk I changed the partition id to 06 hoping DOS would
recognize it.
But when I boot the DOS boot disk I can't get DOS fdisk to run, it says C:
drive isn't accessible. If I could format/s the partition I was planning to
just go back to my Linux box and unzip the installed DOS over the filesystem
hopefully giving me a real bootable DOS. But the DOS bootdisk doesn't see
the drive. I wonder if this is because I have partition types that weren't
known to DOS.
I am trying to find a tool that lets me install a bootloader in a FAT
partition from Linux, that would solve the problem, because I can get the
system over there, but I haven't found anything yet. I just can't get it
bootable.
I am afraid to try a more modern bootdisk (XP for example) since XP has a
tendency to try to own the PC and feels free to write on the disk without
asking. I don't want to lose my Linux.
Do you have any idea what could be wrong, why doesn't DOS6.22 see the hard
drive? Thank you.
>Hi Dave and Rod,
Do you have anything odd or excessively modern in your hard drive setup?
DOS needs to access the drive via BIOS.
I still use DOS 5 for most of my DOS systems, but I believe 6.22 has similar
limitations:
DOS 5 doesn't support FAT32 and won't support a partition larger than
slightly under 2G ... And it accesses the drive through C,H,S addressing,
which can't support a cylinder larger than 1024.
For many systems, the combination of FAT16 and CHS addressing results in
a maximum usable partition size of just under 512M (Depends on how your
BIOS translates larger drives to this interface). I believe it is possible to
get DOS to work in LBA ... but I've never bothered to figure it out as 512M
is lots big for anything I do under DOS.
And to make matters worse, the partition offset has to be within the 1024
cylinder boundary from the start of the drive.
So - when multi-booting older DOS it's best to make the DOS partition
first on the drive, and small.
"newer" DOS such as MS-DOS 7 (the DOS under Win9x), PCDOS-7,
OpenDOS-7 etc. know how to talk to larger drives may not be so
restrictive.
Dave
--
dave10@ Low-cost firmware development tools: www.dunfield.com
I don't think so, but...
> DOS 5 doesn't support FAT32 and won't support a partition larger than
> slightly under 2G ... And it accesses the drive through C,H,S addressing,
> which can't support a cylinder larger than 1024.
I'm really not sure how I set up my emulated DOS except for DRDOS 7.03 is
happy with a 2 gig drive and calls it FAT16B > 32M. I *thought* I gave my
MSDOS 6.22 system 2G also but fdisk on it only shows me 1G.
> For many systems, the combination of FAT16 and CHS addressing results in
> a maximum usable partition size of just under 512M (Depends on how your
> BIOS translates larger drives to this interface). I believe it is possible
> to get DOS to work in LBA ... but I've never bothered to figure it out as
> 512M is lots big for anything I do under DOS.
> And to make matters worse, the partition offset has to be within the 1024
> cylinder boundary from the start of the drive.
I am starting to remember this now. My real DOS partition that I stole from
my Linux swap is 2G and that's how big I built the filesystem...and DRDOS
and 98SE boot disks can read it fine and so can FreeDOS. But...it's more
than 1024 into the drive which from your explanation I am wondering if this
is why fdisk on the real drive either fails or on DRDOS 7.03 gives me a
weird partition table that I am afraid to touch. Format failed also, did
nothing. I was able to exec my autoexec.bat and my system was ok, I just
can't get the darn thing bootable. It is probably related to what you are
saying and at this point I have no way to get it on a real box because I'm
out of space other than my swap files which start about 6-10G into the
drive.
> So - when multi-booting older DOS it's best to make the DOS partition
> first on the drive, and small.
Yeah thanks. I had in mind to create 3 2G partitions so I could install
several DOS but that may not even be possible. I wonder if jacking up the
numbers so the cylinders are bigger will help or if the limitation is not
just on cylinders.
I thought 512M would be plenty too but after I installed only a few DJGPP
zips and OpenWatcom it was already getting pretty full so I figured I would
go for the biggest DRDOS would tolerate which seems to be 2G. I'll have to
plan a little more carefully when I learn the limits of each DOS version.
> "newer" DOS such as MS-DOS 7 (the DOS under Win9x), PCDOS-7,
> OpenDOS-7 etc. know how to talk to larger drives may not be so
> restrictive.
Yes, it does seem to work better and even run after I booted into it with a
boot CD and did my autoexec bat after switching to C:. But I didn't check
to see if MASM/PWB would crash it yet.
I may look into creating my own boot disk with the full DRDOS install using
some tools I found on the net. That seems to be the only hope for installing
on my present setup but because of the CHS stuff that may not work either.
It will be a little while until I get my old box fixed up. Bummer for me!
Thanks guys.
Here's an extract from an article around 15 years ago:
| The capabilities of DOS are constrained by a combination of the IDE spec & the
| BIOS. The IDE spec allows for hard disk sizes of up to 130GB, whilst a
| "standard" (non-LBA) PC BIOS can handle disks of up to 8GB in size. The 504MB
| "limit" occurs because of a mismatch between the drive geometries supported by
| each hardware standard. The problem is that DOS uses the "lowest common
| denominator". ie -
|
| BIOS IDE DOS
| Max sectors/track 63 255 63
| Max Heads 255 16 16
| Max Cylinders 1024 65536 1024
|
| To calculate sizes from Sectors, etc, use the following formula :
|
| sectors x heads x cylinders x 512 = capacity in *bytes*. To convert to MB divide
| your answer by 1,048,576.
|
| This gives : BIOS limit = 8,032.5MB; IDE limit = 130,560MB; DOS limit = 504MB
|
| MS-DOS 6.x does *not* support drives up to 2GB natively, unless your BIOS has an
| LBA mode available. It supports *partitions* (important distinction) of up to
| 2GB. Why you'd want a 2GB FAT partition is beyond me, as you'd lose about 300MB
| (ballpark figure) due to "slack" space.
The original message-id is <610520...@naismith.demon.co.uk> but I
have no idea whether it is still available or not. Some follow-ups
(again if they are still available) might be informative:
<610520...@naismith.demon.co.uk>
<VRz$dDAIGY...@hoskin.demon.co.uk>
In short, DOS can handle up to 2GB; beyond that, you're on your owm
(though of course things might well have changed in the intervening 15
years).
Pete
--
"We have not inherited the earth from our ancestors,
we have borrowed it from our descendants."