Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-23-2014, 01:58 PM   #1
Registered: Nov 2013
Posts: 31

Rep: Reputation: Disabled
Question about Disk Space vs. /tmp space


I have a question regarding computer space.

so I am in need of computer disk space (Harddrive space) of 100gb. From the available resources I read that the system has /tmp space of 250GB ...

So I am wondering what the difference is when they provide information about the /tmp disk space.
and disk space hard drive.

So the /tmp space is the temporary storage that stores temporary data, and when jobs complete, the tmp is cleared.\\
the disk space, actually preserves and stores this data.

Old 01-23-2014, 02:51 PM   #2
LQ Guru
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Linux Mint 17, Debian 8
Posts: 7,864

Rep: Reputation: 311Reputation: 311Reputation: 311Reputation: 311
The /tmp space is used as a scratch work area. Files in /tmp are usually cleaned out occasionally. My system deletes all files in /tmp on each boot in case a program finished without cleaning up its files in /tmp (or a system crash can leave files in /tmp).

The relationship between available disk space and space available in /tmp depends on your partition arrangement. Some people create a separate partition for /tmp. That way a run away program using /tmp space cannot use up all available disk space. A run away program can only use up all of /tmp space. When /tmp is a separate partition then the free disk space in the / partition (and other partitions such as /home) is a separate thing from the space in the /tmp partition.

When /tmp is located in the / partition then the free disk space in / is available for use by /tmp or any other files that you want to create in the / partition. In this case it is possible for a run away program using /tmp files to use up all of the free space in the / partition.

Other partitions that you might create are /home and /var. If a user run program runs away creating files then it can only use up all of the space in the /home partition. If a program runs away issuing log messages then it can fill up the entire /var partition with log messages.

If you choose to create separate partitions for /tmp or any other directory then you have to allocate enough space for that partition that it won't fill up in normal usage. So to answer your question you need to know how much free space you have in each of your partitions to see if you have the partitions allocated correctly.

Steve Stites

Last edited by jailbait; 01-23-2014 at 02:57 PM.
Old 01-23-2014, 03:12 PM   #3
LQ Guru
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,569

Rep: Reputation: 2129Reputation: 2129Reputation: 2129Reputation: 2129Reputation: 2129Reputation: 2129Reputation: 2129Reputation: 2129Reputation: 2129Reputation: 2129Reputation: 2129
If you post the output of "fdisk -l", "mount" and "df -h" it will help us understand your current partition layout.

No Linux installer would ever assign /tmp its own 250GB partition, so either you're not reading the output correctly or you manually partitioned your system during installation and decided to give /tmp an unreasonably huge amount of space.

Last edited by suicidaleggroll; 01-23-2014 at 03:14 PM.
1 members found this post helpful.


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
[SOLVED] Not enough free disk space on /tmp windstory Linux - Newbie 18 08-06-2013 03:33 AM
[SOLVED] Disk space issue on /tmp ext3 partition on Fedora release 7 fboule Fedora 2 12-04-2012 04:35 AM
"No space left on device" error on /tmp. How to increase space on /tmp? anilp Linux - Newbie 12 01-24-2011 02:40 PM
KDE will not start /tmp out of disk space Tony Littlejohn Mandriva 16 02-16-2009 03:08 AM
Newbie - X won't let me login because not enough free disk space in /tmp sart1 Linux - Software 1 06-02-2005 11:22 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:51 AM.

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