08-20-2018, 06:43 PM
(This post was last modified: 08-20-2018, 06:44 PM by Tim Curtis.
Edit Reason: typos
)
You could try using moOde's resizefs.sh command. Make sure you have a backup of the SD Card.
Boot up the SD Card with the 8GB image.
1. Change max partition size to 3GB in the command script
sudo sed -i "/PART_END=/c\PART_END=+3000M" /var/www/command/resizefs.sh
2. Resize the partition
sudo /var/www/command/resizefs.sh start
3. Reboot
sudo reboot
4. Change max partition size back to default (max size of media) in the command script
sudo sed -i "/PART_END=/c\PART_END=\"\"" /var/www/command/resizefs.sh
5. Verify partition size
df -h
-Tim
Boot up the SD Card with the 8GB image.
1. Change max partition size to 3GB in the command script
sudo sed -i "/PART_END=/c\PART_END=+3000M" /var/www/command/resizefs.sh
2. Resize the partition
sudo /var/www/command/resizefs.sh start
3. Reboot
sudo reboot
4. Change max partition size back to default (max size of media) in the command script
sudo sed -i "/PART_END=/c\PART_END=\"\"" /var/www/command/resizefs.sh
5. Verify partition size
df -h
-Tim