OpenWrt上修复移动硬盘的Ext4分区

我的路由器上接着个四口的USB Hub,上面插着优盘和一个移动硬盘,优盘里是路由器的OpenWrt,移动硬盘作为NAS使用。
最近在重装树莓派系统的时候,干了件傻事,给树莓派供电时,图省事直接把线插到了Hub上。树莓派是跑得很欢,但路由器嗝儿屁了,症状是luci直接表示可以无密码访问,吓得我一身冷汗……幸好重启后一切ok。

没想到坏运气还没完,也不知咋滴,移动硬盘也不识别了,/dev/sdb/dev/sdb1都有,但就是无法挂载。

block info

列出的信息中,完全没有/dev/sdb1的踪影,看内核日志:

[  111.250000] usb 1-1.4: new high-speed USB device number 4 using ehci-platform
[  111.410000] usb-storage 1-1.4:1.0: USB Mass Storage device detected
[  111.410000] scsi1 : usb-storage 1-1.4:1.0
[  112.420000] scsi 1:0:0:0: Direct-Access     HGST     TOURO Mobile     0    PQ: 0 ANSI: 6
[  112.430000] sd 1:0:0:0: [sdb] Spinning up disk...
[  113.450000] .ready
[  113.450000] sd 1:0:0:0: [sdb] 1953525168 512-byte logical blocks: (1.00 TB/931 GiB)
[  113.460000] sd 1:0:0:0: [sdb] Write Protect is off
[  113.460000] sd 1:0:0:0: [sdb] Mode Sense: 43 00 00 00
[  113.470000] sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[  113.540000]  sdb: sdb1
[  113.550000] sd 1:0:0:0: [sdb] Attached SCSI disk
[  317.920000] EXT4-fs (sda1): error count since last fsck: 12
[  317.920000] EXT4-fs (sda1): initial error at time 1428811541: htree_dirblock_to_tree:920: inode 11: block 8637
[  317.930000] EXT4-fs (sda1): last error at time 1428811543: htree_dirblock_to_tree:920: inode 75: block 8646

看上去应该是文件系统嗝儿屁,不管了,先修复下再说:

e2fsck -y -v /dev/sdb1

等了好久好久,修复完毕:

/dev/sdb1: ***** FILE SYSTEM WAS MODIFIED *****

    8803 inodes used (0.01%)
    1618 non-contiguous files (18.4%)
       6 non-contiguous directories (0.1%)
         # of inodes with ind/dind/tind blocks: 0/0/0
         Extent depth histogram: 8437/95/262
155528074 blocks used (63.69%)
       0 bad blocks
      82 large files

    8494 regular files
     300 directories
       0 character device files
       0 block device files
       0 fifos
       0 links
       0 symbolic links (0 fast symbolic links)
       0 sockets
--------
    8794 files

看上去修好了耶,挂载下:

block mount
df -h

硬盘回来了,虚惊一场

发表评论

电子邮件地址不会被公开。 必填项已用*标注

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据