/var目录提示只读错误Read-only file system
[root@localhost var]# mv /root/*.rpm.bak /var/
mv: cannot create regular file `/var/*rpm.bak': Read-only file system
查看/var 分区
[root@localhost ~]# df -hl
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 20G 7.9G 11G 43% /
/dev/sda9 850G 277G 530G 35% /var
/dev/sda8 3.9G 73M 3.7G 2% /run
/dev/sda7 3.9G 194M 3.5G 6% /opt
/dev/sda6 3.9G 73M 3.7G 2% /home
/dev/sda5 11G 1.2G 8.7G 12% /usr
/dev/sda1 996M 40M 905M 5% /boot
tmpfs 2.0G 0 2.0G 0% /dev/shm
[root@localhost ~]#
[root@localhost ~]#
修复/var目录对应分区
[root@localhost ~]# fsck.ext3 /dev/sda9
e2fsck 1.39 (29-May-2006)
/dev/sda9 is mounted.
WARNING!!! Running e2fsck on a mounted filesystem may cause
SEVERE filesystem damage.
Do you really want to continue (y/n)? yes
/var: recovering journal
/var 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
/var: 396544/229933056 files (1.8% non-contiguous), 79578883/229928296 blocks
[root@localhost ~]#
[root@localhost ~]#
重启
[root@localhost ~]# shutdown -r now