I have a USB thumb drive that is properly recognized by FreeDOS on my
notebook, but not on my desktop. But syslinux and grub4dos recognize
it on both computers.

The pendrive geometry is 974/128/63 according to the desktop BIOS. In
the MBR its formatted as 1021/124/62, that is how linux sees it and
that is what is seen by the notebook BIOS.

The paragraph below is from initdisk.c. If I read it correctly,
FreeDOS assumes the correct partition beginning is in CHS from disk,
converts it to LBA and back to CHS using the BIOS values. What if the
CHS is wrong because the disk was formatted in another computer? If
the LBA and CHS values on disk dont match according to BIOS geometry
it's the LBA that should be used, not the CHS.

 * The CHS values in the boot sector are used at a higher level. The CHS
 * that DOS uses in various INT21/AH=44 IOCTL calls are converted to LBA
 * using the boot sector values and then converted back to CHS using BIOS
 * values if necessary. Internally we do LBA as much as possible.

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Freedos-kernel mailing list
Freedos-kernel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-kernel

Reply via email to