Thank you for your donation!


Manually resize Raspbian to 3gb partition prior to building Moode
#1
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.
Reply
#2
Sure, just download Build Recipe 2.5 and skip to STEP 2 for reference purposes.
http://moodeaudio.org/downloads/prod/bui...e_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
Enjoy the Music!
http://moodeaudio.org | http://twitter.com/MoodeAudio | http://github.com/moodeaudio
Reply
#3
(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
Reply
#4
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.
Enjoy the Music!
http://moodeaudio.org | http://twitter.com/MoodeAudio | http://github.com/moodeaudio
Reply
#5
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.
Reply


Forum Jump: