免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 13121 | 回复: 15
打印 上一主题 下一主题

[系统管理] linux 文件系统变为了只读,这个问题怎么解决(急!). [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2013-04-26 11:35 |只看该作者 |倒序浏览
[root@localhost ~]# mount
/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/sdb1 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)
nfsd on /proc/fs/nfsd type nfsd (rw)

mount: warning /etc/mtab is not writable (e.g. read-only filesystem).
       It's possible that information reported by mount( is not
       up to date. For actual information about system mount points
       check the /proc/mounts file.


[root@localhost ~]# more /proc/mounts
rootfs / rootfs rw 0 0
/dev/root / ext3 ro,data=ordered 0 0
/dev /dev tmpfs rw 0 0
/proc /proc proc rw 0 0
/sys /sys sysfs rw 0 0
none /selinux selinuxfs rw 0 0
/proc/bus/usb /proc/bus/usb usbfs rw 0 0
devpts /dev/pts devpts rw 0 0
/dev/sdb1 /boot ext3 rw,data=ordered 0 0
tmpfs /dev/shm tmpfs rw 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw 0 0
sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw 0 0
/etc/auto.misc /misc autofs rw,fd=7,pgrp=4580,timeout=300,minproto=5,maxproto=5,indirect 0 0
-hosts /net autofs rw,fd=13,pgrp=4580,timeout=300,minproto=5,maxproto=5,indirect 0 0
nfsd /proc/fs/nfsd nfsd rw 0 0


[root@localhost ~]# df -h
文件系统              容量  已用 可用 已用% 挂载点
/dev/mapper/VolGroup00-LogVol00
                      262G   16G  232G   7% /
/dev/sdb1              99M   13M   82M  14% /boot
tmpfs                 3.9G     0  3.9G   0% /dev/shm


[root@localhost ~]# more /etc/fstab
/dev/VolGroup00/LogVol00 /                       ext3    defaults        1 1
LABEL=/boot             /boot                   ext3    defaults        1 2
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0

论坛徽章:
21
白羊座
日期:2013-08-23 15:49:17金牛座
日期:2013-10-08 17:00:03处女座
日期:2013-10-12 11:54:11CU十二周年纪念徽章
日期:2013-10-24 15:41:34午马
日期:2013-11-27 14:07:21巨蟹座
日期:2013-12-04 10:56:03水瓶座
日期:2013-12-04 15:58:00亥猪
日期:2014-05-24 16:02:3115-16赛季CBA联赛之辽宁
日期:2016-11-07 13:52:53戌狗
日期:2013-08-23 16:15:31白羊座
日期:2013-08-24 21:59:24巨蟹座
日期:2013-08-25 16:34:24
2 [报告]
发表于 2013-04-26 12:12 |只看该作者
mount -o remount, rw /
重新挂载根分区试试,

论坛徽章:
0
3 [报告]
发表于 2013-04-26 12:25 |只看该作者
提示:
[root@localhost ~]# mount -o remount, rw /
mount: you must specify the filesystem type

论坛徽章:
71
15-16赛季CBA联赛之同曦
日期:2018-08-23 15:41:42辰龙
日期:2014-08-15 09:07:43狮子座
日期:2014-06-03 13:55:33亥猪
日期:2014-06-02 11:17:08巨蟹座
日期:2014-05-06 10:02:03午马
日期:2014-05-04 08:18:27亥猪
日期:2014-04-29 11:11:32技术图书徽章
日期:2014-04-24 15:51:26技术图书徽章
日期:2014-04-17 11:01:53辰龙
日期:2014-04-15 12:45:46亥猪
日期:2014-04-11 09:06:23射手座
日期:2014-04-01 15:28:10
4 [报告]
发表于 2013-04-26 12:38 |只看该作者
那就加上-t ext3试试

论坛徽章:
0
5 [报告]
发表于 2013-04-26 13:22 |只看该作者
提示:
[root@localhost ~]# mount -t ext3 -o remount, rw /
mount: block device rw is write-protected, mounting read-only

论坛徽章:
4
技术图书徽章
日期:2013-09-23 10:22:37狮子座
日期:2013-10-15 23:31:54卯兔
日期:2013-11-11 17:33:15金牛座
日期:2013-11-15 17:25:28
6 [报告]
发表于 2013-04-26 13:30 |只看该作者
看样子是文件系统坏了,看看/var/log/messages里面有什么报错信息吗

论坛徽章:
0
7 [报告]
发表于 2013-04-26 13:35 |只看该作者
/var/log/messages里面的信息:

Apr 25 09:28:46 localhost last message repeated 21 times
Apr 25 09:30:07 localhost last message repeated 21 times
Apr 25 09:31:12 localhost last message repeated 14 times
Apr 25 09:32:35 localhost last message repeated 15 times
Apr 25 09:33:48 localhost avahi-daemon[5107]: Invalid query packet.
Apr 25 09:34:59 localhost last message repeated 18 times
Apr 25 09:36:18 localhost last message repeated 10 times
Apr 25 09:37:24 localhost avahi-daemon[5107]: Invalid query packet.
Apr 25 09:38:25 localhost last message repeated 31 times
Apr 25 09:39:26 localhost last message repeated 20 times
Apr 25 09:41:45 localhost last message repeated 8 times
Apr 25 09:42:50 localhost last message repeated 30 times
Apr 25 09:43:53 localhost last message repeated 13 times
Apr 25 09:44:56 localhost last message repeated 26 times
Apr 25 09:45:57 localhost last message repeated 28 times
Apr 25 09:47:05 localhost last message repeated 21 times
Apr 25 09:48:14 localhost last message repeated 13 times
Apr 25 09:48:15 localhost last message repeated 5 times
Apr 25 09:48:15 localhost avahi-daemon[5107]: Received response from host 192.16.22.23with invalid source port 58362 on

interface 'eth0.0'
Apr 25 09:48:16 localhost avahi-daemon[5107]: Received response from host 192.16.22.23with invalid source port 58362 on

interface 'eth0.0'
Apr 25 09:48:18 localhost avahi-daemon[5107]: Invalid query packet.
Apr 25 09:48:18 localhost avahi-daemon[5107]: Received response from host 192.16.22.23with invalid source port 58362 on

interface 'eth0.0'
Apr 25 09:48:22 localhost avahi-daemon[5107]: Received response from host 192.16.22.23with invalid source port 58362 on

interface 'eth0.0'
Apr 25 09:48:27 localhost avahi-daemon[5107]: Invalid query packet.
Apr 25 09:48:30 localhost avahi-daemon[5107]: Received response from host 192.16.22.23with invalid source port 58362 on

interface 'eth0.0'
Apr 25 09:48:37 localhost avahi-daemon[5107]: Invalid query packet.
Apr 25 09:48:38 localhost avahi-daemon[5107]: Invalid query packet.
Apr 25 09:48:38 localhost avahi-daemon[5107]: Received response from host 192.16.22.23with invalid source port 58362 on

interface 'eth0.0'
Apr 25 09:48:38 localhost avahi-daemon[5107]: Invalid query packet.
Apr 25 09:48:39 localhost avahi-daemon[5107]: Received response from host 192.16.22.23with invalid source port 58362 on

interface 'eth0.0'
Apr 25 09:48:39 localhost avahi-daemon[5107]: Invalid query packet.
Apr 25 09:48:41 localhost avahi-daemon[5107]: Invalid query packet.
Apr 25 09:48:41 localhost avahi-daemon[5107]: Received response from host 192.16.22.23with invalid source port 58362 on

interface 'eth0.0'
Apr 25 09:48:42 localhost avahi-daemon[5107]: Invalid query packet.
Apr 25 09:48:45 localhost avahi-daemon[5107]: Received response from host 192.16.22.23with invalid source port 58362 on

interface 'eth0.0'
Apr 25 09:48:46 localhost avahi-daemon[5107]: Received response from host 192.16.22.23with invalid source port 58362 on

interface 'eth0.0'
Apr 25 09:48:50 localhost avahi-daemon[5107]: Invalid query packet.
Apr 25 09:48:53 localhost avahi-daemon[5107]: Received response from host 192.16.22.23with invalid source port 58362 on

interface 'eth0.0'
Apr 25 09:48:54 localhost avahi-daemon[5107]: Invalid query packet.
Apr 25 09:49:08 localhost last message repeated 12 times
Apr 25 09:49:09 localhost avahi-daemon[5107]: Received response from host 192.16.22.23with invalid source port 58362 on

interface 'eth0.0'
Apr 25 09:49:17 localhost avahi-daemon[5107]: Invalid query packet.
Apr 25 09:49:18 localhost avahi-daemon[5107]: Received response from host 192.16.22.23with invalid source port 58362 on

interface 'eth0.0'
Apr 25 09:49:33 localhost avahi-daemon[5107]: Invalid query packet.
Apr 25 09:49:37 localhost last message repeated 5 times
Apr 25 09:49:41 localhost avahi-daemon[5107]: Received response from host 192.16.22.23with invalid source port 58362 on

interface 'eth0.0'
Apr 25 09:49:43 localhost avahi-daemon[5107]: Invalid query packet.
Apr 25 09:49:56 localhost last message repeated 6 times
Apr 25 09:50:22 localhost avahi-daemon[5107]: Received response from host 192.16.22.23with invalid source port 58362 on

interface 'eth0.0'
Apr 25 09:50:23 localhost avahi-daemon[5107]: Invalid query packet.
Apr 25 09:51:01 localhost avahi-daemon[5107]: Invalid query packet.
Apr 25 09:53:24 localhost last message repeated 9 times
Apr 25 09:55:00 localhost last message repeated 8 times
Apr 25 10:03:43 localhost last message repeated 10 times
Apr 25 10:05:23 localhost last message repeated 8 times
Apr 25 10:06:52 localhost last message repeated 7 times
Apr 25 10:07:01 localhost last message repeated 6 times
Apr 25 10:07:47 localhost : error getting update info: Cannot retrieve repository metadata (repomd.xml) for repository:

addons. Please verify its path and try again
Apr 25 10:08:16 localhost avahi-daemon[5107]: Invalid query packet.
Apr 25 10:09:06 localhost last message repeated 13 times
Apr 25 10:11:19 localhost avahi-daemon[5107]: Invalid query packet.
Apr 25 10:13:55 localhost last message repeated 14 times
Apr 25 10:16:11 localhost last message repeated 10 times
Apr 25 10:17:44 localhost last message repeated 8 times
Apr 25 10:19:11 localhost last message repeated 10 times
Apr 25 10:20:19 localhost last message repeated 8 times
Apr 25 10:21:59 localhost last message repeated 8 times
Apr 25 10:24:02 localhost last message repeated 8 times
Apr 25 10:25:52 localhost last message repeated 8 times
Apr 25 10:27:21 localhost last message repeated 8 times
Apr 25 10:28:22 localhost last message repeated 8 times
Apr 25 10:30:42 localhost rz[2749]: [web] ccdb.war.tar.gz/ZMODEM: 52550450 Bytes, 7910059 BPS
Apr 25 10:31:49 localhost avahi-daemon[5107]: Invalid query packet.
Apr 25 10:39:23 localhost avahi-daemon[5107]: Invalid query packet.

论坛徽章:
2
午马
日期:2015-01-27 11:22:392015年辞旧岁徽章
日期:2015-03-03 16:54:15
8 [报告]
发表于 2013-04-26 14:05 |只看该作者
看你的root分区,比如root是 /dev/sda6

那就看下hdparm /dev/sda6 看readonly tag是0/1

手动设定 hdparm -r 0 /dev/sda6

try

论坛徽章:
2
午马
日期:2015-01-27 11:22:392015年辞旧岁徽章
日期:2015-03-03 16:54:15
9 [报告]
发表于 2013-04-26 14:05 |只看该作者
如果这个有效,记得 完事了备份数据准备换存储

论坛徽章:
0
10 [报告]
发表于 2013-04-26 15:20 |只看该作者
本身就是0
[root@localhost /]# hdparm /dev/mapper/VolGroup00-LogVol00

/dev/mapper/VolGroup00-LogVol00:
readonly     =  0 (off)
readahead    = 256 (on)
geometry     = 0/0/0, sectors = 565313536, start = 0

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP