LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 06-03-2005, 09:57 AM   #1
masand
Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58
problem with mkinitrd


hi

suddenly out of the blue i am facing this problme whilre making intrd images
i have done this a lot of time and now i am facing this problem

root@darkstar:/usr/src/linux-2.6.11.8# mkinitrd -k 2.6.11gm142 -o /boot/initrd-2.6.11gm142.img
cp: cannot create regular file `/tmp/tmp.1DbU0G/rootdev': No space left on device
cp: cannot create regular file `/tmp/tmp.1DbU0G/rootfs': No space left on device

i got he same error for compiling 2.4 kernel as well
it was going fine some time back

any suggestions

regards
 
Old 06-03-2005, 10:21 AM   #2
MensaWater
Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 5,943
Blog Entries: 5

Rep: Reputation: 753Reputation: 753Reputation: 753Reputation: 753Reputation: 753Reputation: 753Reputation: 753
"no space left on device" is telling you your filesystem is full.

Do df -k /tmp/tmp.1DbU0G to see what it is mounted as and how full it is:

Example output:
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/sda9 472984 10739 437824 3% /tmp


If you see Use% at 100% then you need to clean up. It is possible that it is not at 100% when you start but is getting there during the process. If this is the case you can monitor it by opening a separate window and running:

while true
do
df -k tmp.1DbU0G
sleep 5
done

This will repeat the output every 5 seconds. (Hit ctrl-C when done to break out of it.) If you see it hit 100% you need to clean up your filesystem.
 
Old 06-03-2005, 11:24 AM   #3
masand
Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Original Poster
Rep: Reputation: 58
well i thought of this and i have around 1 Gb of space left

df -k /tmp/
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda4 5020152 3928768 1091384 79% /
 
Old 06-03-2005, 12:29 PM   #4
MensaWater
Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 5,943
Blog Entries: 5

Rep: Reputation: 753Reputation: 753Reputation: 753Reputation: 753Reputation: 753Reputation: 753Reputation: 753
You're assuming the subdirectory is part of /tmp. That's why I suggested you specify it in your df -k.

Also noted a type in the for loop. Should have said /tmp/...
 
Old 06-03-2005, 01:27 PM   #5
masand
Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Original Poster
Rep: Reputation: 58
tried that

it is never going high in space

thanks for suggestion

let me try the same kernel config on differetn Distro

regards
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
mkinitrd problem WARNING: Could not find module fo xaos5 Slackware 2 12-31-2004 05:54 AM
kernel 2.6.6 mkinitrd problem ziox Linux - Software 0 07-13-2004 07:48 PM
mkinitrd problem. Partial solution. Help! wazungy Mandriva 3 03-21-2004 10:21 AM
No Mkinitrd?????? sovietpower Linux - General 5 02-08-2004 05:10 AM
mkinitrd problem - kernel upgrade newbie irvken Linux - Newbie 31 12-23-2003 12:03 PM


All times are GMT -5. The time now is 02:34 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