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

然后再重启 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

yunson_Liu

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值