Whats all this talk of "debugging vmware/virtualbox" all about ?
On Wed, Jan 15, 2014 at 5:10 PM, Robert Nelson <[email protected]>wrote: > On Wed, Jan 15, 2014 at 5:45 PM, Dennis Cote <[email protected]> wrote: > > > > > > 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. > > how about just plain old: > > sudo dd if=./bone-debian-7.3-2014-01-14-4gb.img of=/dev/sdd > > > > 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). > > Other than the fact i HATE debugging VMware/VirtualBox with a > passion.. What brand are these 4GB microSD cards? > > The magic number I've been using is 3750, which is working on > SanDisk/Kingston/Samsung 4GB > > https://github.com/RobertCNelson/omap-image-builder/blob/master/tools/setup_sdcard.sh#L1540 > > > > > 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. > > If you want a 2Gb image, pass the "--img" option vs the "img-4gb" > option to setup_sdcard.sh.. > > 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/groups/opt_out. > -- 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.
