Page 1 of 1

Expand Filesystem - command line

Posted: Sat Oct 21, 2017 1:02 pm
by MrBool
Raspi-config has option "Expand Filesystem". Is possible to run this command from command line?

Re: Expand Filesystem - command line

Posted: Sat Oct 21, 2017 1:39 pm
by klricks
MrBool wrote:
Sat Oct 21, 2017 1:02 pm
Raspi-config has option "Expand Filesystem". Is possible to run this command from command line?
Expand filesystem is rarely needed anymore as both NOOBs and the standalone install of Raspbian will automatically expand the filesystem on first boot.

raspi-config is just a script so you can browse the script to see how expand is done.

Code: Select all

nano /usr/bin/raspi-config

Re: Expand Filesystem - command line

Posted: Sat Oct 21, 2017 1:45 pm
by jahboater
Yes. Just do "sudo raspi-config"

Re: Expand Filesystem - command line

Posted: Sun Oct 22, 2017 4:33 pm
by MrBool
I have found solution:

Code: Select all

raspi-config --expand-rootfs

Re: Expand Filesystem - command line

Posted: Tue Nov 13, 2018 4:30 pm
by MuntyScruntfundle
Thanks for posting this answer. It's just saved me about 3 hours updating over 100 pis.

(Big smiley face)