How can I merge / and /home LVMs? I’d like to do so to be able actually use SailfishOS applications… Or if possible, migrate /home to an SD card, and then expand the / LVM?
First off, what device do you have? Second, what precisely do you mean regarding being able to “actually use SailfishOS applications?” Nothing in the current configuration prevents you from using any apps unless you’re experiencing a store keys issue. Whether it’s an included app, from Jolla Store, or from OpenRepos/Storeman, all apps should work assuming changes with 4.x haven’t broken it due to Firejail.
I don’t know any way in wihch to merge the two in SFOS, and that’s generally not recommended. Pretty much all distros of Linux have been creating separate partitions for your root and home for the past 10 years now. If your interest is in having more system storage for adding apps and handling software updates, there are quite a few guides on the forums here on expanding your root LVM. I found a perfectly reasonable metric for the XA2 that I can post.
I guess I should’ve been more clear… I want to move the /home LVM to my SD card, is that safely doable with the tutorials found around this forum and the old TJ site.
I would think it could, but there could be a bit trouble if like an encrypted sdcard.
The SD card is not encrypted on the Xperia 10 Plus…
Often for beginners it isnt really a good idea to separate / and /home, for example because they waste space. Today i was compiling some programs; nano man-cd lynx … and my / is in trouble, so that i could make the next coming update. I have read the manuals for expanding and on my XA2 its a must to thing.
because you could or you do want it? Sorry for asking, i only know the XA2.
Just never did, lazy man’s backup recovery
yesterday i was starting to make some tests with btrfs. Just like you make it easier to deal with / and /home, because i was running out of space. but I am at the beginning. A few test broke my luks-encryption with btrfs on it. cant say more for this in the moment.
You reeeeallly don’t want to run out of space on a btrfs system.
All kinds of weirdness happens, including btrfs’s refusal to delete things because ‘no space left on device’.
The most widely-used solution for getting more space on
/ is not to remove
/home, but leverage LVM to make it smaller, and then assign more space to
You re soo right. No more balance possible. But on this phone its nearly impossible, or maybe you can add space with OTG. Never tried OTG on XA2, do not have some cable/adapter for this.
I am not sure, if it is a good idea to have /home on sdcard, in the moment testing around this. but on first try it didnt work for me because of the combination luks/btrfs i think. The combination luks/ext4 was ok, btrfs only too.
You can do things like dd a file, losetup the file, btrfs device add loopX, btrfs balance, btrfs device remove loopX to recover from a full btrfs situation …
One last thing:
There’s more than just user data in
/home, many system-critical things are stored in hidden folders there so if by whatever method you succeed make really really sure those are accessible at the right moments on boot.
Might want to consider moving just
/home/$USER not the whole partition.
I think, you re right. I ve done this for my phone, really easy with jolla’s good tutorial.