Still no joy. :-(

I am getting an error when writing the 4GB image to a 4 GB SD card.

root@dennis-VirtualBox:/home/dennis/BBB/image-builder/deploy# xz -cd 
bone-debian-7.3-2014-01-14-4gb.img.xz > /dev/sdd
xz: (stdout): Write error: No space left on device

I expanded the image to check its size and it comes back as 3.7GB which 
should fit. 

So I then unmounted the two partitions and copied the image file to the SD 
card (/dev/sdd) again. This also failed

root@dennis-VirtualBox:/home/dennis/BBB/image-builder/deploy# cp 
bone-debian-7.3-2014-01-14-4gb.img /dev/sdd
cp: writing ‘/dev/sdd’: No space left on device
cp: failed to extend ‘/dev/sdd’: No space left on device

I then removed and reinserted the SD card. It mounted the BOOT partition on 
/dev/sdd1, but failed to mount the rootfs partition from /dev/sdd2 with the 
following error:

Error mounting /dev/sdd2 at /media/dennis/rootfs: Command-line `mount -t 
"ext4" -o "uhelper=udisks2,nodev,nosuid" "/dev/sdd2" 
"/media/dennis/rootfs"' exited with non-zero exit status 32: mount: wrong 
fs type, bad option, bad superblock on /dev/sdd2

Next I checked the size of the SD card. 

dennis@dennis-VirtualBox:~$ cat /sys/block/sdd/size
7626752

I believe this is units of 512B blocks. This corresponds to 3.904 GB or 
3.637 GiB.

The image file size is:

root@dennis-VirtualBox:/home/dennis/BBB/image-builder/deploy# ls -l 
bone-debian-7.3-2014-01-14-4gb.img
-rw-r--r-- 1 dennis dennis 3932160000 Jan 15 12:26 
bone-debian-7.3-2014-01-14-4gb.img

This size is 3.932 GB or 3.662 GiB (i.e. the 3.7GB reported earlier).

Therefore this image is slightly too large for my nominal 4GB SD card.

Can this image be resized so that it is small enough to fit? 

I know that the armhf.com images are 2 GB. These can be copied to a larger 
SD card and then fdisk is used to resize the second partition to fill the 
SD card, and finally the filesystem is resized to match the new partition 
size. This seems like a better approach than arbitrarily reducing the image 
size to fit on undersized SD cards, though it is more complicated.

Dennis Cote

-- 
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/groups/opt_out.

Reply via email to