Help answer threads with 0 replies.
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 03-15-2006, 11:15 AM   #1
LQ Newbie
Registered: Mar 2006
Posts: 7

Rep: Reputation: 0
which is the best filesystem for /tmp ?

I have create a new partition to hold /tmp directory.
The question is: which is the best filesystem for /tmp and which mount options.
I am using reiserfs with notail and noatime options in fstab.
Old 03-15-2006, 01:54 PM   #2
Senior Member
Registered: Mar 2003
Location: Following the white rabbit
Distribution: Slackware64 14.2 Solus
Posts: 2,264

Rep: Reputation: 51
For a /tmp directory, it really doesn't matter all that much. A simple ext2 with defaults would work fine IMHO
Old 03-15-2006, 02:18 PM   #3
Registered: Mar 2005
Location: India
Distribution: Debian
Posts: 368

Rep: Reputation: 37
Ext2 partition is fine. But when you mount it, mount the partition with noexec.
Old 03-15-2006, 02:19 PM   #4
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Originally Posted by alexand
I have create a new partition to hold /tmp directory.

A Linux install does not benefit from having many partitions without specific reasons.

The only time you would need to use any filesystem except the one for the main tree would be for a shared data partition (FAT32 to share easily with Windows)
Old 03-15-2006, 05:27 PM   #5
Senior Member
Registered: Jul 2005
Distribution: Slackware
Posts: 1,194

Rep: Reputation: 50
If you don't expect /tmp to store anything you want to keep between boots you can try tmpfs.
Old 03-15-2006, 08:39 PM   #6
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,284

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
On servers it is useful to have /tmp mounted noexec and nosuid (as was mentioned above). If it's a plain normal /tmp partition then there's no real reason to do anything more special. If you're expecting to use it very intently, you might be interested in looking at XFS or ReiserFS, particularly if you'll be creating lots and lots (like tens of thousands) of small files. Those filesystems have a reputation for being particularly goos with that sort of workload.


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
kde, /tmp, /var/tmp and all that garba Linux - Software 4 06-17-2005 12:31 PM
Create file using 'touch ./tmp.$$', file tmp.3941 is created, why? huangyanfeng Linux - General 1 04-13-2004 03:36 AM
"/tmp/sv001.tmp/setup.bin" error while installing OO1.1.0 Choey Linux - Software 0 09-16-2003 04:52 PM
Numerous scb_*.tmp files in /tmp dburk Programming 3 08-18-2003 04:28 PM
Newbie question - /tmp /var/tmp Mr happy Linux - Security 3 01-27-2003 01:03 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:59 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