View Single Post
Posts: 701 | Thanked: 585 times | Joined on Sep 2010 @ London, England
#25
Originally Posted by woody14619 View Post
Originally Posted by atunguyd View Post
Originally Posted by Be careful here - I am lead to believe that the N900 has a magnetic sensor that detects when the back plate has been removed and automatically un-mounts the SD card.
This is correct, but not as disastrous as it sounds. Unix won't let you (even as root) unmount a file system that has something going on in it. The automated scripts may try to kill all fusers of the device, but if the thing using it is the swapper, it can't kill that, so there's no way it would unmount.
This isn't quite correct, because it is not how it works on the N900. When you remove the back cover on the N900, the N900 doesn't unmount the SD card, it removes the block device of the SD card from /dev. It becomes completely inaccessible and it doesn't wait for anything to be unmounted, it is effectively the same as unplugging the card reader as far as the system is concerned. And just to be sure I was correct, I temporarily moved my swap to my SD card, turned off the internal swap and took off the back cover, then it crashed and turned itself off.
 

The Following 3 Users Say Thank You to retsaw For This Useful Post: