Chinaunix
标题:
centos 突然变成只读文件系统,何解。
[打印本页]
作者:
sweetyous
时间:
2011-03-04 09:04
标题:
centos 突然变成只读文件系统,何解。
本帖最后由 sweetyous 于 2011-03-04 09:07 编辑
/dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/sda1 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
mount: warning /etc/mtab is not writable (e.g. read-only filesystem).
It's possible that information reported by mount(8) is not
up to date. For actual information about system mount points
check the /proc/mounts file.
复制代码
[root@facepan /]# df -h
-bash: /bin/df: 输入/输出错误
复制代码
mkdir: 无法创建目录 “1”: 只读文件系统
复制代码
还有一个非常奇怪的文件
\ \ \ \ \ \ 1\
复制代码
我的根目录有这个文件\ \ \ \ \ \ 1\,不知道是什么东西来的
我的根目录有这些文件,看看有什么不正常的
. 1 .autorelabel bin dev home jiaoben lib64 media mnt opt root selinux sys usr
.. .autofsck backup boot etc install.sh lib lost+found misc net proc sbin srv tmp var
复制代码
fsck
fsck 1.39 (29-May-2006)
e2fsck 1.39 (29-May-2006)
/dev/VolGroup00/LogVol00: recovering journal
/dev/VolGroup00/LogVol00: Attempt to read block from filesystem resulted in short read while reading block 9354
JBD: Failed to read block at offset 7288
fsck.ext3: Input/output error while recovering ext3 journal of /dev/VolGroup00/LogVol00
复制代码
作者:
bluedream8
时间:
2011-03-04 09:41
估计是服务器出了问题,重新挂载一下/目录(分区)为可写状态:
#mount -n -o remount,rw /
作者:
chenyx
时间:
2011-03-04 10:06
建议fsck检查下硬盘
作者:
nagaregawa
时间:
2011-03-04 10:56
这类问题,都这样解决:
1. #mount -n -o remount,rw /
2. 如果不行,备份数据。
3. fsck
欢迎光临 Chinaunix (http://bbs.chinaunix.net/)
Powered by Discuz! X3.2