ふと思いついて LS-HGL 標準ファームで救出作戦を進めてみる。
root@LS-HGL487:~# mount /dev/sdb4 /tmp/mnt/ mount: wrong fs type, bad option, bad superblock on /dev/sdb4, or too many mounted file systems root@LS-HGL487:~# mount -t xfs /dev/sdb4 /tmp/mnt/ mount: wrong fs type, bad option, bad superblock on /dev/sdb4, or too many mounted file systems root@LS-HGL487:~#マウントできない
root@LS-HGL487:~# fsck.xfs /dev/sdb4 root@LS-HGL487:~#何もしないみたい
root@LS-HGL487:~# xfs_check /dev/sdb4 . and .. same for non-root directory 128 root inode -1 is missing disconnected inode 129, nlink 1 disconnected inode 130, nlink 1 sb_icount 0, counted 31296 sb_ifree 0, counted 19198 sb_fdblocks 77492609, counted 8424924 root@LS-HGL487:~#マウントしてみる
root@LS-HGL487:~# !mount mount -t xfs /dev/sdb4 /tmp/mnt/ mount: wrong fs type, bad option, bad superblock on /dev/sdb4, or too many mounted file systems root@LS-HGL487:~#あかん。
root@LS-HGL487:~# xfs_repair /dev/sdb4 Phase 1 - find and verify superblock... sb root inode value 18446744073709551615 (NULLFSINO) inconsistent with calculated value 128 resetting superblock root inode pointer to 128 sb realtime bitmap inode 18446744073709551615 (NULLFSINO) inconsistent with calculated value 129 resetting superblock realtime bitmap ino pointer to 129 sb realtime summary inode 18446744073709551615 (NULLFSINO) inconsistent with calculated value 130 resetting superblock realtime summary ino pointer to 130 Phase 2 - using internal log - zero log... - scan filesystem freespace and inode maps... - found root inode chunk Phase 3 - for each AG... - scan and clear agi unlinked lists... - process known inodes and perform inode discovery... - agno = 0 - agno = 1 : : - agno = 72 - agno = 73 - process newly discovered inodes... Phase 4 - check for duplicate blocks... - setting up duplicate extent list... - clear lost+found (if it exists) ... - check for inodes claiming duplicate blocks... - agno = 0 - agno = 1 : : - agno = 72 - agno = 73 Phase 5 - rebuild AG headers and trees... - reset superblock... Phase 6 - check inode connectivity... - resetting contents of realtime bitmap and summary inodes - ensuring existence of lost+found directory - traversing filesystem starting at / ... - traversal finished ... - traversing all unattached subtrees ... - traversals finished ... - moving disconnected inodes to lost+found ... Phase 7 - verify and correct link counts... done root@LS-HGL487:~#標準ファームは xfs_repair が Segmentation fault せず完了した。
root@LS-HGL487:~# mount /dev/sdb4 /tmp/mnt root@LS-HGL487:~# ls /tmp/mnt Backup Music buffalo dap lost+found tmp videos wk root@LS-HGL487:~#みえたぁ!!!
ヒョッとすると、これが ABI 問題?
root@LS-HGL487:~# cat /etc/rsyncd.conf uid = root gid = root use chroot = yes [disk1_share] path = /mnt/disk1/share/. read only = no root@LS-HGL487:~#/mnt/disk1/share の下なら rsync できそう。
root@LS-HGL487:~# umount /tmp/mnt root@LS-HGL487:~# mkdir /mnt/disk1/share/usb root@LS-HGL487:~# mount /dev/sdb4 /mnt/disk1/share/usb root@LS-HGL487:~# df Filesystem 1k-blocks Used Available Use% Mounted on /dev/root.old 15351 14796 555 96% /initrd /dev/sda2 4994004 255592 4738412 5% / /dev/ram1 15360 104 15256 1% /mnt/ram /dev/sda1 988212 24436 963776 2% /boot /dev/sda6 237067816 9138732 227929084 4% /mnt/disk1 /dev/sdb4 309971620 269415516 40556104 87% /mnt/disk1/share/usb root@LS-HGL487:~#
HS-DHGL から rsync を実行
yasunari@sil:/mnt/videos$ mkdir bak yasunari@sil:/mnt/videos$ cd bak yasunari@sil:/mnt/videos/bak$ rsync -rtuvpogtlH rsync://busu/disk1_share/usb/buffalo/mnt/disk1/share/videos . :videos の下だけだと 25GB ほど。
一見落着!
|
← ビデオファイルの救出 |
ハックの記録 LinkStation/玄箱 をハックしよう |
→ lenny + armel で debootstrap |