Resizing root directory - telnet connection problems

I tried resizing partitions so upgrades are easier, but ran into “telnet connection timed out”. I found a solution on tjc so I’m reposting here for archive purposes.

The relevant part is:

connecting to your device in recovery mode

older Linux (e.g. Debian Jessie):
    typing ifconfig -a should list a new device usb0 (or a greater number, if you had other usb devices before)
    configure this device with: dhclient usb0
new Linux (e.g. Debian Stretch):
    typing ip address list should list a new device without ip-address. In my case: enp0s20u1
    configure this device with: dhclient enp0s20u1
type telnet 10.42.66.66 to connect to your SailfishX device

You should now see:


Jolla Recovery v2.0

Welcome to the recovery tool!
The available options are:

  1. Reset device to factory state
  2. Reboot device
  3. Shell
  4. Perform file system check
  5. Run sshd
  6. Exit
    Type the number of the desired action and press [Enter]:

and the tjc link is: [Question] xperia recovery mode? - together.jolla.com

HTH

2 Likes
  1. If I understand correctly, you suggest to follow Jolla’s instructions for entering the recovery mode, and if one runs into "telnet connection timed out” errors, to utilise the dhclient command as described in the section “connecting to your device in recovery mode” of this comment at TJC, correct?

  2. And this was helpful to successfully execute chapter 3.3 “Increasing the ‘root’ LVM volume size” of this guide, correct?

Sorry, for me your post appears to be lacking context, hence I am asking these two checks & balances questions.

1 Like

P.S.: The whole section from the first of my two questions is (copied with its original formatting):


connecting to your device in recovery mode

  • older Linux (e.g. Debian Jessie):
    • typing ifconfig -a should list a new device usb0 (or a greater number, if you had other usb devices before)
    • configure this device with: dhclient usb0
  • new Linux (e.g. Debian Stretch):
    • typing ip address list should list a new device without ip-address. In my case: enp0s20u1
    • configure this device with: dhclient enp0s20u1
  • type telnet 10.42.66.66 to connect to your SailfishX device

You should now see:

-----------------------------
 Jolla Recovery v2.0
-----------------------------
Welcome to the recovery tool!
The available options are:
1) Reset device to factory state
2) Reboot device
3) Shell
4) Perform file system check
5) Run sshd
6) Exit
Type the number of the desired action and press [Enter]:

You can select option 3 to get a shell on your SailfishX device.

(!) Please be careful about what you are doing and respect the warranty warning!

Hint: “devicelock code” is the code you have to enter to unlock your device in normal operation mode (after your display was off for 10 minutes or longer).

2 Likes

I got this on Linux laptop:

andrea@andrea-Voom-Laptop-Max:~/Sailfish_Handy/Increase root LVM size/bootSony_X10$ 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 
       valid_lft forever preferred_lft forever
2: enxc84d442109a4: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether c8:4d:44:21:09:a4 brd ff:ff:ff:ff:ff:ff
    inet 192.168.0.25/24 brd 192.168.0.255 scope global noprefixroute enxc84d442109a4
       valid_lft forever preferred_lft forever
    inet6 fe80::ca4d:44ff:fe21:9a4/64 scope link 
       valid_lft forever preferred_lft forever
3: wlx3420035ec4c2: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether 34:20:03:5e:c4:c2 brd ff:ff:ff:ff:ff:ff
4: lxcbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
    link/ether 00:16:3e:00:00:00 brd ff:ff:ff:ff:ff:ff
    inet 10.0.3.1/24 brd 10.0.3.255 scope global lxcbr0
       valid_lft forever preferred_lft forever
9: enx66c006b42bfc: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UNKNOWN group default qlen 1000
    link/ether 66:c0:06:b4:2b:fc brd ff:ff:ff:ff:ff:ff
10: enx26a29ff1474e: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UNKNOWN group default qlen 1000
    link/ether 26:a2:9f:f1:47:4e brd ff:ff:ff:ff:ff:ff
andrea@andrea-Voom-Laptop-Max:~/Sailfish_Handy/Increase root LVM size/bootSony_X10$ dhclient enx26a29ff1474e
RTNETLINK answers: Operation not permitted
mkdir: cannot create directory '/run/network': Permission denied
andrea@andrea-Voom-Laptop-Max:~/Sailfish_Handy/Increase root LVM size/bootSony_X10$ dhclient enx66c006b42bfc
RTNETLINK answers: Operation not permitted
mkdir: cannot create directory '/run/network': Permission denied
andrea@andrea-Voom-Laptop-Max:~/Sailfish_Handy/Increase root LVM size/bootSony_X10$ 

sudo telnet 10.42.66.66 works!