Difference between revisions of "PinePhone Software Releases"

Jump to navigation Jump to search
Line 73: Line 73:
=== Resize SD card's partition using computer ===
=== Resize SD card's partition using computer ===


This is recommended as it is currently the only way to resize the SD card when it's not mounted.
For SD cards, insert the SD card and resize the partitions through the computer. For eMMC, insert the phone cable and use Jumpdrive to access the eMMC directly, and resize the partition after flashing the image.
Parted's interactive mode and resize work well together. Do this before you put your SD card into the PinePhone for the first time for best results.
 
sudo parted /dev/<your_sd_card_device>
(parted) resizepart 2 100%
(parted) quit
sudo resize /dev/<the_second_sd_card_PARTITION>


=== Resize from within PinePhone ===
Using Growpart:  
 
eMMC: You can use Jumpdrive to access the eMMC directly, and resize the partition after flashing the image.


  growpart /dev/sdX 1  
  growpart /dev/sdX 1  
  resize2fs /dev/sdX 1
  resize2fs /dev/sdX 1
Otherwise, you would need to resize the partition on eMMC (flashed with the operating system) by booting another image from the SD card: that way, the eMMC will be unmounted. It is '''not recommended''' to resize eMMC while booted from eMMC! Resizing a currently mounted partition can have weird results.
SD card: It is generally not possible to boot from eMMC to partition the unmounted SD card, because of the boot order -- you would have to write the image to the empty SD card first, then resize partition, all without rebooting. It is also not recommended to resize the SD card while booted from SD card! Resizing a currently mounted partition can have weird results.


Locate growpart (<code>apt-cache search growpart</code> and install the package in the search results) and run:  
Locate growpart (<code>apt-cache search growpart</code> and install the package in the search results) and run:  
Line 98: Line 86:


If you get any errors about missing or unknown commands, use apt-cache search to find and install the needed software. Also don't forget to use sudo.
If you get any errors about missing or unknown commands, use apt-cache search to find and install the needed software. Also don't forget to use sudo.
Using Parted:
Parted's interactive mode and resize work well together. Do this before you put your SD card into the PinePhone for the first time for best results.
sudo parted /dev/<your_sd_card_device>
(parted) resizepart 2 100%
(parted) quit
sudo resize /dev/<the_second_sd_card_PARTITION>
=== Resize from within PinePhone: ===
eMMC: you would need to resize the partition on eMMC (flashed with the operating system) by booting another image from the SD card: that way, the eMMC will be unmounted. It is '''not recommended''' to resize eMMC while booted from eMMC! Resizing a currently mounted partition can have weird results.
SD card: It is generally not possible to boot from eMMC to partition the unmounted SD card, because of the boot order -- you would have to write the image to the empty SD card first, then resize partition, all without rebooting. It is also '''not recommended''' to resize the SD card while booted from SD card! Resizing a currently mounted partition can have weird results.


== Installing Any ARM64 Distribution ==
== Installing Any ARM64 Distribution ==
110

edits

Navigation menu