{"id":1257,"date":"2023-11-22T06:14:45","date_gmt":"2023-11-22T06:14:45","guid":{"rendered":"https:\/\/www.devopssupport.in\/blog\/?p=1257"},"modified":"2023-11-22T06:14:47","modified_gmt":"2023-11-22T06:14:47","slug":"write-of-2225-bytes-failed-with-errno28-no-space-left-on-device","status":"publish","type":"post","link":"https:\/\/www.devopssupport.in\/blog\/write-of-2225-bytes-failed-with-errno28-no-space-left-on-device\/","title":{"rendered":"write of 2225 bytes failed with errno=28 no space left on device"},"content":{"rendered":"\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"150\" src=\"https:\/\/www.devopssupport.in\/blog\/wp-content\/uploads\/2023\/11\/image-19-1024x150.png\" alt=\"\" class=\"wp-image-1258\" srcset=\"https:\/\/www.devopssupport.in\/blog\/wp-content\/uploads\/2023\/11\/image-19-1024x150.png 1024w, https:\/\/www.devopssupport.in\/blog\/wp-content\/uploads\/2023\/11\/image-19-300x44.png 300w, https:\/\/www.devopssupport.in\/blog\/wp-content\/uploads\/2023\/11\/image-19-768x112.png 768w, https:\/\/www.devopssupport.in\/blog\/wp-content\/uploads\/2023\/11\/image-19-850x124.png 850w, https:\/\/www.devopssupport.in\/blog\/wp-content\/uploads\/2023\/11\/image-19.png 1395w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>The error message you&#8217;re seeing, &#8220;write of 2225 bytes failed with errno=28 no space left on device,&#8221; indicates that there is no available space on the device where you are trying to write data. The error code &#8220;28&#8221; corresponds to the &#8220;ENOSPC&#8221; error in Unix-like operating systems.<\/p>\n\n\n\n<p><strong>Check Disk Space:<\/strong> Ensure that you have enough free space on the device where you are trying to write data. You can check the available disk space using the <code>df<\/code> command.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>df -h\r\n<\/code><\/pre>\n\n\n\n<p>This will show you the disk space usage on different mounted file systems.<\/p>\n\n\n\n<p><strong>Free Up Space:<\/strong> If the disk space is low, you need to free up some space. You can remove unnecessary files, especially large ones, to make more space available. Use the <code>du<\/code> and <code>rm<\/code> commands to identify and delete unnecessary files.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>du -h --max-depth=1 \/path\/to\/directory\r\nrm \/path\/to\/unneeded\/file\r\n<\/code><\/pre>\n\n\n\n<p><strong>Check Inodes:<\/strong> In addition to checking disk space, check the available inodes. Sometimes a filesystem can run out of inodes even if there is free space. You can use the <code>df -i<\/code> command to check inode usage.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>df -i\r\n<\/code><\/pre>\n\n\n\n<p><strong>Rotate or Clear Log Files:<\/strong> Log files can consume a significant amount of space. Check and rotate or clear unnecessary log files.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ls -lh \/var\/log\r\n<\/code><\/pre>\n\n\n\n<p><strong>Temporary Files:<\/strong> Check for and delete temporary files that may be taking up space. The <code>\/tmp<\/code> directory is a common location for temporary files.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>rm -rf \/tmp\/*\r\n<\/code><\/pre>\n\n\n\n<p><strong>Consider Deleting Cached Files:<\/strong> Some applications cache data, and these caches can consume a considerable amount of space. Clearing unnecessary caches may help.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>rm -rf ~\/.cache\r\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>The error message you&#8217;re seeing, &#8220;write of 2225 bytes failed with errno=28 no space left on device,&#8221; indicates that there is no available space on the device&#8230; <\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[505,504,507,503,506,508,502],"class_list":["post-1257","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-check-inodes","tag-free-up-space","tag-ls-lh-var-log","tag-no-space-left-on-device","tag-rotate-or-clear-log-files","tag-temporary-files","tag-write-of-2225-bytes-failed-with-errno28-no-space-left-on-device"],"_links":{"self":[{"href":"https:\/\/www.devopssupport.in\/blog\/wp-json\/wp\/v2\/posts\/1257","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopssupport.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopssupport.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopssupport.in\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopssupport.in\/blog\/wp-json\/wp\/v2\/comments?post=1257"}],"version-history":[{"count":1,"href":"https:\/\/www.devopssupport.in\/blog\/wp-json\/wp\/v2\/posts\/1257\/revisions"}],"predecessor-version":[{"id":1259,"href":"https:\/\/www.devopssupport.in\/blog\/wp-json\/wp\/v2\/posts\/1257\/revisions\/1259"}],"wp:attachment":[{"href":"https:\/\/www.devopssupport.in\/blog\/wp-json\/wp\/v2\/media?parent=1257"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopssupport.in\/blog\/wp-json\/wp\/v2\/categories?post=1257"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopssupport.in\/blog\/wp-json\/wp\/v2\/tags?post=1257"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}