Hmmm. For information only, can you tell us the version you are trying
to install? Thanks in advance.
> I have tried disabling DMA in the BIOS to see if it would make any
> difference,
It won't (but see below). The DMA setting in the BIOS affects only the
BIOS :^) and Minix normally uses its own setting; so while you might
enable or disable DMA use with MINIX, it won't be done with BIOS.
> Is there anything I can do to install MINIX 3 on the hard drive?
Try the "Universal" a.k.a. "bios_wini" driver, instead of "at_wini". At
the boot monitor prompt (typing Esc to stop the countdown), enter
bios_wini=yes
menu
and retry to install that way. Of course you have to redo it while
rebooting.
If it works for you, you can force this setting in the boot monitor
installed on your harddisk: after installation, when you reboot, after
stopping the countdown, enter
bios_wini=yes
save
menu
Antoine
It is old, but OTOH it is a stable version, with less of the problematic
stuff (like VM) which is currently under heavy development.
>>> I am using a machine with a AMD-K6 processor.
Can you give a bit more details about your hardware (particularly around
the southbridge and the "chipset")? And how the drives are connected to
the motherboard.
Anyway, as I said it is possible to disable DMA use in Minix' at_bios
driver: instead to using bios_wini, you should try
ata_no_dma=1
menu
(and similarly, doing it on every reboot, and using save to make it
permanent on the disk when you have it installed.)
Antoine
Information to be passed to the hardware specialists (and meanwhile,
Google's memory will keep it here ;-))
> The hard drive is set as the primary master and the CD drive is set as
> the primary slave.
I remember there were problems years ago (which is congruent with this
hardware) when ATA and ATAPI commands were mixed on the same channel
while using DMA. Perhaps it is the case which is hurting you.
Unfortunately, I assume there is no way to test otherwise, since
disconnecting the CD will makes your computer unable to install from CD
> Thanks! It has now managed to install after I followed your suggestion
> of disabling DMA :-)
You are welcome.
> However, now that is has installed and I have rebooted it, the machine
> will not boot from the hard drive, which I assume is because it is
> still using DMA?
I do not believe so. DMA (or the opposite, PIO) is just a way to use the
disk driver; each driver does it its own way; you are using two drivers
(first the BIOS, in order to load the boot monitor and then to load the
OS proper; second Minix acting on its own), but there is no real reason
they have to use the same protocol.
What might be a problem could be that for whatever hardware reason DMA
does not work (bad chip, bad cable, bad mood between the two devices as
I said above, etc); in this case your only solution is to stick to
no-dma for both BIOS booting _and_ Minix.
> P.S. By the machine will not boot it, I mean that not even the boot
> monitor appears, it just hangs.
Well, the most probable cause by far is because of your multiple tries,
Minix setup did not properly installed the booting infrastructure
(I was bitten by this one fairly recently ;-) )
> So my guess is that I need to boot from the CD and
> edit a file that the boot monitor reads the settings from?
Quite. My guess is that the problem is not with the "file" where the
settings are (in fact it is not a file, rather 512 bytes of storage in
the second sector of the booting file system, between the boot sector
and the superblock), but rather with either the masterboot or the
partition boot code.
Please take some time to understand what is happenning while booting
(http://wiki.minix3.org/en/DevelopersGuide/FromPowerOnToLoginPrompt has
a short introduction, http://www.os-forum.com/minix/boot/ is good and
specific to Minix, and much more details are available on the web); your
main tool will be installboot, particularly -m and -d
http://www.minix3.org/manpages/ man8/installboot.8.html; as it read,
make sure you understand it before proceeding.
-m installs the masterboot code: it just jumps to the code in the active
(sub)partition; in a normal Minix setup, it might be installed twice:
once to jump from /dev/c0d0 to /dev/c0d0p0, and the second to jump from
/dev/c0d0p0 to /dev/c0d0p0s0; from the CD prompt, it will look like
installboot -m /dev/c0d0 /usr/mdec/masterboot
installboot -m /dev/c0d0p0 /usr/mdec/masterboot
Warning: NOTE THIS WILL ERASE ANY MBR CODE YOU HAVE ON THE DISK.
Also make sure that both partition (p0 and s0 inside p0) are active, or
it will not work.
-d installs the bootblock, which is loading the boot monitor (in fact,
it also install the boot monitor as well):
installboot -d /dev/c0d0p0s0 /usr/mdec/bootblock /boot/boot
After that, booting should be restored: do sync then shutdown then force
the reboot without CD, you should end at the boot monitor prompt.
Antoine
If not, check what is within that directory /usr/mdec.
The best way to avoid typing problems is to use filename completion:
after typing /usr/mdec/bo, hit the tabulation key, and the shell should
complete the filename automatically, without possibility for error.
Antoine
Hmmm, if the datas are the same for the whole 512-byte sector, it means
the informations about the partitions are the same... (and also there
are no Windows NT signature which would randomize somewhat the bytes at
offsets 01b8-01bb.)
You should also double-check that the first sector of the active
partition (corresponding to /dev/c0d0p0, assuming p0 is active) also is
correct, and then that the content of the first sector of the root
filesystem (corresponding to /dev/c0d0p0s0) has the code from
/usr/mdec/bootblock. Also, you should double check that the s0
subpartition is indeed active.
Assuming both disks are partionned the same way as said above, this
boils down to check that in addition to the MBR sector, the first
sectors of the Minix partitions are also identical on both disks.
Note that the next sector (which is normally the first sector of the
subpartition, ie the first sector of the root file system) could be
different, since it records the position on disk of /boot/boot:
depending on how the filesystem is actually written, the physical
position of a file could be different between two systems which
otherwise look identical.
Antoine
Well, does the faulty machine actually boots that harddisk?
I mean, is it enable in the BIOS? (no intervening extension card like
SSCI, intervening disk, incorrect geometry, inexistant floppy etc.)
Also, perhaps you can try the reverse way, ie put the disk of the
known-working station in the suspect one, and give it a try? As long as
you stop at the boot monitor, Minix does not write anything to the disk,
so it is completely safe.
Antoine