Solved

How to increase the /tmp directory in linux

Posted on 2010-09-04
4
927 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
  • 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

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…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

809 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