Eric Auer wrote:
> >
> > Are you sure that this is not just what the PARTITION TABLE says?
> > Is there a way to ask FDISK whether it detects BIOS LBA support?


Bernd Böckmann wrote:
> Eric is right, I had a look at the relevant lines of the FDISK
> source. This is only an indicator that FDISK generally makes use of LBA,
> not if LBA for the currently selected disk is actually supported. Two
> different things.
>
> Sorry for that. Had better looked this up by myself before suggesting
> it.
>
> I now altered FDISK so that it also shows if LBA is actually used. It
> is printed after the disk size in the main menu if started with /XO.
>
> Jim, you may download the new executable from
[..]

Thanks! I grabbed that and ran the new FDISK with /xo on the CF card,
running in two ways:

1. Booted in QEMU, using the CF card (see command line in previous
emails). The output shows:

> Current fixed disk drive: 1   1775 Mbytes (LBA)

2. Put the CF card in the Pocket386 and booted from that. The output shows:

> Current fixed disk drive: 1   1775 Mbytes (CHS)


To compare: I also ran the new FDISK with /xo in the QEMU environment
where I normally run FreeDOS T2406 on my Linux box. That has a 500MB
"C:" drive (qcow2 disk image). The output there shows:

> Current fixed disk drive: 1   499 Mbytes (LBA)


So that says that QEMU supports LBA but the BIOS on the Pocket386 does
not. And that is probably why installing to the CF card from QEMU
worked fine .. and booting the CF card in QEMU worked fine .. but when
I just did plain "SYS C:" from the QEMU environment, FreeDOS didn't
boot on the Pocket386 (because it was trying to use LBA, which is not
supported on the Pocket386). When I instead used "SYS C: /FORCE:CHS"
from the QEMU environment, FreeDOS booted fine on the Pocket386
(because it was using CHS).

If you can think of a good engineering workaround for that, please do
it. But I'm thinking this is a "user" issue. I had SYS'd the drive
from a different "computer" (QEMU) then moved the CF card to a
different computer to boot it there. And then we run into BIOS not
supporting LBA on the second system.


_______________________________________________
Freedos-devel mailing list
Freedos-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-devel

Reply via email to