Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    Disk almost full

    Scheduled Pinned Locked Moved
    Using Duet Controllers
    3
    8
    384
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • jens55undefined
      jens55
      last edited by

      I am getting the following message when booting up my Duet 6HC based printer:

      Disk almost full
      There is barely any space left on the first volume. Delete some files to avoid problems during file uploads.

      I have just finished adding 7 GB to the first partition and about 14 GB to the second partition so space is not an issue. Any thoughts on why I am getting this message?

      1 Reply Last reply Reply Quote 0
      • Phaedruxundefined
        Phaedrux Moderator
        last edited by

        Is this a different card than the one mentioned in your other thread that I replied to?

        As I said in the other thread, I would backup the contents and use something like the SD Card Formatting Tool (Windows, Mac), or at least format the disk with a single FAT32 partition.

        Z-Bot CoreXY Build | Thingiverse Profile

        jens55undefined 1 Reply Last reply Reply Quote 0
        • jens55undefined
          jens55 @Phaedrux
          last edited by

          @Phaedrux, same card, both partitions mirrored to disk, partitions erased, larger partitions formatted, previous partition mirror restored to new now larger partition. I will try to partition another SD card and write the previously made partition mirrors to the new SD card. It is still based on the initially mirrored disk image so if there is something on the original partition that is causing the messages and it's not a matter of running out of space then chances are that this was transferred to the new and larger partition.
          I would like to stay with two partitions because I do have a pi mounted in this printer but just haven't used it yet.
          Doing a normal file based backup, rather than mirroring the partition, did not transfer all of the files because of permissions. I will try a regular file backup under sudo privileges to see if that works better.

          1 Reply Last reply Reply Quote 0
          • jens55undefined
            jens55
            last edited by

            Hmmmm .... the SD card that had the partition resized and the old image restored did not have the larger file system reflected when doing an M39.

            2023-08-20, 3:05:45 a.m. m39
            SD card in slot 0: capacity 32.01GB, partition size 0.26GB, free space 0.12GB, speed 25.00MBytes/sec, cluster size 512 bytes

            A different SD card with only the files restored (ie not an image restore) shows the correct partition size.
            However
            The card that shows the smaller file system currently causes no error message but the larger file system that is recognized as the larger file system now shows the low disk space error message on bootup.

            2023-08-20, 3:06:40 a.m. m39
            SD card in slot 0: capacity 31.98GB, partition size 15.98GB, free space 15.84GB, speed 25.00MBytes/sec, cluster size 8kB
            2023-08-20, 3:06:29 a.m. Disk almost full
            There is barely any space left on the first volume. Delete some files to avoid problems during file uploads.

            In these tests I only restored the first partition since that seems to be the one that is used in a standalone system.

            1 Reply Last reply Reply Quote 0
            • Phaedruxundefined
              Phaedrux Moderator
              last edited by

              I suspect there is something wrong with the partitions. Keep it simple. Single partition. If you want to use the Pi at a later date, use a seperate SD card.

              Z-Bot CoreXY Build | Thingiverse Profile

              jens55undefined 1 Reply Last reply Reply Quote 0
              • jens55undefined
                jens55 @Phaedrux
                last edited by

                @Phaedrux, while that makes sense, that isn't it. The SD card that is producing the error is the one that has a single partition and is recognized as 15 (or so) gigs. It was produced by copying the files onto it rather than trying to mirror things. The card that previously gave me problems, the one with two partitions, seems to be working fine now and hasn't given any error messages in a while now .... <shrug>

                I am currently using the printer fo actually print something (novel concept) rather than trying to figure out why something is broken but when I get tired of printing stuff I can try a bunch more experiments with SD cards. It would be helpful to know what the Duet uses to determine if the disk is almost full but like I said, there are a few other things I can try.

                chrishammundefined 1 Reply Last reply Reply Quote 0
                • chrishammundefined
                  chrishamm administrators @jens55
                  last edited by

                  @jens55 DWC looks at volumes[0].freeSpace / volumes[0].capacity and shows that warning if less than 256MB or 5% free space is available.

                  Duet software engineer

                  jens55undefined 1 Reply Last reply Reply Quote 0
                  • jens55undefined
                    jens55 @chrishamm
                    last edited by

                    @chrishamm, thank you, that will help tracking things down. That certainly explains why the original CF card had the warning.

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post
                    Unless otherwise noted, all forum content is licensed under CC-BY-SA