Moode Forum
Manually resize Raspbian to 3gb partition prior to building Moode - Printable Version

+- Moode Forum (https://moodeaudio.org/forum)
+-- Forum: moOde audio player (https://moodeaudio.org/forum/forumdisplay.php?fid=3)
+--- Forum: Support (https://moodeaudio.org/forum/forumdisplay.php?fid=7)
+--- Thread: Manually resize Raspbian to 3gb partition prior to building Moode (/showthread.php?tid=337)



Manually resize Raspbian to 3gb partition prior to building Moode - Morias - 07-22-2018

When Moode was built by hand without Mosbuild there were some handy instructions to resize the Raspbian partition to 3gb which made it a nice size to backup the final image created.

The new Mosbuild method appears to require resizing the microsd to its full capacity when building unless building Moode on a separate microsd.

My question is, is there an easy way to resize the Moode partition to 3gb when using the direct build method?  I tried using Gparted but it breaks Raspbian.


RE: Manually resize Raspbian to 3gb partition prior to building Moode - Tim Curtis - 07-22-2018

Sure, just download Build Recipe 2.5 and skip to STEP 2 for reference purposes.
http://moodeaudio.org/downloads/prod/build_recipe_v2.5.zip

Here is a modified version of the procedure for doing just the 3GB partition resize.

Code:
1. Insert the SD Card into a Raspberry Pi and POWER UP.

cd ~
wget http://moodeaudio.org/downloads/prod/rel-stretch-r42.zip
sudo unzip ./rel-stretch-r42.zip

2. Expand the root partition to 3GB.

sudo cp ./rel-stretch/www/command/resizefs.sh ./
sudo chmod 0755 ./resizefs.sh
sudo sed -i "/PART_END=/c\PART_END=+3000M" ./resizefs.sh
sudo ./resizefs.sh start
sudo rm ./resizefs.sh
sudo rm -rf ./rel-stretch
sudo reboot

-Tim


RE: Manually resize Raspbian to 3gb partition prior to building Moode - AnnaBlume - 09-06-2018

(07-22-2018, 12:45 AM)Morias Wrote: When Moode was built by hand without Mosbuild there were some handy instructions to resize the Raspbian partition to 3gb which made it a nice size to backup the final image created.

The new Mosbuild method appears to require resizing the microsd to its full capacity when building unless building Moode on a separate microsd.

My question is, is there an easy way to resize the Moode partition to 3gb when using the direct build method?  I tried using Gparted but it breaks Raspbian.

Hi Morias,

I built up my installation both ways, manually via recipe v2.5 and automated via mosbuild.sh. If going the automated way and choosing the direct method, i.e. writing directly to the medium where the stretch OS is running, no resize of rootfs is required. The size is set automatically to 3.1 GB by the installation script.

Cheers, AnnaBlume


RE: Manually resize Raspbian to 3gb partition prior to building Moode - Tim Curtis - 09-07-2018

Only when using a second USB-SDCard does the Build script resize the rootfs partition to 3GB. When building directly to an SDCard, no resizing is performed, instead the script assumes that the fresh Raspbian Stretch Lite OS on the SDCard performs its own default automatic resize to max SD Card size when its booted.


RE: Manually resize Raspbian to 3gb partition prior to building Moode - johannes - 09-07-2018

By the way - resizing !
Is there a way to backup just the used part of a SD-Card, (Imagewriter always produces full images ) because I'v only got 16GB ones, which is quite awkward to resize via Linux, not to mention the time to read it in.