Assuming you are already root (sudo su - root) run the following as indicated by fuzz. (I use partprobe instead)
1) fdisk /dev/mmcblk0p2
a) type p to print out what is currently configured and to save so you can recreate the partition if you screw up
Device Boot Start End Sectors Size Id Type
/dev/mmcblk0p1 * 2048 206847 204800 100M b W95 FAT32
/dev/mmcblk0p2 206848
b) d (press enter)
c) 2 (press enter) [you have now deleted partition 2 from the partition table - but don't worry the OS is still working...]
d) n (press enter) [create a new partition 2]
e) p (press enter)
f) 2 (press enter)
g) choose starting sector as the same (in this case 206848, which it probably defaults to but matches the p statement above)
h) leave default as the very large number, which should now fill all 32gb (or however big) of the SDHC vs the normal 3-4gb
2) fdisk will moan about having to run partprobe or kpartx, so run "partprobe" and hit enter - if you don't have partprobe installed run "apt-get install parted" and then run partprobe
3) resize2fs /dev/mmcblk0p2
4) you should be good without rebooting -- but why not run synq and reboot to make sure there weren't any surprises!Statistics: Posted by zynqfan — Sun Jun 19, 2016 6:43 pm
]]>