(07-01-2016, 11:45 PM)lenny.raposo-pine64.pro Wrote: it's quite alright to run it again.
sudo -i
resize_rootfs.sh
reboot
then do the follwing
df -h
and send me the output aswell as the details on the card size you have in use
Here is Output of df -h. Used card is 32GB size.
debian@pine64:~$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mmcblk0p2 7.0G 4.4G 2.3G 66% /
devtmpfs 458M 0 458M 0% /dev
tmpfs 491M 156K 490M 1% /dev/shm
tmpfs 491M 7.0M 484M 2% /run
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 491M 0 491M 0% /sys/fs/cgroup
/dev/mmcblk0p1 50M 13M 38M 25% /boot
tmpfs 99M 4.0K 99M 1% /run/user/119
tmpfs 99M 24K 99M 1% /run/user/1000
/dev/sda1 3.8G 2.2M 3.8G 1% /media/debian/UUI
And here is output of resize script:
+ DEVICE=/dev/mmcblk0
+ PART=2
+ resize
+ fdisk -l /dev/mmcblk0
+ grep /dev/mmcblk0p2
+ awk {print $2}
+ start=143360
+ echo 143360
143360
+ set +e
+ fdisk /dev/mmcblk0
Welcome to fdisk (util-linux 2.25.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Command (m for help): Disk /dev/mmcblk0: 29 GiB, 31104958464 bytes, 60751872 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: 0xa2427f8e
Device Boot Start End Sectors Size Id Type
/dev/mmcblk0p1 40960 143359 102400 50M e W95 FAT16 (LBA)
/dev/mmcblk0p2 143360 14884863 14741504 7G 83 Linux
Command (m for help): Partition number (1,2, default 2):
Partition 2 has been deleted.
Command (m for help): Partition type
p primary (1 primary, 0 extended, 3 free)
e extended (container for logical partitions)
Select (default p): Partition number (2-4, default 2): First sector (2048-60751871, default 2048): Last sector, +sectors or +size{K,M,G,T,P} (143360-60751871, default 60751871): Last sector, +sectors or +size{K,M,G,T,P} (143360-60751871, default 60751871):
Do you really want to quit? + set -e
+ partx -u /dev/mmcblk0
+ resize2fs /dev/mmcblk0p2
resize2fs 1.43 (17-May-2016)
The filesystem is already 1842688 (4k) blocks long. Nothing to do!
+ echo Done!
Done!