0

Expanding the file system on the first boot of a fresh Raspberry Pi OS (buster) - or expanding it at all - has always been under discussion and there is a lot of material out there for how to do it.

But now, with the recent Raspberry Pi lite images, for me it looks like the file system is already expanded to max. When I check my disks with df -h, my root partition is 7.x MB on a 8 MB SD card, and 15.x MB on a 16 GB SD card. That's already all I need, right?

Is automatic resizing done automatically nowadays?

  • 1
    First boot expands the root FS to fill the whole SDCard. That's done with /etc/init.d/resize2fs_once which runs on first boot then gets deleted. That's there on RaspiOS Buster Lite. – Dougie Jun 21 at 20:03
  • automatic resizing done automatically - the clue is in the word "automatic" - yes, automatic resizing is done now, before (years ago now) there was no automatic resizing - therefore no automatic resizing was performed – Jaromanda X Jun 22 at 0:37
  • 1
    Why is it still in the menu of raspi-config? – SBF Jun 24 at 11:19
1

The answer is given in the comment of @Dougie:

First boot expands the root FS to fill the whole SDCard. That's done with /etc/init.d/resize2fs_once which runs on first boot then gets deleted. That's there on RaspiOS Buster Lite.

and in the comment of @JaromandaX:

automatic resizing done automatically - the clue is in the word "automatic" - yes, automatic resizing is done now, before (years ago now) there was no automatic resizing - therefore no automatic resizing was performed.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.