blog: pinephone: document partition resize method

This commit is contained in:
colin 2022-05-26 19:00:38 -07:00
parent cd93b05c3c
commit 10ab675a94
1 changed files with 9 additions and 15 deletions

View File

@ -20,23 +20,17 @@ step 5: add gnome and re-flash; connect to wifi (`nmcli connect wifi <wifiname>
step 6: ssh into the machine. resize the parts, and clone/rebuild config (better to do this from PC?)
TODO: resizing the parts like this makes the device unbootable (doesn't seem to even reach the eMMC bootloader!).
maybe it destroys whatever data is at fixed offset.
pinephone wiki recommends growpart + resize2fs; nixos arm matrix recommends cfdisk
try tow-boot?
RESIZE THE PARTITION USING CFDISK. `parted` and the like mess with the bootloader. mobile-nixos is switching from
u-boot to towboot, so at some point this won't be problematic. you can resize the filesystem using resize2fs,
or just skip that and the phone will do that the next time you boot.
```sh
$ sudo parted /dev/sdb
GNU Parted 3.4
Using /dev/sdb
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) resizepart
Warning: Not all of the space available to /dev/sdb appears to be used, you can fix the GPT to use all of the space (an extra 41217660 blocks) or continue with the current setting?
Fix/Ignore? Fix
Partition number? 4
End? [10.0GB]? 31GB
(parted) quit
$ sudo resize2fs /dev/sdb4
$ sudo cfdisk /dev/sdb
scroll to /dev/sdb4
resize
leave at default (28.8 GB)
write
quite
```
then disconnect the device and boot it