Menu

#305 kernel shows strange values after fdisk and format

freedos12
open
nobody
None
5
2021-07-15
2021-03-13
No

When creating a new HD in virtualbox with fdisk 1.3.4 and format 0.9.1.w I get strange messages "Init Disk warning" (when booting up till the kernel (config.sys and autoexec.bat are renamed, so that it stops and waits for date/time). This problem starts with small 500 MB partitions and runs through till the biggest possible harddrives. At the big HDs the CHS changes are enormously where at 500 MB there are differences of 1 cylinder.
I tried to create the same 500 MB HD with M$, got the exactly same number of sectors etc, 31,5 kB free space between the partitions, C: had 4096 byte per sector, D and E 2048 byte per sector, from my sight everything was identical. When the M$ machine was complete, I ran the FD sys command to change it to FreeDOS, it worked fine without any warning message. What I am doing wrong?

1 Attachments

Discussion

  • fritz.mueller

    fritz.mueller - 2021-03-14

    screenshot of a 500 mb hd. same strange message

     
  • fritz.mueller

    fritz.mueller - 2021-07-15

    Hi,
    I just wanted to inform you that this message does NOT appear when I run fdisk / format a HD with MS-DOS622, but it appears when executing fdisk/format Win98 and Win10 (here partition starts at sector 128- but FD accepts this).
    After format command I installed FD kernel (2043) and command.com (0.84-pre7) with the sys command at all three tests.
    So it seems to me that the message has nothing to do with FD fdisk/format but the FD kernel.
    The test ran in qemu.

    Fritz

     
  • Kenneth Davis

    Kenneth Davis - 2021-07-15

    Off hand it looks like different LBA <-> CHS translation calculation is being used between the different OSes; not sure if its a bug or a result of different means of calculating.

    So I can setup a proper test environment, please clarify a few steps with the setup:
    1) how big is your virtual hard drive? e.g. 2GB raw
    2) are each of the three partitions you are creating the same size? e.g. all 500MB, all 1GB, etc
    3) you say FDISK and FORMAT from MSDOS 6 works, but later versions cause the issue with FreeDOS kernel - correct?
    4) does running FDISK and FORMAT from FreeDOS kernel also cause the issue?
    5) does QEMU vs VirtualBox make a difference (different BIOS translations possibly)?

    Thank you for the clarification - I can try the combinations to see if I can repeat, but it will be easier to see where the issue is if I can replicate your steps.

     
  • Kenneth Davis

    Kenneth Davis - 2021-07-15

    just realized the picture says 2TB, which answers question 1

     
  • fritz.mueller

    fritz.mueller - 2021-07-15

    1) I tried different sizes to create virtual hard drives in qemu and virtualbox. The message (almost) always appears. Exception here was a format/fdisk with MS-DOS 6.22 image and after this running a FD diskette to run sys c:
    2) I get the message when I create one partition per harddrive but also when creating several partitions.
    3) yes.
    4) yes, this was the reason that I thought that the problem comes from FD format or fdisk
    5) I did not notice differences.
    6) The messages can be overseen when you load fdconfig.sys / fdauto.bat, so simply boot up from a minimal system.

     

Log in to post a comment.

MongoDB Logo MongoDB