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.

How to force resize of SD partition?

Featured Replies

Hello, please help

 

I moved ARMBIAN 5.60 stable Debian GNU/Linux 8 (jessie) 3.4.113-sun8i from 2Gb SD to 16Gb and cant do resize i tried everthing from others topics but it does not work anymore!

(i need 3.4.113 for acpid)

 

I put this scipt into /etc/init.d but it does not work

sudo sh ./resize2fs start
[....] Starting resize2fs (via systemctl): resize2fs.serviceJob for resize2fs.service failed. See 'systemctl status resize2fs.service' and 'journalctl -xn' for details.
 failed!

 

Solved by F4VSJ

normally (when moving manually from a small to a bigger sdcard) İ do the following:

fdisk /dev/myospartition

d for delete the partition

n for new primary partition

set size to 95% of the max sector/cluster

set partition type to 83 linux

(leave ext4 marker intact = dont delete)

set boot flag for partition

w for write and exit

(os will use the old partition data until reboot)

reboot

After reboot at commandline:

resize2fs /dev/myospartition

 

  • Author

Thank you but its to complicated(for me), but i just resized it in Gparted(on pc with Ubuntu) and it works!


I wish to have some script for that in Armbian (like in Lubuntu)

Welcome to ARMBIAN 5.60 stable Debian GNU/Linux 8 (jessie) 3.4.113-sun8i   
System load:   1.00 0.28 0.09      Up time:       0 min        
Memory usage:  7 % of 1000MB     IP:            192.168.1.229
CPU temp:      30°C               
Usage of /:    9% of 14G        

[ General system configuration (beta): armbian-config ]

Last login: Mon Nov 12 20:16:45 2018 from 192.168.1.214

root@orangepipcplus:~# resize2fs /dev/mmcblk0p1
resize2fs 1.42.12 (29-Aug-2014)
The filesystem is already 3711232 (4k) blocks long.  Nothing to do!

 

I have the same problem

I cannot resize the fs to the larger SD card

 

neither the command

update-rc.d firstrun defaults

works, it returns

update-rc.d: error: unable to read /etc/init.d/firstrun

 

nor the above mentioned resite2fs, it retirnes the above mentioned "Nothing to do!"

 

 

Thanks for any help

Rainer

  • Solution

It's easy and works for all the Orange Pi and pc

run the following script

enter the exact text below in a terminal (as root)

#  /etc/init.d/resize2fs start

wait 1 minute

reboot

login

and again as root:

#  /etc/init.d/resize2fs start

and check with:

#  fdisk -l

Than you will see the partition has the size of the whole sd card

I did it already with a bunch of systems, not hundreds but 40-50...

hans f4vsj

 

 

to force partition resize at reboot:

 

sudo systemctl enable armbian-resize-filesystem

sudo reboot

 

 

I wish there could be tool in armbian-config to resize partion(s) on SD card and other disk like raspberry pi config tool has.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

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.