os:arch:arch_on_the_pi
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| os:arch:arch_on_the_pi [2026/09/22 14:41] – Julien Deswaef | os:arch:arch_on_the_pi [2026/09/22 14:46] (current) – [Python UnicodeEncodeError horror] Julien Deswaef | ||
|---|---|---|---|
| Line 98: | Line 98: | ||
| Following https:// | Following https:// | ||
| - | ## | + | ## Resizing a partition |
| - | //Copied from http:// | + | *Copied from |
| - | | + | * `sudo fdisk / |
| - | * Type '' | + | * Type `p` to list the partition table |
| - | < | + | < |
| - | Device | + | |
| - | / | + | |
| - | / | + | |
| - | </ | + | |
| - | | + | * Take note of the start number for partition 2 (if that's the one you want to resize) |
| - | * Type '' | + | * Type `d` to delete a partition. \\ You will then be prompted for the number of the partition you want to delete. In the case above you want to delete partition 2. |
| - | * Type '' | + | * Type `n` to create a new partition. |
| - | * This new partition needs to be a primary partition so type '' | + | * This new partition needs to be a primary partition so type `p`. |
| - | * Next enter '' | + | * Next enter `2` when prompted for a partition number. |
| - | * You will now be prompted for the first sector for the new partition. Enter the start number from the partition 2 you deleted before. | + | * You will now be prompted for the first sector for the new partition. Enter the start number from the partition 2 you deleted before. |
| - | * Next you will be prompted for the last sector you can just hit enter to accept the default which will utilize the remaining disk space. | + | * Next you will be prompted for the last sector you can just hit enter to accept the default which will utilize the remaining disk space. |
| - | * Type '' | + | * Type `w` to save the changes you have made. (There will be some error showing saying: " |
| - | * Reboot the Pi: '' | + | * Reboot the Pi: `sudo reboot` |
| - | * Once the system has reboot and you are back at the commandline enter: '' | + | * Once the system has reboot and you are back at the commandline enter: '' |
| - | * Reboot one more time. | + | * Reboot one more time. |
| - | * You can now verify that the system is using the full capacity of the SD Card by entering the following command: | + | * You can now verify that the system is using the full capacity of the SD Card by entering the following command: |
| #### Why This Works | #### Why This Works | ||
| Line 132: | Line 132: | ||
| So your Python script works on your machine. But when you port it to a freshly installed Arch Linux Arm on a Pi, all hell breaks loose as soon as a weird character pops up. Something like this shows up: | So your Python script works on your machine. But when you port it to a freshly installed Arch Linux Arm on a Pi, all hell breaks loose as soon as a weird character pops up. Something like this shows up: | ||
| < | < | ||
| - | Well, don't start modifying your Python code (as you said, it does not have that problem on your machine). | + | Well, don't start modifying your Python code (as you said, it does not have that problem on your machine). |
os/arch/arch_on_the_pi.1790080916.txt.gz · Last modified: by Julien Deswaef
