Chinaunix

标题: centos 突然变成只读文件系统,何解。 [打印本页]

作者: sweetyous    时间: 2011-03-04 09:04
标题: centos 突然变成只读文件系统,何解。
本帖最后由 sweetyous 于 2011-03-04 09:07 编辑
  1. /dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw)
  2. proc on /proc type proc (rw)
  3. sysfs on /sys type sysfs (rw)
  4. devpts on /dev/pts type devpts (rw,gid=5,mode=620)
  5. /dev/sda1 on /boot type ext3 (rw)
  6. tmpfs on /dev/shm type tmpfs (rw)
  7. none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
  8. sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)

  9. mount: warning /etc/mtab is not writable (e.g. read-only filesystem).
  10.        It's possible that information reported by mount(8) is not
  11.        up to date. For actual information about system mount points
  12.        check the /proc/mounts file.
复制代码
  1. [root@facepan /]# df -h
  2. -bash: /bin/df: 输入/输出错误
复制代码
  1. mkdir: 无法创建目录 “1”: 只读文件系统
复制代码
还有一个非常奇怪的文件
  1. \ \ \ \ \ \ 1\
复制代码
我的根目录有这个文件\ \ \ \ \ \ 1\,不知道是什么东西来的

我的根目录有这些文件,看看有什么不正常的
  1. .         1    .autorelabel  bin   dev  home        jiaoben  lib64       media  mnt  opt   root  selinux  sys  usr
  2. ..  .autofsck  backup        boot  etc  install.sh  lib      lost+found  misc   net  proc  sbin  srv      tmp  var
复制代码
  1. fsck
  2. fsck 1.39 (29-May-2006)
  3. e2fsck 1.39 (29-May-2006)
  4. /dev/VolGroup00/LogVol00: recovering journal
  5. /dev/VolGroup00/LogVol00: Attempt to read block from filesystem resulted in short read while reading block 9354

  6. JBD: Failed to read block at offset 7288
  7. 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