Power & Source of Big Ideas

resize2fs not works @ startup

Moderators: chensy, FATechsupport

Hello dears
I have newly downloaded the "nanopi-duo_FriendlyCore-Xenial_4.14.0_20171208" image and wrote it on a 8G micro SD but "resize2fs" don't increase the partition size at start up. Older images do this automatically once @ system startup.

How can I solve this problem ?

root@H2MEP:~# fdisk -l
Disk /dev/mmcblk0: 7.4 GiB, 7910457344 bytes, 15450112 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xaf1e9903

Device Boot Start End Sectors Size Id Type
/dev/mmcblk0p1 49152 131071 81920 40M 83 Linux
/dev/mmcblk0p2 131072 7774207 7643136 3.7G 83 Linux
root@H2MEP:~# df -h
Filesystem Size Used Avail Use% Mounted on
udev 109M 0 109M 0% /dev
tmpfs 25M 3.0M 22M 13% /run
/dev/mmcblk0p2 3.6G 3.2G 419M 89% /
tmpfs 121M 0 121M 0% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 121M 0 121M 0% /sys/fs/cgroup
/dev/mmcblk0p1 40M 8.3M 32M 21% /boot
tmpfs 25M 0 25M 0% /run/user/0
After a long search I found that resize2fs works only 1 time after burning the primary image.
you could do that with fdisk and resize2fs.
You should write down the start-sector, delete the partition, create a new bigger partition, set boot flag
reboot
and then resize2fs....

I only did found the instructions in german:
http://martin-mueller.info/2013/05/06/r ... ergrosern/

but already used it on nano pi and orange pi

Who is online

In total there is 1 user online :: 0 registered, 0 hidden and 1 guest (based on users active over the past 5 minutes)
Most users ever online was 59 on Thu Aug 30, 2018 2:59 pm

Users browsing this forum: No registered users and 1 guest