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

然后再重启 

 

你可能感兴趣的:(centos)