Disk almost full
-
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?
-
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.
-
@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. -
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 bytesA 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.
-
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.
-
@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.
-
@jens55 DWC looks at
volumes[0].freeSpace
/volumes[0].capacity
and shows that warning if less than 256MB or 5% free space is available. -
@chrishamm, thank you, that will help tracking things down. That certainly explains why the original CF card had the warning.