Shrinking home and extending root partition

Hello,
my Sony xperia have in root 2 GB memory, that is to low for the next system update.

Is this link still valid to enlarge the root and shrinking home partition?

I don’t want to reinstall the next update completely, as Jolla suggests for 4.6, so that the root partition is enlarged, because then I have to reinstall all programs again, or am I seeing something wrong?

They did? Huh, hadn’t seen that. My upgrade did not go well. I think I’d recommend doing it from the command line with @olf’s script: sfos-upgrade | OpenRepos.net — Community Repository System

Anyhow, I though the current instructions for expanding the root partition are on docs.sailfishos.org, but it appears they are here: Expand root partition | SailfishOS community wiki and here: olf (Olf0) (Olf0) / SailfishX on Xperias · GitLab

They did? Huh, hadn’t seen that. My upgrade did not go well. I think I’d recommend doing it from the command line with @olf’s script: sfos-upgrade | OpenRepos.net — Community Repository System

Anyhow, I though the current instructions for expanding the root partition are on docs.sailfishos.org, but it appears they are here: Expand root partition | SailfishOS community wiki and here: olf (Olf0) (Olf0) / SailfishX on Xperias · GitLab

Please mind: Need help with resizing home partition - #4 by olf

1 Like

Thanks for the link. I’ll do it on a weekend with plenty of time so I don’t make a mistake.

Good evening,
I actually wanted to finally do it tonight, but I can’t reach the Sony with fastboot. The problem is that I can’t switch the network to the USB port with dhclient. I have used these instructions: https://forum.sailfishos.org/t/resizing-root-directory-telnet-connection-problems/7067/3?u=olf

I get the following from my linux console (opensuse LEAP 15.6)

fastboot boot hybris-recovery.img 
Sending 'boot.img' (22676 KB)                      FAILED (Write to device failed (No such file or directory))
fastboot: error: Command failed

fastboot devices
CQ300043MN       fastboot

dhclient CQ300043MN
Device "CQ300043MN" does not exist.
Cannot find device "CQ300043MN"

What am I doing wrong?

I will probably try again on Saturday evening.

Maybe your file hybris-recovery.img on computer is on the wrong place on computer and so the command doesn’t find it. Therefore ‘No such file or directory’.

Hello, thank for the answer, the error was one space too many. Next step and again I don’t know exactly what to do. How do I now find out which address I need to change the network connection to? No. 2 is the network card, but what is the name of no. 1?

ip address list
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host noprefixroute
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 50:e5:49:37:35:d9 brd ff:ff:ff:ff:ff:ff
altname enp5s0
inet 192.168.1.103/24 brd 192.168.1.255 scope global dynamic noprefixroute eth0
valid_lft 85379sec preferred_lft 85379sec
inet6 2003:d8:571b:8401:bb7:17c7:b34a:b6ba/64 scope global temporary dynamic
valid_lft 301sec preferred_lft 121sec
inet6 2003:d8:571b:8401:af27:baf8:f7c7:4621/64 scope global dynamic mngtmpaddr noprefixroute
valid_lft 301sec preferred_lft 121sec
inet6 fe80::701b:99b3:525d:667b/64 scope link noprefixroute
valid_lft forever preferred_lft forever

`

No.1 is a system local interface. For USB you should see another interface in “enp0sXXuXuX” format. If Should it is missing that means that is there is no kernel module for USB network or UDEV rule.