View Single Post
Posts: 1,808 | Thanked: 4,272 times | Joined on Feb 2011 @ Germany
#49
Originally Posted by BertvanDorp View Post
Next topic, about unmounting the Swap partition before the whole microSD gets unmounted - what's the best route here? I was thinking either use dbus or any other event thing to unmount the swap and re-prioritize the swap, or to alter the behaviour so that the swap doesn't get unmounted. This last solution would require loads of big-text red lines screaming not to release the microSD before turning off the device. However, there's mixed reports on this issue, as sulu pointed out that the partition does not get unmounted when the cover is taken off. Anybody?
I have swap on the SD card. I just pulled the cover and my SD partitions got unmounted EXCEPT for the swap (which is not really mounted).

I guess, but I cannot confirm, that when pulling out the cover any mounted partition (perhaps even only VFAT, but I don't know) gets unmounted, but that's all.

Swap is by definition not a mounted partition, so nothing happens.

Obviously, if you do pull the CARD with swap on it you get an instant crash.
 

The Following 6 Users Say Thank You to reinob For This Useful Post: