11-17-2016, 01:12 PM
(11-16-2016, 07:08 PM)pfeerick Wrote:(11-16-2016, 12:37 PM)bilylilyli Wrote: hi, how can I specify the path when I run the resize_rootfs.sh?
hi, I run those two command, and I attach the resuld. The first picture is for df -h and the second one is for fdisk -l.
When you look at the code for resize_rootfs.sh that I linked to earlier, it's pretty obvious that resize_rootfs.sh doesn't accept any parameters - it is hard-coded at lines 11 & 12 to resize "/dev/mmcblk0p2" - which is the second partition on your microSD card.
If you look back that df -h (or the fdisk) listing, you can see that you have /dev/mmcblk0p1 (50MB in size) and /dev/mmcblk0p2 (7GB in size). /dev/mmcblk0p1 is a boot partition, and if you look at the microsd on a Windows machine, that is all you will be able to see (without installing extra drivers / software). /dev/mmcblk0p2 is the actual data partition for linux, and that is the one that should be resized when you run resize_rootfs.sh. The problem now is in knowing why the resize has failed, as you said this is on a 16GB microSD, and it hasn't been resized up to use the full 16GB. Do you get any errors or output from resize_rootfs.sh when you run it again (make sure you're running as root).
Can you give the link to where you got the image from or which version it was, - as I indicated earlier, there was a older image that had a bug in resize_rootfs but that was fixed about three-four months ago, so I just want to make sure that image is not still linked as a current image somewhere.
hi, I have upload the screen capture for the output from resize_rootfs.sh. It did not show any errors, but nothing to do.
And the image I download is the "debian-mate-jessie-20160701-lenny.raposo-longsleep-pine64-8GB"
and this is the link
Debian Linux Jessie with Mate GUI Image [20160701] by lenny.raposo with Longsleep kernel
(Direct download from pine64.org)