Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 10-02-2012, 04:20 PM   #1
LQ Newbie
Registered: Oct 2012
Posts: 3

Rep: Reputation: Disabled
write to 1 failed [No space left on device]

We are getting this error "write to 1 failed [No space left on device]" sometime while running a shell script on a shared computer node.

This happened when the following line is called in a busy waiting loop:
if test "$A='YES' -a $B='ttt' -a ` expr $c % 6` -eq 0

It happens to other system commands as well:
cat $file | head -1

My impression is some system resource is exhausted, but I can not figure it out.

Please note, this is different with "Write error: No space left on device", which is usually caused by disk space limitation, and can be reproduced with writing to /dev/full

My questions are below:
1) Does "1" here mean stdout? How could it be out of space?
2) How to reproduce this error message (exactly same one) with the available device under /dev ?
3) How the problem can be solved?


Last edited by cyberchip; 10-02-2012 at 04:22 PM.
Old 10-03-2012, 01:06 AM   #2
Registered: Nov 2004
Location: Russia (St.Petersburg)
Distribution: Debian
Posts: 666

Rep: Reputation: 68
you are using ksh? which version?
Old 10-03-2012, 11:09 AM   #3
LQ Newbie
Registered: Oct 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
Originally Posted by Ygrex View Post
you are using ksh? which version?
Thanks for your reply. We are using ksh and here is the version information:

ksh --version
version sh (AT&T Research) 93t+ 2010-06-21

Is there anything wrong with this particular version?

Old 10-16-2012, 10:55 AM   #4
LQ Newbie
Registered: Oct 2012
Posts: 1

Rep: Reputation: Disabled
I have same "write to 1 failed [No space left on device]" in ksh sometimes. Any idea what resource is exhausted.


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
Cannot write: No space left on device louk88 Linux - Newbie 9 04-22-2012 06:43 PM
No space left on device jarubyh Gentoo 3 01-11-2012 11:15 AM
No space left on device pinga123 Linux - Newbie 2 11-05-2009 12:47 AM
No space left on device even though it has free space? enine Linux - General 8 05-30-2007 04:22 PM
webmin troubles - Failed to write to /etc/webmin/module.infos.cache : No space left o coal-fire-ice Linux - Software 1 07-28-2005 10:08 AM

All times are GMT -5. The time now is 03:07 PM.

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