Tmpfs instead of swapfile

I am an old newbie here.
I have been using Endeavour OS last few weeks and I like it!
A couple of years ago I came to the conclusion that “vanilla” Arch takes more time than I have. Then I found Archlabs, and I like that very much but the mirrors for their repo are too slow (50k at the most) for me up here in North Scandinavia!
EOS is working very well and less then 10 min to install!
I had som troubles installing on an old mac-mini 4,1 (mid 2010) but I found an Ubuntu-tweak to make it work! Nouveau is difficult on my mac-mini.
Now I am writing from a HP-ProBook 640 G1 and it is very compatible with linux!


I see in fstab tmpfs. Is that acting as swapspace instead of swapfile/swap partition?


I am not sure you should be seeing it in /etc/fstab. At least, I don’t have it in my EOS install. Are you sure you didn’t see it somewhere else like df or mount?

No, tmpfs is used to mount a filesystem in memory. This is typically done to create a small filesystem which can be read/written rapidly.

1 Like

Ah now I know what it is! Itś Firefox on tmpfs!
Then it would probably be a good idea to create a swapfile here!

Thanks for answer and support!


1 Like

@dalto, I installed Endeavour from the May ISO a couple of days ago. The installer did indeed add a tmpfs line to my fstab…

tmpfs             /tmp           tmpfs   defaults,noatime,mode=1777 0 0

I did not install with a swap partition, though I later created a swapfile and added that to fstab, but that is a separate line.

Huh, interesting. I recently re-installed off the latest ISO. I wonder why mine is different. Perhaps it depends on the options you choose.

I wonder if it does that if you DON’T have a swap. It did not add it to mine, but I have a swap - however little it gets used…

Perhaps. It also added discard per my SSD, which somewhat perturbed me. It’s just my opinion, but no installer routine should be doing that.

Is it required to create swap drive. If so how to make it use by EOS. My laptop only having 2GB Ram.

It is recommended, especially for machines with less RAM. Check out this thread, some very good thoughts and links were posted there about swap.

1 Like

I’m a bit surprised at that. Arch includes a systemd timer which performs a weekly discard. I was under the impression that was generally regarded as a better option. There were some problems with that timer a little while ago, but there is a solution suggested in that thread. I’d remove any discard from fstab and make sure the timer is activated.

So I thought I had configured my Firefox to use tmpfs!?
I wonder what tmpfs is doing then it it’s not for Firefox!?

I did add a swapfile and is it safe to remove tmpfs then?


If what you have in your /etc/fstab is the same as c00ter, it should be safe to remove it if you really want to. However, it has nothing to do with swap. I would probably not remove it unless you have a reason to.

That being said, I don’t know if it will matter or not since the default rules on Arch should put /tmp on a tmpfs anyway.

As an example, both of my EOS machines look like this:

# /etc/fstab: static file system information.
# Use 'blkid' to print the universally unique identifier for a device; this may                               
# be used with UUID= as a more robust way to name devices that works even if                                  
# disks are added and removed. See fstab(5).                                                                  
# <file system>             <mount point>  <type>  <options>  <dump>  <pass>                                  
UUID=61C3-8D4F                            /boot/efi      vfat    umask=0077 0 2                               
UUID=800aada3-9603-40fb-ba82-0a97001e08ac /              ext4    defaults,noatime 0 1                         
[dalto@eos ~]$ df -h                                                                                          
Filesystem      Size  Used Avail Use% Mounted on                                                              
dev             1.9G     0  1.9G   0% /dev                                                                    
run             2.0G  1.1M  2.0G   1% /run                                                                    
/dev/sda2        78G   12G   63G  16% /                                                                       
tmpfs           2.0G     0  2.0G   0% /dev/shm                                                                
tmpfs           2.0G     0  2.0G   0% /sys/fs/cgroup                                                          
tmpfs           2.0G  4.0K  2.0G   1% /tmp                                                                    
/dev/sda1       300M  280K  300M   1% /boot/efi                                                               
tmpfs           391M   12K  391M   1% /run/user/1000  

As you can see, nothing in /etc/fstab but /tmp is still mounted on tmpfs.

Well tmpfs is actually very good. I will keep it. Thanks for showing!