<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[沧海一粟]]></title> 
<link>http://www.dzhope.com/index.php</link> 
<description><![CDATA[Web系统架构与服务器运维,php开发]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[沧海一粟]]></copyright>
<item>
<link>http://www.dzhope.com/post//</link>
<title><![CDATA[linux文件系统只读问题修复]]></title> 
<author>jed &lt;jed521@163.com&gt;</author>
<category><![CDATA[服务器技术]]></category>
<pubDate>Tue, 18 Jun 2013 22:05:20 +0000</pubDate> 
<guid>http://www.dzhope.com/post//</guid> 
<description>
<![CDATA[ 
	1. 重启系统看是否可以自动修复。<br/><br/>2. 使用fsck -y /dev/sda1 进行自动修复。（用”-y”选项来执行该命令对硬盘进行检查和修复）<br/> <br/>&nbsp;&nbsp;添加参数：fsck -y -C -t ext3 /dev/sda1 （一般情况下修复完成后，所有文件移动到 lost+found目录，文件名会被改变）<br/>&nbsp;&nbsp; （-C 显示进度条 -t 指定文件系统类型 -y 默认自动yes修复）<br/><br/>3. 如果fsck修复完成后，启动系统依然自读。<br/>&nbsp;&nbsp; 查看分区结构：<br/>&nbsp;&nbsp; [root@localhost ~]# more /etc/fstab<br/>&nbsp;&nbsp;<br/>&nbsp;&nbsp; [root@localhost ~]# more /proc/mounts<br/><br/>&nbsp;&nbsp; [root@localhost ~]# mount<br/>&nbsp;&nbsp; /dev/sda2 on / type ext3 (rw)<br/>&nbsp;&nbsp;&nbsp;&nbsp;proc on /proc type proc (rw)<br/>&nbsp;&nbsp; sysfs on /sys type sysfs (rw)<br/>&nbsp;&nbsp; 查看ro挂载的分区,如果发现有ro，就重新mount<br/>&nbsp;&nbsp; umount /dev/sda1<br/>&nbsp;&nbsp; mount /dev/sda1 /boot<br/>&nbsp;&nbsp; 如果发现有提示“device is busy”，找到是什么进程使得他busy<br/>&nbsp;&nbsp; fuser -m /boot 将会显示使用这个模块的pid<br/>&nbsp;&nbsp; fuser -mk /boot 将会直接kill那个pid<br/>&nbsp;&nbsp; 然后重新mount即可。<br/><br/>4. 直接remount<br/>&nbsp;&nbsp; [root@localhost ~]# mount -o rw,remount /dev/sda1<br/><br/><br/>Tags - <a href="http://www.dzhope.com/tags/linux%25E5%258F%25AA%25E8%25AF%25BB/" rel="tag">linux只读</a>
]]>
</description>
</item><item>
<link>http://www.dzhope.com/post//#blogcomment</link>
<title><![CDATA[[评论] linux文件系统只读问题修复]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://www.dzhope.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>