Stuckie
Member
Unfortunately not, as you're mounting to places which are generally being written to or used at that point in time ( you can check this by running "lsof /your/path" and you'll get a list of things accessing that path. )
You can sometimes get away with unmounting the /home bind, but you'd need to do it in a script that forces a sudo password, as if it's still in the cache, it tries to unmount too quick while the filesystem is writing the command that you've called the script to your bash_history! Fun, isn't it?
I think the script for doing the /home unbind is still in the PND, I just disabled the link as it's not 100% fool proof, and I'd rather not have people think they're safe to remove the card, then cause all sorts of madness. It should be fine, as I mount the NAND read-only.. but where would the writes occur if you've removed the card? It's not something I've tried, to be honest, as it doesn't sound particularly healthy!
For the most part, you can usually unbind most of it.. but some of the more important binds like /bin /lib and most of /usr are near enough impossible to do, sadly.
I'm still looking in to it, as there has to be a way to do it, but for now, I'd heed the big warning in my original post that this effectively locks your SD card, and you really should not remove it before rebooting.
I'll have another look into the /home bind.. and if I can get that unmounting safely, I'll reactivate the script as that's something at least
[edit]
wow, I just noticed an oops in my script... I don't appear to bind /usr/local to the loopback!
I had just compiled ddd and rebooted and wondered how it ended up in my menu... oops!
Might explain SomeGuy's Firefox oddness, it might've ended up in /usr/local which would still be on NAND.. I'll update it now. Sorry about that.. this is why it's in Developer's Corner and not on the public download areas
[/edit]
[further edit]
Ah, now I see why I missed it.. it doesn't exist on a default install! And I can't bind all of /usr to SD cause of the /usr/pandora folder... arse ... I'll have to check for it and create it if it doesn't exist the first time you run the script then.
[/further edit]
You can sometimes get away with unmounting the /home bind, but you'd need to do it in a script that forces a sudo password, as if it's still in the cache, it tries to unmount too quick while the filesystem is writing the command that you've called the script to your bash_history! Fun, isn't it?
I think the script for doing the /home unbind is still in the PND, I just disabled the link as it's not 100% fool proof, and I'd rather not have people think they're safe to remove the card, then cause all sorts of madness. It should be fine, as I mount the NAND read-only.. but where would the writes occur if you've removed the card? It's not something I've tried, to be honest, as it doesn't sound particularly healthy!
For the most part, you can usually unbind most of it.. but some of the more important binds like /bin /lib and most of /usr are near enough impossible to do, sadly.
I'm still looking in to it, as there has to be a way to do it, but for now, I'd heed the big warning in my original post that this effectively locks your SD card, and you really should not remove it before rebooting.
I'll have another look into the /home bind.. and if I can get that unmounting safely, I'll reactivate the script as that's something at least
[edit]
wow, I just noticed an oops in my script... I don't appear to bind /usr/local to the loopback!
I had just compiled ddd and rebooted and wondered how it ended up in my menu... oops!
Might explain SomeGuy's Firefox oddness, it might've ended up in /usr/local which would still be on NAND.. I'll update it now. Sorry about that.. this is why it's in Developer's Corner and not on the public download areas
[/edit]
[further edit]
Ah, now I see why I missed it.. it doesn't exist on a default install! And I can't bind all of /usr to SD cause of the /usr/pandora folder... arse ... I'll have to check for it and create it if it doesn't exist the first time you run the script then.
[/further edit]