add btrfs storage to /home
Hi,
right here on my desk I have a Jollaphone and a huge 128GB mini SDXC Card recycled from a previously owned tablet...
I've read around a little. Posts like: 1) https://together.jolla.com/question/40802/how-to-format-your-usd-card-to-btrfs-and-share-space-with-android/ and 2) https://together.jolla.com/question/34087/wiki-microsd-microsdhc-microsdxc-card/ and also others...
If I understand correctly nobody has got a /home storage expansion on / or /home (/home is a subvolume from what I see) simply using the btrfs raid0 storage striping.
In the propoposal 1) is to me not clear the destiny of the /jolla subvolume. Does it stay on a separate mount path in /media/sdcard/jolla ? Does it get mounted automatically?
Is it viable the following strategy? (... no idea of what could happen upon a sailfish update...)
1) Create 2 partitons on sd card (which format? Perhaps MS-DOS?). 2) Format both partitions. The first one up to 32GB in fat32 for android and the other with btrfs. Merge in raid0 the brtfs with / volume
Any clue is welcome
Regards
Giorgio
P.S: I'm admittedly a newbie with btrfs
If you're going to merge with the / volume here are some things that need to be thought about.
Advantages of adding a card to the / volume I see are
- Easy expansion of space that is shared effectively.
- If it's a quick card, could improve Disk IO as it'll be split between 2 physical flash devices.
- Lost phone, most likely if the person with your now lost/stolen phone is malicious they'll rip card out and try to read it's contents, being an incomplete volume, it'll be nearly useless for them, which means they'll have to break any code on the phone to easily retrieve any data, if they haven't already trashed the partition on the card.
- Wear leveling the flash drive.
- Again something I've likely forgotten.
GD ( 2015-07-06 02:52:57 +0200 )editHey, for your question about 1) yes the jolla subvolume is being set default so the jolla-mountsd script mounts it just like any other card.
With your idea to add your sd to the rootfs or @home, there is a whole thread about that on http://talk.maemo.org and I strongly suggest to not do it. Why? Because Jolla may do funky things as they like and for sure they do not consider you having your uSD integrated into / or /home when upgrading. So if need be, mount uSD to /home/nemo completely but not integrated. That way you have internal storage @home still functional if the uSD mount breaks/fails, for / you better have a flashable image at hand when tinkering with it. Playing with the internal storage device can easily brick your phone for good. In future upgrades the uSD will be more utilized automatically for eg camera default storage among other things. So if you have trouble getting your internal storage consumption down I suggest you move irrelevant data off site only. I moved Android's user-data folder only as that is what consumes most of the space. It is also shared, in terms, both mounts make use of all of your uSD.
chemist ( 2015-07-06 11:50:51 +0200 )edit