Corruption on Pegasos 2: random MD5
  • Leo
  • Order of the Butterfly
    Order of the Butterfly
    Leo
    Posts: 426 from 2003/8/18
    I tried to copy the MorphOS 3.20 ISO (so about 471Mb) on an SFS partition, but when calculating the MD5 of the file, I get random values (both with Ambient information window, and the new command line tool OFHash), almost never the same, and certainly not the correct one.

    I guess there's memory corruption happening somewhere, but I don't know where:

    - in memory?
    - on the hard drive?

    That's a Pegasos 2 with the built-in IDE port, and a single stick of 512 Mb RAM. In the serial logs, SmartFirmware says that memory test is OK.

    What can I do to locate the problem? Is there a way to do an extensive memory test from MorphOS?
    Nothing hurts a project more than developers not taking the time to let their community know what is going on.
  • »29.06.26 - 06:00
    Profile Visit Website
  • Leo
  • Order of the Butterfly
    Order of the Butterfly
    Leo
    Posts: 426 from 2003/8/18
    I read about the memtest command, and ran 'memtest EXTENSIVE DISABLE 20 VERBOSE' and got no error.
    Nothing hurts a project more than developers not taking the time to let their community know what is going on.
  • »29.06.26 - 06:14
    Profile Visit Website
  • Caterpillar
    Caterpillar
    OffseT
    Posts: 27 from 2019/8/23
    I noticed this issue a few years ago, on Pegasos 2/G4 too.
    The interesting point is that I noticed it with sata while you have it with IDE.
    It would confirm it is a generic issue.

    Do you have other devices attached to the IDE?
    On sata I have an optical drive too.
  • »29.06.26 - 07:24
    Profile Visit Website
  • Leo
  • Order of the Butterfly
    Order of the Butterfly
    Leo
    Posts: 426 from 2003/8/18
    I have an Harddrive on the first channel, and a Sata SSD with a IDE > SATA adapter on the second channel. Corruption seem to appear on both. I guess I could try booting with one of the channel empty too to see if corruption still happens.

    Also, hash is also wrong when reading from USB/FAT16 (which I know for sure has the correct unaltered version written on), and several MD5 also produce different hashes from USB.

    So you used a SATA PCI card?

    Just wondering: did you have a single or two memory sticks?

    Edit: corruption also appears when a single IDE channel is used.

    [ Edited by Leo 29.06.2026 - 07:23 ]
    Nothing hurts a project more than developers not taking the time to let their community know what is going on.
  • »29.06.26 - 07:38
    Profile Visit Website
  • Caterpillar
    Caterpillar
    OffseT
    Posts: 27 from 2019/8/23
    Yes PCI sata card; works great but not bootable from SmartFirmware (I have a CF on IDE with just the boot.img).

    [ Edité par OffseT 29.06.2026 - 07:50 ]
  • »29.06.26 - 07:46
    Profile Visit Website
  • jPV
  • Yokemate of Keyboards
    Yokemate of Keyboards
    jPV
    Posts: 2216 from 2003/2/24
    From: po-RNO
    Does it happen when you do that on files on Ram Disk?
    The wiki based MorphOS Library - Your starting point for MorphOS
    Software and other things made by me
  • »29.06.26 - 08:10
    Profile Visit Website
  • Leo
  • Order of the Butterfly
    Order of the Butterfly
    Leo
    Posts: 426 from 2003/8/18
    Quote:

    jPV wrote:
    Does it happen when you do that on files on Ram Disk?



    This file is too big to fit in RAM: I'll do some tests with smaller files.
    Nothing hurts a project more than developers not taking the time to let their community know what is going on.
  • »29.06.26 - 08:11
    Profile Visit Website
  • Caterpillar
    Caterpillar
    OffseT
    Posts: 27 from 2019/8/23
    OK, I did the test again, and I can still reproduce it.

    On my Peg2, it is not that often; I have a wrong md5 only about once every 50 times.
    And only on sata hdd; I have no error on Ram Disk.

    I could try on IDE later too.

    @Leo: I have 2x1GB of RAM (Peg rev 2B5).
  • »29.06.26 - 13:11
    Profile Visit Website
  • Leo
  • Order of the Butterfly
    Order of the Butterfly
    Leo
    Posts: 426 from 2003/8/18
    Quote:

    OffseT wrote:
    OK, I did the test again, and I can still reproduce it.

    On my Peg2, it is not that often; I have a wrong md5 only about once every 50 times.
    And only on sata hdd; I have no error on Ram Disk.

    I could try on IDE later too.

    @Leo: I have 2x1GB of RAM (Peg rev 2B5).


    I did some tests and when running the MD5 from USB or RAM is appears (I say appears because USB 1.1 is so slow I barely have the time to run a single or two checksums before the MorphOS demo limit kicks off) to be OK. But once it's run from the HD, if the file is big enough (like 471Mb for the MorphOS ISO), I get random hashes. Retrying returns another one.

    I wish I could try some old Linux distro but unfortunately I wasn't able to find one that can be installed without a CDRom drive.
    Nothing hurts a project more than developers not taking the time to let their community know what is going on.
  • »29.06.26 - 14:47
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    analogkid
    Posts: 716 from 2004/11/3
    From: near myself
    Could it be an issue of the IDE cable? It has to be a 80pin UDMA cable, a 40pin IDE cable won't work IIRC.
  • »30.06.26 - 04:50
    Profile
  • Caterpillar
    Caterpillar
    OffseT
    Posts: 27 from 2019/8/23
    Quote:

    analogkid a écrit :
    Could it be an issue of the IDE cable? It has to be a 80pin UDMA cable, a 40pin IDE cable won't work IIRC.


    The issue is not related to IDE, SATA is also affected.
  • »30.06.26 - 05:25
    Profile Visit Website