LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 08-26-2010, 06:59 AM   #1
sjremya
LQ Newbie
 
Registered: Aug 2010
Location: India
Distribution: open suse
Posts: 26

Rep: Reputation: 1
"No space left on device" - rootfs image build error


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.

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


Please give me advice ..

Regards
SJR

I could create the image, using the following script
/*************************
RD_DIR=$1
RD_FILE=$2

RD_TEMP_FILE=$RD_FILE"_temp"
RD_TEMP_DIR=$RD_FILE"_mount"

GZ_FILE=$RD_TEMP_FILE".gz"
mkdir $RD_TEMP_DIR

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
gzip $RD_TEMP_FILE

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


******************************/

Last edited by sjremya; 08-27-2010 at 12:03 AM.
 
Old 08-27-2010, 05:29 PM   #2
Elv13
Member
 
Registered: Apr 2006
Location: Montreal,Quebec
Distribution: Gentoo
Posts: 825

Rep: Reputation: 128Reputation: 128
You could replace /dev/zero with /dev/urandom to prevent delayed allocation from being used, but it is probably not your problem. When is the total size of the files you are trying to copy to the image? You have to take the FS journal size, superblock, root reserved space size, inode overhead and so on into account.
 
Old 08-30-2010, 12:16 AM   #3
sjremya
LQ Newbie
 
Registered: Aug 2010
Location: India
Distribution: open suse
Posts: 26

Original Poster
Rep: Reputation: 1
@Elv13 :

thanks for the reply....

My RFS source is of size of 174 MB.

I have modifies "dd if=/dev/zero of=$RD_TEMP_FILE bs=1024k count=20" with count=180 , so space problem during copying got solved.

Is it the correct way to solve this issue.?

Please help me out

Regards
SJR
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Having problem with /tmp "No space left on device" Error jim.thornton Linux - Newbie 13 05-26-2009 07:12 PM
"No space left on device" error 1984 Slackware - Installation 6 03-08-2008 03:30 PM
"No space left on device" error using SystemV shared memory clalfa Programming 5 07-09-2007 07:34 AM
"no space left on device" error. ekkasit Linux - General 5 07-08-2007 02:50 PM
"no space left on device" - But df shows free space! monita Linux - General 7 03-30-2004 01:14 PM


All times are GMT -5. The time now is 11:39 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration