Solved

How to increase the /tmp directory in linux

Posted on 2010-09-04
4
945 Views
Last Modified: 2012-05-10
While installing the Oracle Software in Linux it Show the Temporary Folder already full. Due to that reason unable to install the Software.


Please let me know How To increase the Temporary fold Size in Red Hat Linux 5
0
Comment
Question by:banumyname
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 2

Expert Comment

by:Orcen
ID: 33605307
Here's a procedure to make a tmp file on /dev, if you need it bigger you can increase the 'count' size, for example.

cd /dev/; dd if=/dev/zero of=tmpMnt bs=1024 count=800000

/sbin/mke2fs /dev/tmpMnt

cp -Rp /tmp /tmp_backup
mount -o loop,noexec,nosuid,rw /dev/tmpMnt /tmp
chmod 0777 /tmp
cp -Rp /tmp_backup/* /tmp/


vi /etc/fstab

/dev/tmpMnt /tmp ext2 loop,noexec,nosuid,rw 0 0
none /dev/shm tmpfs noexec,nosuid 0 0

mount -o remount /dev/shm

rm -rf /var/tmp/
ln -s /tmp/ /var/
chmod 0777 /tmp
0
 
LVL 34

Accepted Solution

by:
Duncan Roe earned 500 total points
ID: 33608006
Your problem may be the way /tmp is mounted just now. Does mount as a command by itself show /tmp as a separate mount point? With file system type tmpfs? It will default to a limit of half of physical RAM if so. If you remove /tmp from /etc/fstab, it will consume space on the / file system as required, which may be fine for you if there is plenty of room in /. Otherwise if you have a small / but some other partition with plenty of room, then use a bind mount to put /tmp on that partition.
The solution proposed by Orcen permanently consumes 800MB from / - in fact less than tmpfs if you have 2GB or more of RAM
0
 
LVL 34

Expert Comment

by:Duncan Roe
ID: 33610051
This is an example bind mount from /etc/fstab on my system:
/sda2/tmp        /tmp             none        bind             0   0

Open in new window

0
 

Author Closing Comment

by:banumyname
ID: 33617312
i got the solution
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question