Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Reinitiate SD Card resize on boot

Featured Replies

Hello Igor,

 

your Image resizes itself upon boot to full SD card size. Is it possible to reenable this process again?

 

I know I simply could resize with GParted or similar tools. But I'd rather reuse it the way your image did on first boot.

 

Thank you.

  • Author

Well, that was easy. Thank you a lot!

It looks like the resize2fs command has been split out from firstrun.

 

Is it still possible to expand the filesystem as it did on first boot? I tried:

 

sudo systemctl enable resize2fs
sudo update-rc.d resize2fs defaults

sudo reboot

 

But it did not resize the partition.

update-rc not work for me, but standart online resize work.

first create backup image then:

sudo cfdisk /dev/mmcblk0

delete partition and re-create (this can be risky, parttition mist start from same sector - in this case 2048), save and then:

sudo resize2fs /dev/mmcblk0p1

if resize2fs can't resize, reboot and run resize2fs again

then you can check disk at next boot:

sudo touch /forcefsck

this is for expanding partition.

for shrinking (this is risky), first resize2fs with lower size, then delete and re-create partition with smaller size, but bigger than size after resize2fs, after that you can clone and expand partition to fill new card...

Edited by pr0fessor
better explanation

I was just looking at that again because of another post, and noticed that on line 66 $capacity is lowercase, and on line 73 it's uppercase ($CAPACITY)? Aren't shell script variables case sensitive? :wacko:  Thus making it so the 8GB condition never fires???

On 5/24/2017 at 1:21 PM, tkaiser said:

so an '/etc/init.d/resize2fs start' is the way I would prefer

 

Worked perfect for me thanks.

I have tried  '/etc/init.d/resize2fs start', but I receive "command not found error".

 

It would appear the resize2fs has been moved to a different location.

Sorry to pick up that old thread, but I want to add another resolution.

Yesterday I got from @martinayotte the hint, that `sudo systemctl start armbian-resize-filesystem` is working ( I checked it with Armbian 5.70 and it works).

On 1/23/2019 at 1:37 PM, uracolix said:

Sorry to pick up that old thread, but I want to add another resolution.

Yesterday I got from @martinayotte the hint, that `sudo systemctl start armbian-resize-filesystem` is working ( I checked it with Armbian 5.70 and it works).

Neither of above method didn't work for me. But your worked!

Hence, thank you!

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.