Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use vim to edit files to save Times E514:write error errors in Linux

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

Editor to share with you how to use vim to edit files to save Times E514:write error errors in Linux, I believe most people do not know much about it, so share this article for your reference. I hope you will gain a lot after reading this article. Let's learn about it together.

Find a problem

Save the Times using vim editing files on Linux today with the following error:

E514: write error (file system full?)

From the error point of view, the disk is full, so use df-hl to check the disk usage.

$sudo df-hlFilesystem Size Used Avail Use% Mounted on/dev/mapper/vg_myserver-lv_root 50G 43G 4.6G 91% / tmpfs 7.8G 268K 7.8G 1% / dev/shm/dev/sda1 477M 61M 391M 14% / boot/dev/mapper/vg_myserver-lv_home 1.8T 1.7T 0100% / home

Judging from the results, the / home disk is indeed full.

But at this point, I don't make the above error when I use root users to write files in / home.

After checking for a long time, it turns out that Linux will reserve some space for root users in each partition, which is reserved for root users and their groups. Other users cannot use it. It is generally 5% of the total data block by default.

Solution method

This reserved space can be viewed using the following command

$sudo tune2fs-l | grep Reserved

For example:

$sudo tune2fs-l / dev/sda1 | grep Reserved

Or

$sudo tune2fs-l / dev/mapper/vg_rhserver33-lv_home | grep ReservedReserved block count: 23551078Reserved GDT blocks: 911Reserved blocks uid: 0 (user root) Reserved blocks gid: 0 (group root)

OK, now that we know the problem, let's clean up the disk space. After cleaning up a certain amount of disk space, I can finally continue to write data.

The above is all the contents of this article "using vim editing files to save Times E514:write error errors in Linux". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report