I am getting the exact same behavior on an Ubuntu machine for an SD card 
that has been expanded with grow_partition.sh. Ubuntu does not see more 
than 780 MB on the card. This is a brand new 8 GB card. I strongly suspect 
that the script is rendering SD cards unusable.

On Friday, June 10, 2016 at 8:00:32 PM UTC-7, RobertCNelson wrote:
>
> On Fri, Jun 10, 2016 at 8:39 PM, Vladimir Gusiatnikov 
> <[email protected] <javascript:>> wrote: 
> > And this is what happens when I ran grow_partition.sh on this brand new 
> 8 GB 
> > SD card that I just brought from the store and imaged with 8.4. Note the 
> > error message. After rebooting, df shows 4.1 GB of available space, 3.1 
> GB 
> > used. 
> > 
> > root@beaglebone:/opt/scripts/tools# ./grow_partition.sh 
> > Media: [/dev/mmcblk0] 
> > 
> > Disk /dev/mmcblk0: 243200 cylinders, 4 heads, 16 sectors/track 
> > Old situation: 
> > sfdisk: Warning: The partition table looks like it was made 
> >   for C/H/S=*/112/62 (instead of 243200/4/16). 
> > For this listing I'll assume that geometry. 
> > Units: 1MiB = 1024*1024 bytes, blocks of 1024 bytes, counting from 0 
> > 
> >    Device Boot Start   End    MiB    #blocks   Id  System 
> > /dev/mmcblk0p1   *     1   3399   3399    3480576   83  Linux 
> >                 start: (c,h,s) expected (0,33,3) found (0,32,33) 
> >                 end: (c,h,s) expected (1002,85,42) found (433,111,62) 
> > /dev/mmcblk0p2         0      -      0          0    0  Empty 
> > /dev/mmcblk0p3         0      -      0          0    0  Empty 
> > /dev/mmcblk0p4         0      -      0          0    0  Empty 
> > New situation: 
> > Units: 1MiB = 1024*1024 bytes, blocks of 1024 bytes, counting from 0 
> > 
> >    Device Boot Start   End    MiB    #blocks   Id  System 
> > /dev/mmcblk0p1   *     1   7599   7599    7781376   83  Linux 
> > /dev/mmcblk0p2         0      -      0          0    0  Empty 
> > /dev/mmcblk0p3         0      -      0          0    0  Empty 
> > /dev/mmcblk0p4         0      -      0          0    0  Empty 
> > Successfully wrote the new partition table 
> > 
> > Re-reading the partition table ... 
> > sfdisk: BLKRRPART: Device or resource busy 
> > sfdisk: The command to re-read the partition table failed. 
> > Run partprobe(8), kpartx(8) or reboot your system now, 
> > before using mkfs 
> > sfdisk: If you created or changed a DOS partition, /dev/foo7, say, then 
> use 
> > dd(1) 
> > to zero the first 512 bytes:  dd if=/dev/zero of=/dev/foo7 bs=512 
> count=1 
> > (See fdisk(8).) 
>
> This is the normal (no actual error above) ... Just reboot.. 
>
> I haven't cared enough too force sfdisk's output to /dev/null 
>
> Regards, 
>
> -- 
> Robert Nelson 
> https://rcn-ee.com/ 
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/962e4d7e-68c7-402f-b392-c10b79a9b40d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to