LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 01-13-2018, 03:13 AM   #1
parotta36
LQ Newbie
 
Registered: Dec 2017
Location: Madurai
Posts: 15

Rep: Reputation: Disabled
cannot create temp file for here-document: No space left on device


I'm currently build my LFS in a Slackware as a host.
I keep getting an error,
Code:
cannot create temp file for here-document: No space left on device
I tried restarting and deleting the files in /tmp but the error stills exists.
When this error occurred sometime back, I increased the size of the partition but it starts showing again.
This keeps me deterring from building my system. Please help ASAP. Thanks.

Full error message.
Code:
lfs:/mnt/lfs/sources/binutils-2.29/build$ ../configure --prefix=/tools --with-sysroot=$LFS --with-lib-path=/tools/lib --target=$LFS_TGT --disable-nls --disable-werror
../configure: line 1887: cannot create temp file for here-document: No space left on device
../configure: line 1899: cannot create temp file for here-document: No space left on device
../configure: line 1934: cannot create temp file for here-document: No space left on device
../configure: line 2104: cannot create temp file for here-document: No space left on device
../configure: line 2108: cannot create temp file for here-document: No space left on device
../configure: line 2112: cannot create temp file for here-document: No space left on device
../configure: line 2116: cannot create temp file for here-document: No space left on device
../configure: line 2120: cannot create temp file for here-document: No space left on device
../configure: line 2124: cannot create temp file for here-document: No space left on device
checking build system type... mkdir: cannot create directory '/tmp/cg2310-22864': No such file or directory
mkdir: cannot create directory '/tmp/cg-2310': No such file or directory
config.guess: cannot create a temporary directory in /tmp
configure: error: cannot guess build type; you must specify one
../configure: line 6: cannot create temp file for here-document: No space left on device
../configure: line 44: cannot create temp file for here-document: No space left on device
../configure: line 61: cannot create temp file for here-document: No space left on device
../configure: line 79: cannot create temp file for here-document: No space left on device
Code:
asdasd:~# df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/root        12G   12G     0 100% /
devtmpfs        2.0G     0  2.0G   0% /dev
tmpfs           2.0G  808K  2.0G   1% /run
tmpfs           2.0G  164K  2.0G   1% /dev/shm
cgroup_root     2.0G     0  2.0G   0% /sys/fs/cgroup
cgmfs           100K     0  100K   0% /run/cgmanager/fs
/dev/sda2       7.8G  2.2G  5.2G  30% /mnt/lfs
Code:
asdasd:~# ls /tmp/
kde-root  ksocket-root
asdasd:~# df /tmp/
Filesystem     1K-blocks     Used Available Use% Mounted on
/dev/root       12254384 11609360         0 100% /
Output of fdisk -l
Code:
Device     Boot    Start      End  Sectors Size Id Type
/dev/sda1  *        2048 25167871 25165824  12G 83 Linux
/dev/sda2       25167872 41943039 16775168   8G 83 Linux
 
Old 01-13-2018, 03:43 AM   #2
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Centos6.3/Debian
Posts: 2,229
Blog Entries: 1

Rep: Reputation: 347Reputation: 347Reputation: 347Reputation: 347
well slack is full up,

echo $LFS make sure thats correct

when you say you increased size did you mean slackware or lfs?

Last edited by spiky0011; 01-13-2018 at 03:45 AM.
 
Old 01-13-2018, 04:09 AM   #3
parotta36
LQ Newbie
 
Registered: Dec 2017
Location: Madurai
Posts: 15

Original Poster
Rep: Reputation: Disabled
$LFS is correct.
Previously, both the partitions were of 10GB. I increased the size by 2GB to the Slackware partition(/dev/sda1).
 
Old 01-13-2018, 09:31 AM   #4
Krejzi
Member
 
Registered: Jan 2015
Posts: 206

Rep: Reputation: Disabled
Your / partition is full, and that's where /tmp resides. Try mounting a tmpfs to /tmp (via fstab, at boot most likely) to workaround the space issues.
 
Old 01-13-2018, 09:35 AM   #5
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 6,227

Rep: Reputation: Disabled
I'd say 20 GB hard drive is not large enough for host OS and LFS build.
 
Old 01-13-2018, 09:59 AM   #6
parotta36
LQ Newbie
 
Registered: Dec 2017
Location: Madurai
Posts: 15

Original Poster
Rep: Reputation: Disabled
How large do you recommend I part the disk for the build?
I thought 20GB was plenty enough from all those articles claiming that so little space was enough for LFS.
Since I've not gone far, I'll build it in a new large sized partition. How big do you recommend it be? 50?
Just so you know, I'm using a VirtualBox.
 
Old 01-13-2018, 09:44 PM   #7
BW-userx
Senior Member
 
Registered: Sep 2013
Location: MID-SOUTH USA
Distribution: Solus / Slackware 14.2
Posts: 4,926

Rep: Reputation: 936Reputation: 936Reputation: 936Reputation: 936Reputation: 936Reputation: 936Reputation: 936Reputation: 936
if you're using VBox you can make it 100GB ( or whatever size that might be considered too much) if you have that room to spare and set it to grow dynamically so "theoretically" you may never use that full 100GB but its there just in case you need it.
 
Old 01-19-2018, 10:55 AM   #8
parotta36
LQ Newbie
 
Registered: Dec 2017
Location: Madurai
Posts: 15

Original Poster
Rep: Reputation: Disabled
I created a new machine with a new hard disk as suggested.
 
  


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
Need larger tmp space - error writing temporary file: No space left on device deepGC Linux - Newbie 6 06-06-2015 06:55 AM
Apache, No space left on device, Couldn't create the proxy mutex bigmen58 Linux - Server 6 09-27-2014 02:16 AM
mkdir: cannot create directory `abc': No space left on device UNIX Zyklon Linux - Server 2 05-14-2012 02:16 AM
cannot create temp file for here document giancarlo76 Linux - General 2 05-04-2006 03:03 PM
When I try to move a file to a dir it says No Space Left on Device. Help KrazyKid Linux - Software 1 06-16-2002 10:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 09:21 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration