SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Using slack12 I am coming up against a strange issue with not having enough /tmp space.
I tried to install the openoffice3.0.1 autobuilder and it failed because I did not have enough /tmp freespace (Open Office needed 1100mb and my system only had 500mb /tmp freespace).
(BTW, I also have 1GB of physical memory and a 1GB swap partition in this system).
My fstab line originally read as:
Quote:
tmpfs /tmp tmpfs defaults 0 0
So in an attempt to increase /tmp space, I created a new separate 2GB xfs partition at /dev/hda8, and adjusted my fstab to read:
Quote:
/dev/hda8 /mnt/tmp tmpfs defaults 0 0
But after rebooting, my system still only has 500mb of /tmp space available on the new 2GB partition?
root@Crazed-Weasel:~# mount
/dev/hda1 on / type reiserfs (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
usbfs on /proc/bus/usb type usbfs (rw)
/dev/hda8 on /mnt/tmp type tmpfs (rw)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
df /mnt/tmp reports:
Quote:
root@Crazed-Weasel:~# df /mnt/tmp
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda8 517276 0 517276 0% /mnt/tmp
Does anyone know where this 500mb limitation is coming from?, and how can I increase /tmp space to 2GB?
Tmpfs is a file system which keeps all files in virtual memory.
That's from the tmpfs.txt file in your source tree.
By default it will be half your (RAM) memory size, as you found out - that can be enlarged, but can cause swap/page issues. Makes no sense for a physical (disk) parition.
On-disk /tmp will be a little slower, but you can make it whatever size you like.
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810
Rep:
Yes - as said tmpfs is a virtual filesystem loaded in memory. Your entry in fstab showing the device is getting confused as you tell it it's a tmpfs system This will default to half of your memory. If you want to use the portion of disk you partitioned then then change your fstab entry to :
You don't really need a separate partition for tmp and tmpfs is usually used by livecd distributions in Run-from-RAM mode. So, to suggest another alternative, just create /tmp in your root partition (I thought this is the default install?) and remove that tmp entry from your fstab.
Remember to check your /tmp directory from time to time. If you build a lot of packages, a lot of junk can accumulate there and take up space. So clean out /tmp now and then to free up space.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.