- Code: Select all
dd if=RuneAudio_bbb_0.2-beta.img of=/dev/mmcblk1 bs=1M
The correct image size should be 1,923,088,384 bytes or less, but instead I find it is 2,041,577,472 bytes. Anything I can do to squeeze a square into a round hole?
by NullDev » 25 Feb 2014, 20:22
dd if=RuneAudio_bbb_0.2-beta.img of=/dev/mmcblk1 bs=1M
by NullDev » 25 Feb 2014, 21:40
dd if=RuneAudio_bbb_0.2-beta.img of=/dev/mmcblk1 bs=1M
dd if=/dev/mmcblk1 of=RuneAudio_bbb_0.2-beta-correct.img bs=1M
by ACX » 25 Feb 2014, 22:37
by Midnight » 26 Feb 2014, 12:26
[root@runeaudiobbb ~]# dd if=/mnt/pub/RuneAudio_bbb_0.2-beta.img of=/dev/mmcblk1 bs=1M
dd: error writing ‘/dev/mmcblk1’: No space left on device
1833+0 records in
1832+0 records out
1920991232 bytes (1.9 GB) copied, 314.464 s, 6.1 MB/s
Name Flags Part Type FS Type [Label] Size (MB)
-----------------------------------------------------------------------------------------------------
Pri/Log Free Space 1.05
mmcblk0p1 Boot Primary vfat [boot] 67.11
mmcblk0p2 Primary ext4 [root] 1343.23
Pri/Log Free Space 509.61
by NullDev » 27 Feb 2014, 13:49
by miero » 27 Feb 2014, 21:29
by miero » 27 Feb 2014, 21:30
NullDev wrote:Thinking back on it, I guess that makes sense since the end of the partition is (hopefully) just zeros and shouldn't matter if it is truncated. The IT guy in me just tends to freak a bit when my command line tools dump errors. Thank you for the insight.
losetup /dev/loop0 RuneAudio_bbb_0.2-beta.img -o $((133120*512))
e2fsck -f /dev/loop0
resize2fs /dev/loop0 452352
losetup -d /dev/loop0
dd if=RuneAudio_bbb_0.2-beta.img of=RuneAudio_bbb_0.2-beta.fixed.img bs=512 count=$((133120+8*452352))
fdisk RuneAudio_bbb_0.2-beta.fixed.img
# delete partition 2
# create new partition 2; confirm default values; fdisk creates partition occuping whole available space
# save & exit
by alvin.chee » 10 Oct 2014, 15:45
support RuneAudio