LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 03-15-2006, 11:15 AM   #1
alexand
LQ Newbie
 
Registered: Mar 2006
Posts: 7

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


hi
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.
thanks.
 
Old 03-15-2006, 01:54 PM   #2
masonm
Senior Member
 
Registered: Mar 2003
Location: Following the white rabbit
Distribution: Slackware64 -current
Posts: 2,300

Rep: Reputation: 90
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
prasanta
Member
 
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
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
Originally Posted by alexand
hi
I have create a new partition to hold /tmp directory.
Why???

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
dracolich
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 1,274

Rep: Reputation: 63
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
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
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.
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:51 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
Open Source Consulting | Domain Registration