{"id":13,"date":"2009-09-13T03:50:24","date_gmt":"2009-09-13T07:50:24","guid":{"rendered":"http:\/\/linuxhostingsupport.net\/blog\/?p=13"},"modified":"2013-03-20T08:39:00","modified_gmt":"2013-03-20T12:39:00","slug":"howto-increase-tmp-partition-size","status":"publish","type":"post","link":"https:\/\/linuxhostingsupport.net\/blog\/howto-increase-tmp-partition-size","title":{"rendered":"\/tmp partition full. Howto increase \/tmp partition size in Linux?"},"content":{"rendered":"<p><strong>\/tmp partition full&#8230; How to increase \/tmp partition in Linux?<\/strong><\/p>\n<p>You can create a Virtual partition on Linux in case your server isn&#8217;t built with a \/tmp partition OR you need to increase the size of the partition for some reason, and then you can mount the virtual partition as \/tmp.<\/p>\n<p>The following steps will guide you to create a virtual partition:<\/p>\n<p>1) To <strong>create a virtual partition of 2GB<\/strong>, use the below dd command:<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\"># dd if=\/dev\/zero of=\/home\/tmp-dir bs=1024M count=2<\/span><\/pre>\n<\/blockquote>\n<p>2) Once the partition is created, you need to <strong>create the file system on it using the mke2fs<\/strong> command<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\"># mke2fs -j \/home\/tmp-dir<\/span><\/pre>\n<\/blockquote>\n<p>3) Now, the partition is ready to be used but you need to <strong>mount it on \/tmp directory<\/strong>.<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\"># mount -t ext3 -o loop \/home\/tmp-dir \/tmp<\/span><\/pre>\n<\/blockquote>\n<p>Here, we have <strong>used &#8216;loop&#8217; while mounting \/home\/tmp-dir partition<\/strong> because we are not mounting an actual block device but to make a file accessible as a block device.<\/p>\n<p>4) To <strong>verify the partition<\/strong>, execute<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\"># mount<\/span><\/pre>\n<\/blockquote>\n<p>5) To make sure this <strong>partition is mounted automatically after every reboot<\/strong>, edit the <strong>\/etc\/fstab<\/strong> file and replace the \/tmp line with the following one:<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\">\/home\/tmp-dir \/tmp ext3 defaults,loop 0 0<\/span><\/pre>\n<\/blockquote>\n<p>Hope, this helps.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\/tmp partition full&#8230; How to increase \/tmp partition in Linux?<br \/>\nYou can create a Virtual partition on Linux in case your server isn&#8217;t built with a \/tmp partition OR you need to increase the size of the partition for some reason, and then you can mount the virtual partition as \/tmp.<br \/>\nThe following steps will guide you to create a virtual partition:<br \/>\n1) To create a virtual partition of 2GB, use the below dd command:<\/p>\n<p># dd if=\/dev\/zero of=\/home\/tmp-dir bs=1024M count=2<\/p>\n<p>2) Once the partition is created, you need to create the file [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[1464,1465,14,218,1466],"_links":{"self":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/13"}],"collection":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/comments?post=13"}],"version-history":[{"count":13,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/13\/revisions"}],"predecessor-version":[{"id":2094,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/13\/revisions\/2094"}],"wp:attachment":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/media?parent=13"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/categories?post=13"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/tags?post=13"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}