LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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, 02:13 AM   #1
parotta36
Member
 
Registered: Dec 2017
Location: Madurai
Distribution: Linux Mint | Slackware
Posts: 59

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, 02:43 AM   #2
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
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 02:45 AM.
 
Old 01-13-2018, 03:09 AM   #3
parotta36
Member
 
Registered: Dec 2017
Location: Madurai
Distribution: Linux Mint | Slackware
Posts: 59

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, 08:31 AM   #4
Krejzi
Member
 
Registered: Jan 2015
Posts: 215

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, 08:35 AM   #5
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
I'd say 20 GB hard drive is not large enough for host OS and LFS build.
 
Old 01-13-2018, 08:59 AM   #6
parotta36
Member
 
Registered: Dec 2017
Location: Madurai
Distribution: Linux Mint | Slackware
Posts: 59

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, 08:44 PM   #7
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
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, 09:55 AM   #8
parotta36
Member
 
Registered: Dec 2017
Location: Madurai
Distribution: Linux Mint | Slackware
Posts: 59

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


Reply



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 05:55 AM
Apache, No space left on device, Couldn't create the proxy mutex bigmen58 Linux - Server 6 09-27-2014 01:16 AM
mkdir: cannot create directory `abc': No space left on device UNIX Zyklon Linux - Server 2 05-14-2012 01:16 AM
cannot create temp file for here document giancarlo76 Linux - General 2 05-04-2006 02: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 09:06 PM

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

All times are GMT -5. The time now is 10:07 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
Open Source Consulting | Domain Registration