You are not logged in.

#1 2004-03-21 00:11:29

whol
Member
Registered: 2004-02-04
Posts: 155

/tmp directory is too small

When I try to download an ISO file from linuxiso.org using mozilla-firefox, I run out of space on the /tmp partition.  It's my understanding that Arch maps /tmp to the swap partition, which after taking the Arch default duriing install, is about half the size of my RAM = 256M.

Is there a way to re-direct /tmp to another partition (like from within fstab), or increase the size of my swap file?  I'm afraid my PC wont boot if I guess wrong on the swap file configuration.

thx

Offline

#2 2004-03-21 00:43:40

elocal
Member
Registered: 2004-03-18
Posts: 54
Website

Re: /tmp directory is too small

Use /var/tmp, as I do, or read this post: http://bbs.archlinux.org/viewtopic.php? … =space+tmp.

If ou really want /tmp to be big, you could always not mount /dev/shm in /tmp  wink .

Offline

#3 2004-03-21 01:24:05

Xentac
Forum Fellow
From: Victoria, BC
Registered: 2003-01-17
Posts: 1,797
Website

Re: /tmp directory is too small

Or download the iso with wget.


I have discovered that all of mans unhappiness derives from only one source, not being able to sit quietly in a room
- Blaise Pascal

Offline

#4 2004-03-21 06:34:25

whol
Member
Registered: 2004-02-04
Posts: 155

Re: /tmp directory is too small

How would I go about using /var/tmp?  I'm a newby, is that just changing an entry in the /etc/fstab file?  If so, change it to what?  VMWare is also complaining I don't have enough /tmp space, so I need to figure out something.  I have 512MB, a 80GB boot drive, and 2 x160GB data drives.

thx

Offline

#5 2004-03-21 07:44:16

whol
Member
Registered: 2004-02-04
Posts: 155

Re: /tmp directory is too small

ree showed me how to fix this, I just put a # in front of the "tempfs" line in my /etc/fstab file.  Now I dont run out of /tmp space anymore.

thx

Offline

#6 2004-03-21 08:04:13

alcattle
Member
Registered: 2004-03-08
Posts: 32

Re: /tmp directory is too small

I had this problem also, I found that Moz is broken, as a FTP client. Use the HTTP repos or use a "real" FTP client


Big Al in Seattle

http://www.easylinuxguide.com

Very N00b Friendly Group of people

Offline

#7 2004-03-23 22:44:08

apeiro
Daddy
From: Victoria, BC, Canada
Registered: 2002-08-12
Posts: 771
Website

Re: /tmp directory is too small

You can raise the size limit in /etc/fstab:

tmpfs                  /tmp      tmpfs     size=2G,nr_inodes=10k  0      0

Then remount it:

# mount -o remount /tmp

Be careful with the size, though.  Since it exists in RAM, you don't want a tmpfs partition to be bigger than your RAM, otherwise the big bad OOM killer will come along and start assassinating your processes.

Offline

#8 2004-03-24 01:35:42

slyski
Member
From: Cheese Head Land
Registered: 2004-01-11
Posts: 60

Re: /tmp directory is too small

i found this a problem also when i first started using arch.
but i don't blame arch as it sounds like something linux users of all kinds wanted and it was created using part of your valuable ram sad . I never liked that idea from the start so i fixed it by doing the following:

i usually make a large partition to do dirty work like things that change alot. the /var directory sounded like the a perfect place to store temporary files like /tmp  wink  and doing kernel rebuilds.
take the /var/tmp directory and symbolic link it to / (root) as /tmp. i also put the /usr/src directory into /var and linked it back to /usr. that is where i do software builds along of cource kernel builds.
i also believe that the /usr and / partition don't get fragmented as much this way.
take that silly tmpfs thing out of fstab.
i know this isn't kosher to the linux folks and there directory laws, but that is why i use linux.
freedom of choice  big_smile .

slyski


Joey: If a cow passes away from natural causes can I eat it.
Pheobe: Not if I get there first.

Offline

#9 2015-05-11 10:41:47

kitarek
Member
From: Poznan/Poland
Registered: 2014-07-11
Posts: 7
Website

Re: /tmp directory is too small

Actually I almost never don't care what is in my RAM as far as non usable pages are swapped to disk so they can be there even forever.  The nice feature of tmpfs is that /tmp after reboot will be cleaned up without doing any magical hacks like rm :-)


Lenovo ThinkPad X1 Carbon 3 20BS006DPB - Core i7 5500U / 14,1 WQHD / 8192 RAM / 512 SSD SATA PCIe / Intel HD 5500
Lenovo ThinkPad T400, model 647314G / Core2 Duo CPU  P8700@ 2.53GHz / 8 GB DDR RAM / 223,6 GiB HDD SSD OCZ-AGILITY3 / Intel GM45 Chipset

Offline

#10 2015-05-11 10:54:45

Alad
Wiki Admin
Registered: 2014-05-04
Posts: 1,194

Re: /tmp directory is too small

11 years, is that a record?


Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby
User:Alad

Offline

#11 2015-05-11 11:10:13

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 5,560

Re: /tmp directory is too small

Alad wrote:

11 years, is that a record?

Seem like it.

Kitarek, please let dead topics rest in peace.

https://wiki.archlinux.org/index.php/Fo … bumping.22

Closing.


Sakura:-
Mobo: ASUS P8Z77-V PRO // Processor: Intel Core i7-3770K 3.4GHz // GFX: nVidia GeForce GTX 970 Ti // RAM: 32GB (4x 8GB) Corsair DDR3 (@ 2133MHz) // Storage: 1x 3TB Seagate SATAII 5x 1TB Samsung SATAII, 2x 120GB Corsair SSD

Offline

Board footer

Powered by FluxBB