A message for Linux.com registered users: We are in the process of making changes to the Linux forums. Starting Monday, 8/13/18 at 6:00 PM PT, you will be unable to access the forums. They will re-launch as soon as possible on Wednesday, 8/15/18 with new features and improved functionality. Thank you for your patience and stay tuned for the new improved forums.

August 26, 2010

"No space left on device" -rootfs image build err

Hi all

With mkimage tool, I have created an Root FileSystem image from an RFS source of size 174MB. The Image I got has a size of 10 MB approximately. I have used the mentioned script file, to make use of mkimage tool

This root FS is for ARM architecture, not for a general PC. So for cross compile purpose, I am using Suse host machine.

But it is throwing me an error while doing cp, " No space left on device". So I have come to one colclusion that the 10MB is not the actual size of the image.

cp: writing `rfs_image_v.4_mount/bin/cp': No space left on device

Please give me advice ..


I could create the image, using the following script



mkdir $RD_TEMP_DIR
#if == input file
dd if=/dev/zero of=$RD_TEMP_FILE bs=1024k count=20
/sbin/mke2fs -F -m0 $RD_TEMP_FILE
/sbin/tune2fs -c 0 $RD_TEMP_FILE
mount $RD_TEMP_FILE $RD_TEMP_DIR -o loop
cp -r -d $RD_DIR/* $RD_TEMP_DIR

umount $RD_TEMP_DIR

mkimage -A arm -T ramdisk -C gzip -n "Ramdisk" -d $GZ_FILE $RD_FILE


Click Here!