try following command
> sudo ./setup_sdcard.sh --mmc /dev/sdX --uboot bone_dtb
>
I was also getting same error, when I tried -
> sudo ./setup_sdcard.sh --mmc /dev/sdX --uboot bone
On Sunday, June 30, 2013 8:56:18 AM UTC+5:30, Crazy Monster wrote:
>
> Hi Robert, I am not having much luck with this .. I get the BLKRRPART:
> Device or resource busy error and "ERROR: sector 3069841408 does not have
> an msdos signature". Second time around, I did "dd if=/dev/zero
> of=/dev/mmcblk0 bs=512 count=1" as it suggested but no luck (2nd round).
> I then took out the SD card and reformatted as FAT32 with gparted, but
> still no luck (3rd run below), its hung. Wonder why it says resource is
> busy. I did have a tempfs mounted :
>
> tmpfs on /tmp/tmpfs type tmpfs (rw,size=3m)
> and I ran the script from inside /tmp but I dont think that matters ..
>
>
> root@arm:/tmp# ls
> beaglebone-black-copy-eMMC-to-microSD.sh tmpfs
> root@arm:/tmp# ./beaglebone-black-copy-eMMC-to-microSD.sh
> update-initramfs: Generating /boot/initrd.img-3.8.13-bone21
> grep: /boot/config-3.8.13-bone21: No such file or directory
> '/boot/initrd.img-3.8.13-bone21' -> '/boot/uboot/initrd.img'
> Image Name: initramfs
> Created: Sun Jun 30 02:54:14 2013
> Image Type: ARM Linux RAMDisk Image (uncompressed)
> Data Size:2709751 Bytes = 2646.24 kB = 2.58 MB
> Load Address:
> Entry Point:
> umount: /dev/mmcblk0p1: not mounted
> umount: /dev/mmcblk0p2: not mounted
> 16+0 records in
> 16+0 records out
> 16777216 bytes (17 MB) copied, 0.142181 s, 118 MB/s
> Checking that no-one is using this disk right now ...
> BLKRRPART: Device or resource busy
>
> This disk is currently in use - repartitioning is probably a bad idea.
> Umount all file systems, and swapoff all swap partitions on this disk.
> Use the --no-reread flag to suppress this check.
>
> Disk /dev/mmcblk0: 6 cylinders, 255 heads, 63 sectors/track
>
> sfdisk: ERROR: sector 3069370368 does not have an msdos signature
> /dev/mmcblk0: unrecognized partition table type
> Old situation:
> No partitions found
> New situation:
> Units = mebibytes of 1048576 bytes, blocks of 1024 bytes, counting from 0
>
>Device Boot Start EndMiB#blocks Id System
> /dev/mmcblk0p1 * 0+70-71- 72261e W95 FAT16 (LBA)
> /dev/mmcblk0p270+ 1874- 1805- 1847475 83 Linux
> /dev/mmcblk0p3 0 - 0 00 Empty
> /dev/mmcblk0p4 0 - 0 00 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).)
> root@arm:/tmp# ^C
>
>
>
>
> root@arm:/tmp# dd if=/dev/zero of=/dev/mmcblk0 bs=512 count=1
> 1+0 records in
> 1+0 records out
> 512 bytes (512 B) copied, 0.00515201 s, 99.4 kB/s
> root@arm:/tmp#
> root@arm:/tmp#
> root@arm:/tmp# ./beaglebone-black-copy-eMMC-to-microSD.sh
> update-initramfs: Generating /boot/initrd.img-3.8.13-bone21
> grep: /boot/config-3.8.13-bone21: No such file or directory
> '/boot/initrd.img-3.8.13-bone21' -> '/boot/uboot/initrd.img'
> Image Name: initramfs
> Created: Sun Jun 30 03:00:43 2013
> Image Type: ARM Linux RAMDisk Image (uncompressed)
> Data Size:2709750 Bytes = 2646.24 kB = 2.58 MB
> Load Address:
> Entry Point:
> umount: /dev/mmcblk0p1: not mounted
> umount: /dev/mmcblk0p2: not mounted
> 16+0 records in
> 16+0 records out
> 16777216 bytes (17 MB) copied, 0.0885991 s, 189 MB/s
> Checking that no-one is using this disk right now ...
> BLKRRPART: Device or resource busy
>
> This disk is currently in use - repartitioning is probably a bad idea.
> Umount all file systems, and swapoff all swap partitions on this disk.
> Use the --no-reread flag to suppress this check.
>
> Disk /dev/mmcblk0: 6 cylinders, 255 heads, 63 sectors/track
>
> sfdisk: ERROR: sector 3069546496 does not have an msdos signature
> /dev/mmcblk0: unrecognized partition table type
> Old situation:
> No partitions found
> New situation:
> Units = mebibytes of 1048576 bytes, blocks of 1024 bytes, counting from 0
>
>Device Boot Start EndMiB#blocks Id System
> /dev/mmcblk0p1 * 0+70-71- 72261e W95 FAT16 (LBA)
> /dev/mmcblk0p270+ 1874- 1805- 1847475 83 Linux
> /dev/mmcblk0p3 0 - 0 00 Empty
> /dev/mmcblk0p4 0 - 0 00 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 cr