PDA

View Full Version : [Proposal pending] Safely Remove Memory Card


x61
01-25-2010, 11:59 PM
We all know it is best to "safely" remove your memory card before removing it. All the previous phones that I have had that have expandable memory card compatibility have the option to "safely remove memory cars" but the N900 seems to not have this feature. I would be nice to have so we dont have to turn off the phone everytime we we try removing the memory card or risk frying it.

j.s
01-26-2010, 01:18 AM
We all know it is best to "safely" remove your memory card before removing it. All the previous phones that I have had that have expandable memory card compatibility have the option to "safely remove memory cars" but the N900 seems to not have this feature. I would be nice to have so we dont have to turn off the phone everytime we we try removing the memory card or risk frying it.

sudo gainroot
umount /media/mmc1

wmarone
01-26-2010, 01:51 AM
sudo gainroot
umount /media/mmc1

That hardly counts as a solution. The N900 should have a means of "ejecting" the card, and helping the user resolve any open files preventing clean unmount without dropping to the console and using lsof and umount. A notification area button or widget would be a good solution for it.

hwong_pz
01-26-2010, 02:01 AM
Not sure how relevant is this but there's a little magnet on the back cover of the n900, and a "sensor" somewhere around the rear camera module to detect if the back cover is in place or not. If I remember correctly, the sd card module will be deactivated when the back cover is removed. Could this be the "safety" feature Nokia implemented in terms of sending a signal to unmount the sd card once the back cover is removed?

ViciousXUSMC
01-26-2010, 02:04 AM
Somebody can make that script into a widget easy, why do you need to remove your card so often? I think you can do everything the same just by using the phone in usb mass storage mode without the hassle.

I do not have a micro sd yet waiting for 32gb and a good price but its not something I would plan on taking out often since its behind the cover and all that.

I would think if I am taking off the back cover I want to turn off the device first anyways.

Infact speaking of a widget, there may be one that already works. Check this out - http://talk.maemo.org/showthread.php?t=39177

Its programmable so you can just put that script into it I think.

wmarone
01-26-2010, 02:10 AM
Could this be the "safety" feature Nokia implemented in terms of sending a signal to unmount the sd card once the back cover is removed?
It does unmount the card if the back cover is removed, but while there are files open I don't think (and doubt) that the system can unmount the partition.

Maybe Nokia send out a message over DBus when the cover is removed?

chemist
01-26-2010, 08:52 AM
Please create a brainstorm item and read the links in my signature for further help.

x61
01-26-2010, 07:18 PM
Not sure how relevant is this but there's a little magnet on the back cover of the n900, and a "sensor" somewhere around the rear camera module to detect if the back cover is in place or not. If I remember correctly, the sd card module will be deactivated when the back cover is removed. Could this be the "safety" feature Nokia implemented in terms of sending a signal to unmount the sd card once the back cover is removed?

This explains why my phone was not reading mmc when the cover was opened. But we still need to "Safely remove". Great fined. Thanks.

shadowjk
01-26-2010, 07:59 PM
Surely it already attempts "Safely Remove" when you remove the back cover?
Just compare output of 'mount' command before and after removing back cover, when you have an SD card inserted...

x61
01-26-2010, 08:05 PM
But what if I do not want to remove the memory card but rather just want to look at the inside beauty of this fine phone while listening to my favorite music on the memory card?