On Wed, Sep 24, 2014 at 1:19 PM,  <[email protected]> wrote:
> This is what I get
>
>
> root@beaglebone:/var/lib/cloud9# df -h
> Filesystem Size Used Avail Use% Mounted on
> rootfs 1.6G 1.6G 0 100%
> udev 10M 0 10M 0% /dev
> tmpfs 100M 600K 99M 1% /run
> /dev/mmcblk0p2 1.6G 1.6G 0 100% /
> tmpfs 249M 0 249M 0% /dev/shm
> tmpfs 249M 0 249M 0% /sys/fs/cgroup
> tmpfs 100M 0 100M 0% /run/user
> tmpfs 5.0M 0 5.0M 0% /run/lock
> /dev/mmcblk0p1 96M 70M 27M 73% /boot/uboot
>
> This is what I get when trying to use unused space
>
> root@beaglebone:/opt/scripts/tools# sudo ./grow_partition.sh
> Media: [/dev/mmcblk0]
> Disk /dev/mmcblk0: 474496 cylinders, 4 heads, 16 sectors/track
> Old situation:
> Units = mebibytes of 1048576 bytes, blocks of 1024 bytes, counting from 0
>
> Device Boot Start End MiB #blocks Id System
> /dev/mmcblk0p1 * 1 96 96 98304 e W95 FAT16 (LBA)
> /dev/mmcblk0p2 97 14827 14731 15084544 83 Linux
> /dev/mmcblk0p3 0 - 0 0 0 Empty
> /dev/mmcblk0p4 0 - 0 0 0 Empty
> New situation:
> Units = mebibytes of 1048576 bytes, blocks of 1024 bytes, counting from 0
>
> Device Boot Start End MiB #blocks Id System
> /dev/mmcblk0p1 * 1 96 96 98304 e W95 FAT16 (LBA)
> /dev/mmcblk0p2 97 14827 14731 15084544 83 Linux
> /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 ...
> BLKRRPART: Device or resource busy
> The command to re-read the partition table failed.
> Run partprobe(8), kpartx(8) or reboot your system now,
> before using mkfs
> 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).)

Yeap, just reboot (sudo reboot)

Then run:

sudo resize2fs /dev/mmcblk0p2

and it should be fine..

Regards,

-- 
Robert Nelson
http://www.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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to