If you can't format sd card to fat32, use Rufus on Windows or Disk Utility on a Mac, with steps to back up your card and fix ...
When you see "Storage Almost Full" at the moment you want to take a photo, you have to decide on the spot whether to keep it or delete it. I think it is more reassuring to first decide "where to move ...
Fork change: the original resolved partition names (e.g., sdb1) to the parent disk (sdb) and read /sys/block/sdb/stat. Partitions have their own stat file with the same format under /sys/class/block/, ...