Linux系統出現cannot create temp file for here-document: Read-only file system解決辦法

1、我們可以執行

mount -o remount,rw /

2、我們可以查詢系統盤,找到對應的區塊編號

root@mall-dev:~# fsck.ext4 -y /dev/sda2
e2fsck 1.44.1 (24-Mar-2018)
/dev/sda2 contains a file system with errors, check forced.
Pass 1: Checking inodes, blocks, and sizes
Inodes that were part of a corrupted orphan linked list found.  Fix? yes

Inode 4595688 was part of the orphaned inode list.  FIXED.
Deleted inode 6553605 has zero dtime.  Fix? yes

Inode 6553606 was part of the orphaned inode list.  FIXED.
Inode 6553607 was part of the orphaned inode list.  FIXED.
Inode 6553608 was part of the orphaned inode list.  FIXED.
Inode 6553609 was part of the orphaned inode list.  FIXED.
Inode 8129822 was part of the orphaned inode list.  FIXED.
Inode 8130329 was part of the orphaned inode list.  FIXED.
Inode 8130331 was part of the orphaned inode list.  FIXED.
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
Block bitmap differences:  -(18920000--18920027) -(18945152--18945179)
Fix? yes

Free blocks count wrong for group #577 (17960, counted=17988).
Fix? yes

Free blocks count wrong for group #578 (32424, counted=32452).
Fix? yes

Free blocks count wrong (41001369, counted=41001425).
Fix? yes

Inode bitmap differences:  -4595688 -(6553605--6553609) -8129822 -8130329 -8130331
Fix? yes

Free inodes count wrong for group #560 (0, counted=1).
Fix? yes

Free inodes count wrong for group #800 (1076, counted=1081).
Fix? yes

Free inodes count wrong for group #992 (4774, counted=4777).
Fix? yes

Free inodes count wrong (14069095, counted=14069104).
Fix? yes


/dev/sda2: ***** FILE SYSTEM WAS MODIFIED *****
/dev/sda2: ***** REBOOT SYSTEM *****
/dev/sda2: 586384/14655488 files (0.1% non-contiguous), 17605423/58606848 blocks

然後再重啓 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章