linux e514写入错误,Linux上使用vim编辑文件保存时报错:E514: write error (file system full?)...
今天在Linux上使用vim編輯文件保存時報如下錯誤
E514: write error (file system full?)
從錯誤看,是磁盤滿了,于是使用df -hl查看磁盤使用情況
$ sudo df -hl
Filesystem 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 0 100% /home
從結果看,確實是/home磁盤滿了。
但是此時,當我使用root用戶在/home寫寫文件時候卻不會出現上面的錯。
查了半天,原來是Linux在每個分區中會為root用戶保留一部份空間,這是專門留給root用戶及其所屬組使用,別的用戶是無法使用的,一般默認為總數據塊的5%。
這個預留的空間可以使用下面的命令查看
$ sudo tune2fs -l | grep Reserved
比如:
$ sudo tune2fs -l /dev/sda1 | grep Reserved
或
$ sudo tune2fs -l /dev/mapper/vg_rhserver33-lv_home | grep Reserved
Reserved block count: 23551078
Reserved GDT blocks: 911
Reserved blocks uid: 0 (user root)
Reserved blocks gid: 0 (group root)
好了,知道了問題,那我們就清理一下磁盤空間吧,清理了一定磁盤空間后,最終我可以繼續寫入數據了。
總結
以上是生活随笔為你收集整理的linux e514写入错误,Linux上使用vim编辑文件保存时报错:E514: write error (file system full?)...的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: linux卸载android studi
- 下一篇: 花呗欠4000要逾期了,真的会爆通讯录吗