LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 07-27-2008, 05:11 PM   #1
RAH104
Member
 
Registered: Jun 2008
Posts: 33

Rep: Reputation: 15
Question Increase /tmp


Hello,

What is the easiest way to increase the size of /tmp on a CentOS 5 server? I have done this before but forget how.

Thanks.
 
Old 07-27-2008, 05:22 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Jessie, Linux Mint 17
Posts: 7,750

Rep: Reputation: 271Reputation: 271Reputation: 271
Do you meant how to increase the size of a partition dedicated to /tmp? If so then post your partition scheme from:

fdisk -l

and post /etc/fstab. Then somebody might be able to describe the best way for you to do it.

--------------------
Steve Stites
 
Old 07-27-2008, 05:22 PM   #3
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
I have never used CentOS so I don't know off the top of my head, but is /tmp mounted on tmpfs or on a separate partition (check with the "mount" command).
 
Old 07-27-2008, 06:09 PM   #4
RAH104
Member
 
Registered: Jun 2008
Posts: 33

Original Poster
Rep: Reputation: 15
[root@server ~]# fdisk -l

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 25 200781 83 Linux
/dev/sda2 26 407 3068415 82 Linux swap / Solaris
/dev/sda3 408 60801 485114805 83 Linux


[root@server ~]# mount
/dev/sda3 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/sda1 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)


FSTAB:

LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
LABEL=SWAP-sda2 swap swap defaults 0 0
 
Old 07-27-2008, 08:59 PM   #5
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
Well, according to that /tmp is just a normal directory in your root filesystem, so there should be no inherent size limitation besides the size of the partition / is mounted on.
 
Old 07-27-2008, 09:55 PM   #6
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Jessie, Linux Mint 17
Posts: 7,750

Rep: Reputation: 271Reputation: 271Reputation: 271
Adding to what MS3FGX said: If you want to increase the amount of space available to /tmp either make the / partition bigger or mount /tmp on its own large, empty partition.

-------------------
Steve Stites
 
  


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
How to increase tmp partition - mount loop device grim2 Linux - Server 2 03-10-2008 09:27 AM
how to securing /tmp , /var/tmp and /dev/shm hackintosh Linux - Security 7 10-18-2007 12:26 AM
increase /tmp space to 1GB gobbs Linux - Newbie 3 01-22-2007 02:08 AM
/tmp partition won't increase? I_AM Linux - General 1 03-19-2005 01:18 AM
Numerous scb_*.tmp files in /tmp dburk Programming 3 08-18-2003 05:28 PM


All times are GMT -5. The time now is 09:14 PM.

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