Fairphone 5: SD Card not properly unmounted when poweroff due to low battery

Hi,

I have used /e/OS with my Fairphone 5 for quite a bit now and have encountered the same problem multiple times now.

When my phone shuts down due to low battery, the SD Card is not properly unmounted. After reboot the sd card is not recognized and a “There is a problem with the SD-Card” Notification is shown, suggesting I format it as removable storage.

The strange thing is, the SD Card reads fine with my laptop, no issues are found using fsck.extfat:
exfatprogs version : 1.4.2 (2026-06-15)
sector size: 512.00 B
cluster size: 256.00 KB
volume size: 476.68 GB
/dev/sda1: clean. directories 29059, files 128556

After mounting and unmounting with the PC as well as running fsck the sd card is recognized again (it sometimes takes multiple iterations of this and I can not find any logical reason why this should make any sense)…

Is there a way of making sure the SD-Card is always properly unmounted independent of the reason for a poweroff?
Is there a way of running fsck or a similar script on device to fix the sd card?

(I also find the “just reformat the device” a very risky default choice considering that all the data would be wiped and some people might not know what “formatting” your storage mean exactly…)

Thankful for any help, regards
Paradx

So firstly “Power off due to low battery” is not ideal … but it is important that the SD card mounts on a true Restart. Is this problematic?

Is “Power off due to low battery” a full Power off or some sort of hibernate?

Worth reading first

1 Like
  1. I know that it is not ideal, but it is a thing happening and should be taken into account that people don’t have a charger at hand or don’t notice their phone running out of battery. So I would expect my operating system to shut down properly, same as if I manually turn it off. (having enough battery to unmount/sync sdcard data). The problematic part of this (annoying, I don’t have a laptop at hand and can’t use my SD-Card until I’ve removed and fixed it externally) is my main issue here or am I not getting your question?
  2. It at least looks like a normal shutdown with the “shutting down” text superimposed over the screen content and the spinny wheel spinning. So I expect it to behave like one.
  3. I’ve read that and it is not really relevant or helping me in this case, I am aware of the different formatting options and I choose portable storage for a reason (I forgot to write it explicitly, but if you’ve read the linked post it is clear that it is external storage from context), the internal storage caused me problems previously and can not be mounted to other devices.

Thanks for the pointing but it is probably some internal bug in handling shutdowns or lack of enough leftover power for the shutdown to finish completely?

Thank you for confirming that your SD card is mounted Portable / External. In my “first pass” answer it seemed important to rule this out as it causes frequent problems. It is odd that you would think that I would not have read the link I offered you.

One possible way to test this might be following such “shutdown incident” to restart the phone. Allow a moment for things to settle, then Power down (not restart).

Now on Power on will the SD card mount?

Another test would involve a different SD card. If a fresh card were to be formatted on device does such remounting problem persist?

You could consider to

Personal observation. I have a box of SD cards which consistently work fine on Linux PC and also other small board devices reformatting as required. I have however learned to keep Android SD cards dedicated to one device formatted on device.