1 1
AlexandrBu

How to force resize of SD partition?

Recommended Posts

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!

 

Share this post


Link to post
Share on other sites

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

 

Share this post


Link to post
Share on other sites

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!

 

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

 

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
1 1