Jump to content
  • 0

How to force resize of SD partition?



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.


Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

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)


After reboot at commandline:

resize2fs /dev/myospartition


Link to comment
Share on other sites

Armbian is a community driven open source project. Do you like to contribute your code?

  • 0

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:  
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

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


Link to comment
Share on other sites

  • 0

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


Link to comment
Share on other sites

  • 0

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



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



Link to comment
Share on other sites

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.

Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...