Linux报错:read-only file system

使用scp传输文件之后linux系统突然报错 “Read-only file system”,然后就创建不了修改不了文件了,网上普遍说是文件系统遭到破坏,有一个用于修复linux文件系统的命令:fsck ,运行之后提示如下:

root@bpi-iot-ros-ai:~# fsck 
fsck from util-linux 2.25.2
e2fsck 1.42.12 (29-Aug-2014)
BPI-ROOT contains a file system with errors, check forced.
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
Block bitmap differences:  +33214
Fix? yes

BPI-ROOT: ***** FILE SYSTEM WAS MODIFIED *****
BPI-ROOT: ***** REBOOT LINUX *****
BPI-ROOT: 55473/455168 files (0.1% non-contiguous), 422531/1817600 blocks
root@bpi-iot-ros-ai:~# 
root@bpi-iot-ros-ai:~# reboot
重启之后就可以正常使用文件系统了。

你可能感兴趣的:(linux)