CentOS 5.5
我刚遇到一个实例,其中我的/ storage目录应该是一个只读文件系统.我收到错误:
mkdir: cannot create directory `test': Read-only file system
DF:
Filesystem Size Used Avail Use% Mounted on /dev/mapper/VolGroup00-LogVol00 141G 21G 114G 16% / /dev/sda1 99M 13M 82M 14% /boot tmpfs 1001M 0 1001M 0% /dev/shm /dev/sdb1 1.4T 307G 999G 24% /storage /dev/sdd1 1.4T 329G 978G 26% /media/hddblack /dev/sdc1 1.4T 329G 978G 26% /media/hddsilver
安装:
/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) /dev/sdb1 on /storage type ext3 (rw) none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw) sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw) /dev/sdd1 on /media/hddblack type ext3 (ro) /dev/sdc1 on /media/hddsilver type ext3 (ro)
/ storage显然是一个读写文件系统.接下来我尝试了这个:
mount -o remount,rw /dev/disk/by-label/storage /storage
现在,文件系统又可以写了.万岁.除了,为什么这样做?这是现在的山:
/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,mode=620) /dev/sda1 on /boot type ext3 (rw) tmpfs on /dev/shm type tmpfs (rw) /dev/sdb1 on /storage type ext3 (rw) none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw) sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw) /dev/sdd1 on /media/hddblack type ext3 (ro) /dev/sdc1 on /media/hddsilver type ext3 (ro)
几乎相同的事情…任何想法会导致这个或什么日志我应该调查,以找出问题是什么?
您很可能遇到磁盘IO错误.检查/ var / log / messages.查找有关中止日志和重新安装只读的消息.
P.S.:如果是这种情况,您最好备份数据.