ext3 文件系统报错 bad entry in directory

买一超级便宜U盘: usb 2.0, 512G 40RMB. 直接插电脑, 写入速度1.3 ~ 3.6 M/s.
格式化为 ext3, 快速硬盘检查, 无问题. 接到路由器的USB hub, 开始aria2 文件下载.
arias 配置文件, 及 downloads 目录创建正常.
几分钟后, downloads 目录无法写入, 所有bt下载全部被删除.
telnet 登上去, touch 文件显示: : Input/output error
查看读写权限, 全有, 并且使用root来写入, 排除权限问题.

查看系统日志, 显示:
EXT3-fs error (device dm-0): ext3_readdir: bad entry in directory #5556142: rec_len is smaller than minimal - offset=0, inode=2553887680, rec_len=0, name_len=0

根据google 结果, 修复:
http://www.novell.com/support/kb/doc.php?id=3554036

Situation

At reboot, or mount of an EXT3 file-system, an error similar to the one below is seen:
EXT3-fs error (device dm-0): ext3_readdir: bad entry in directory #5556142: rec_len is smaller than minimal - offset=0, inode=2553887680, rec_len=0, name_len=0

Resolution

This error is caused by a file that has been marked as a directory. This is a non-fatal error and can be fixed by removing the file in question.

  1. Mount the file-system in question
  2. Locate the file that has been corrupted. The file's inode is the number after "bad entry in directory" Using the example error code the file would be found by typing
    find /MOUNT_POINT-inum 5556142
  3. Delete the file identified in step two
  4. Umount the file-system
  5. Check the disk, and check for errors.
    fsck/dev/PHYSICAL_DEVICE
  6. Repeat step 5. If no errors, the file-system is clean.

Could not get any response

取大图 js

  1. 最简单的取
    var imgs = $("#imgC").find("img");
    for (var i in imgs) {console.log($(imgs[i]).attr('src'));};
  2. 替换图片大小
    var imgs = $("#imgC").find("img");
    for (var i in imgs) {console.log($(imgs[i]).attr('src').replace("$_14.JPG", "$_10.JPG"));};
  3. 加入 img 标记, 并合并输出
  • var imgs = $("#imgC").find("img");
    var htmlStr = "";
    for (var i = 0; i < imgs.length; i++) {
    try {
    if ($(imgs[i]) && $(imgs[i]).attr('src')) {
    htmlStr += "<img src='" + $(imgs[i]).attr('src').replace("$_14.JPG", "$_10.JPG") + "'>\r\n";
    }
    } catch (err) {
    console.log("error: " + err);
    }

    };
    console.log(htmlStr);

  1. 加入全部需要 html 元素
  • var imgs = $("#imgC").find("img");
    var htmlStr = "

    ";
    for (var i = 0; i < imgs.length; i++) {
    try {
    if ($(imgs[i]) && $(imgs[i]).attr('src')) {
    if (0 === i % 2) {
    htmlStr += "

    <img src='" + $(imgs[i]).attr('src').replace("$_14.JPG", "$_12.JPG") + "'>\r\n";
    } else {
    htmlStr += "<img src='" + $(imgs[i]).attr('src').replace("$_14.JPG", "$_12.JPG") + "'>

    \r\n";
    }

          }
      } catch (err) {
          console.log("error: " + err);
      }
      
    

    };
    htmlStr += "

    ";
    console.log(htmlStr);

一步一步设置windows IE 代理

设置代理:

  1. 打开文件夹: C:\goagent\goagent-goagent-2a0cc18\local
    请输入图片描述
  2. 双击击 proxy.bat, 出现如下窗口, 不要关闭, 最小化
    请输入图片描述
  3. 打开IE 浏览器, 点击右上角“设置”图标, 然后双击 Internet 选项(O)
    请输入图片描述
  4. 出现如下窗口,然后点击 连接, 然后点击 局域网设置
    请输入图片描述
  5. 出现如下小窗口, 选中 代理服务器 中的勾, 然后点击 确定
    请输入图片描述
  6. 连接窗口点击 确定
    请输入图片描述

取消代理:

把上面第5步中的勾去掉,然后点击确定