Oct 15 10:41:46 qube kernel: usb 2-1: new high speed USB device using ehci_marvell and address 2 Oct 15 10:41:46 qube kernel: usb 2-1: configuration #1 chosen from 1 choice Oct 15 10:41:46 qube kernel: scsi2 : SCSI emulation for USB Mass Storage devices Oct 15 10:41:51 qube kernel: scsi 2:0:0:0: Direct-Access ViPowER VP-89118(SD1) 2.10 PQ: 0 ANSI: 4 Oct 15 10:41:51 qube kernel: sd 2:0:0:0: [sdc] 1953525168 512-byte hardware sectors (1000205 MB) Oct 15 10:41:51 qube kernel: sd 2:0:0:0: [sdc] Write Protect is off Oct 15 10:41:51 qube kernel: sd 2:0:0:0: [sdc] 1953525168 512-byte hardware sectors (1000205 MB) Oct 15 10:41:51 qube kernel: sd 2:0:0:0: [sdc] Write Protect is off Oct 15 10:41:51 qube kernel: sdc: sdc1 sdc2 sdc3 sdc4 Oct 15 10:41:51 qube kernel: sd 2:0:0:0: [sdc] Attached SCSI disk Oct 15 10:41:51 qube kernel: sd 2:0:0:0: Attached scsi generic sg2 type 0sdc として認識
root@qube:~# xfs_repair /dev/sdc2 Phase 1 - find and verify superblock... Phase 2 - using internal log - zero log... ERROR: The filesystem has valuable metadata changes in a log which needs to be replayed. Mount the filesystem to replay the log, and unmount it before re-running xfs_repair. If you are unable to mount the filesystem, then use the -L option to destroy the log and attempt a repair. Note that destroying the log may cause corruption -- please attempt a mount of the filesystem before doing this. root@qube:~#「もう一回 xfs_repair を実行する前に このファイルシステムをマウントして アンマウントしろ」と書いてある(ように読める)
root@qube:~# mkdir /tmp/sdc2 root@qube:~# mount /dev/sdc2 /tmp/sdc2/ root@qube:~# umount /tmp/sdc2/ root@qube:~# !xfs_ xfs_repair /dev/sdc2 Phase 1 - find and verify superblock... Phase 2 - using internal log - zero log... - scan filesystem freespace and inode maps... expected level -1 got 0 in btcnt block 0/2 bad btree nrecs (1, min=170, max=340) in btcnt block 0/2 block (1,40594-40594) multiply claimed by cnt space tree, state - 2 agf_freeblks 209168, counted 209167 in ag 1 inode chunk claims used block, inobt block - agno 1, bno 4, inopb 16 sb_fdblocks 875930, counted 625423 - found root inode chunk Phase 3 - for each AG... - scan and clear agi unlinked lists... found inodes not in the inode allocation tree - process known inodes and perform inode discovery... - agno = 0 bad attribute format 0 in inode 128, resetting value imap claims a free inode 130 is in use, correcting imap and clearing inode cleared realtime summary inode 130 - agno = 1 - agno = 2 - agno = 3 imap claims a free inode 12975886 is in use, correcting imap and clearing inode cleared inode 12975886 - process newly discovered inodes... Phase 4 - check for duplicate blocks... - setting up duplicate extent list... - check for inodes claiming duplicate blocks... - agno = 0 entry "mnt" at block 0 offset 64 in directory inode 128 references non-existent inode 4194368 clearing inode number in entry at offset 64... : : resetting inode 12842479 nlinks from 10 to 6 resetting inode 12842485 nlinks from 4 to 2 resetting inode 12842486 nlinks from 4 to 3 resetting inode 12842487 nlinks from 5 to 3 resetting inode 12842488 nlinks from 3 to 2 resetting inode 12842489 nlinks from 3 to 2 resetting inode 12842492 nlinks from 3 to 2 resetting inode 12842496 nlinks from 3 to 2 resetting inode 12842497 nlinks from 5 to 3 resetting inode 12842502 nlinks from 7 to 4 resetting inode 12842503 nlinks from 3 to 2 resetting inode 12844346 nlinks from 2 to 1 resetting inode 12851283 nlinks from 4 to 2 resetting inode 12851286 nlinks from 2 to 1 resetting inode 12851287 nlinks from 3 to 2 resetting inode 12851316 nlinks from 7 to 4 resetting inode 12853972 nlinks from 21 to 12 resetting inode 12853982 nlinks from 10 to 6 resetting inode 12853986 nlinks from 9 to 6 resetting inode 12854007 nlinks from 6 to 4 resetting inode 12854008 nlinks from 3 to 2 resetting inode 12868674 nlinks from 7 to 4 resetting inode 12868677 nlinks from 3 to 2 done root@qube:~#なんか、大量のメッセージが。。。
root@qube:~# xfs_repair /dev/sdc2 Phase 1 - find and verify superblock... 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 = 2 - agno = 3 - process newly discovered inodes... Phase 4 - check for duplicate blocks... - setting up duplicate extent list... - check for inodes claiming duplicate blocks... - agno = 0 - agno = 1 - agno = 2 - agno = 3 Phase 5 - rebuild AG headers and trees... - reset superblock... Phase 6 - check inode connectivity... - resetting contents of realtime bitmap and summary inodes - traversing filesystem ... - traversal finished ... - moving disconnected inodes to lost+found ... Phase 7 - verify and correct link counts... done root@qube:~#すっきりしたみたい。
root@qube:~# mount /dev/sdc2 /tmp/sdc2/ root@qube:~# ls /tmp/sdc2/ bin boot lost+found opt root srv sys usr var root@qube:~#一見正常に見えるが、、、/dev とか /etc とか、、、どこ行った??
root@qube:~# cd /tmp/sdc2/ root@qube:/tmp/sdc2# ls /mnt/Backup/linkstation/sil/*Sat* /mnt/Backup/linkstation/sil/sil-bin.Sat.tar.gz /mnt/Backup/linkstation/sil/sil-boot.Sat.tar.gz /mnt/Backup/linkstation/sil/sil-buffalo.Sat.tar.gz /mnt/Backup/linkstation/sil/sil-dev.Sat.tar.gz /mnt/Backup/linkstation/sil/sil-etc.Sat.tar.gz /mnt/Backup/linkstation/sil/sil-home.Sat.tar.gz /mnt/Backup/linkstation/sil/sil-initrd.Sat.tar.gz /mnt/Backup/linkstation/sil/sil-lib.Sat.tar.gz /mnt/Backup/linkstation/sil/sil-media.Sat.tar.gz /mnt/Backup/linkstation/sil/sil-opt.Sat.tar.gz /mnt/Backup/linkstation/sil/sil-root.Sat.tar.gz /mnt/Backup/linkstation/sil/sil-sbin.Sat.tar.gz /mnt/Backup/linkstation/sil/sil-selinux.Sat.tar.gz /mnt/Backup/linkstation/sil/sil-srv.Sat.tar.gz /mnt/Backup/linkstation/sil/sil-sys.Sat.tar.gz /mnt/Backup/linkstation/sil/sil-usr.Sat.tar.gz /mnt/Backup/linkstation/sil/sil-var.Sat.tar.gz /mnt/Backup/linkstation/sil/sil-yasunari.Sat.tar.gz root@qube:/tmp/sdc2#/bin とかは xfs_repair 後も HDD に残っていたが、 信用出来ないので、全部上書きリストアする。
root@qube:/tmp/sdc2# tar zxvf /mnt/Backup/linkstation/sil/sil-bin.Sat.tar.gz bin/ bin/gzexe : : root@qube:/tmp/sdc2# tar zxvf /mnt/Backup/linkstation/sil/sil-dev.Sat.tar.gz : : root@qube:/tmp/sdc2# ^dev^etc tar zxvf /mnt/Backup/linkstation/sil/sil-etc.Sat.tar.gz etc/ etc/default/ : : root@qube:/tmp/sdc2# ^etc^home tar zxvf /mnt/Backup/linkstation/sil/sil-home.Sat.tar.gz : : root@qube:/tmp/sdc2# tar zxvf /mnt/Backup/linkstation/sil/sil-lib.Sat.tar.gz : : root@qube:/tmp/sdc2# ^lib^media tar zxvf /mnt/Backup/linkstation/sil/sil-media.Sat.tar.gz media/ root@qube:/tmp/sdc2# ^media^opt tar zxvf /mnt/Backup/linkstation/sil/sil-opt.Sat.tar.gz opt/ root@qube:/tmp/sdc2# ^opt^root tar zxvf /mnt/Backup/linkstation/sil/sil-root.Sat.tar.gz root/ : : root@qube:/tmp/sdc2# ^root^sbin tar zxvf /mnt/Backup/linkstation/sil/sil-sbin.Sat.tar.gz sbin/ : : root@qube:/tmp/sdc2# ^sbin^selinux tar zxvf /mnt/Backup/linkstation/sil/sil-selinux.Sat.tar.gz selinux/ root@qube:/tmp/sdc2# ^selinux^srv tar zxvf /mnt/Backup/linkstation/sil/sil-srv.Sat.tar.gz srv/ root@qube:/tmp/sdc2# tar zxvf /mnt/Backup/linkstation/sil/sil-usr.Sat.tar.gz : : root@qube:/tmp/sdc2# ^usr^var tar zxvf /mnt/Backup/linkstation/sil/sil-var.Sat.tar.gz : : root@qube:/tmp/sdc2#マウントポイントも作る
root@qube:/tmp/sdc2# mkdir initrd root@qube:/tmp/sdc2# mkdir mnt root@qube:/tmp/sdc2# mkdir proc root@qube:/tmp/sdc2# mkdir srv root@qube:/tmp/sdc2# mkdir sys root@qube:/tmp/sdc2# mkdir tmp root@qube:/tmp/sdc2# chmod 1777 tmp root@qube:/tmp/sdc2#こんなところか、、、
root@qube:/tmp/sdc2# ls lost+found/ 12583044 12626872 12703681 8429797 8460062 8472190 8591837 8778093 12583046 12626877 12703687 8429799 8460066 8472195 8591838 8778094 12583049 12626911 12703710 8429803 8460091 8472207 8602726 8778095 12583062 12627872 12703713 8429806 8460094 8472209 8602736 8778096 12583066 12627873 12703725 8429808 8461454 8472229 8602738 8778097 12583071 12627907 12704736 8429813 8461462 8472265 8602741 8778129 12583077 12636584 12704737 8429817 8461493 8472271 8602743 8778137 12583080 12636603 12704756 8429824 8461494 8472275 8607430 8778154 12583081 12636626 12706934 8429829 8461495 8472279 8607436 8778237 12583101 12638399 12708729 8429831 8461496 8472281 8607437 8778238 12583103 12638407 12774338 8429841 8461497 8476082 8607438 8778239 12584465 12638417 12774342 8430886 8461500 8477761 8607439 8778240 12584468 12646541 12774346 8430887 8462499 8477800 8607440 8791520 12584469 12646574 12774351 8430929 8462511 8477802 8607441 8791521 12584472 12656660 12774356 8430933 8462514 8484038 8607442 8791522 12584495 12656687 12835557 8430936 8462524 8484040 8607443 8791523 12584508 12656695 12839220 8430942 8462527 8484054 8607444 8791524 12588032 12676449 12839222 8437730 8462537 8484088 8607445 8791555 12588039 12676451 12839224 8437733 8462547 8484089 8607446 8791556 12588042 12676467 12839226 8437744 8463174 8484091 8607447 8791557 12588045 12676479 12840236 8437751 8463179 8491892 8607448 8791558 12588051 12676482 12840261 8437754 8463181 8491895 8607449 8791559 12588055 12676485 12840268 8437757 8463207 8491899 8607450 8791650 12588058 12676488 12840287 8437762 8463209 8491901 8607451 8791714 12588073 12676489 12842474 8437766 8463225 8491908 8607452 8791716 12588084 12676509 12842478 8437771 8463227 8491914 8607453 8791717 12588091 12677366 12842479 8437779 8470391 8491932 8607454 8791718 12588095 12677367 12842485 8437785 8470393 8493129 8607455 8791732 12589735 12677368 12842486 8437787 8470406 8493132 8610128 8791733 12589743 12677369 12842487 8439780 8470408 8493136 8610130 8791734 12589747 12677370 12842488 8439782 8470431 8493139 8610131 8791735 12589751 12677371 12842489 8439792 8471906 8493142 8610134 8791736 12589757 12677377 12842490 8439796 8471928 8493147 8610140 8791766 12589761 12677381 12842492 8439800 8471934 8493151 8610142 8791767 12589768 12677383 12842494 8439805 8471956 8493161 8617188 8791769 12589791 12677384 12842496 8439810 8471966 8493164 8617190 8791770 12591941 12677385 12842497 8439815 8471971 8493170 8617217 8800247 12591950 12677386 12842498 8439821 8471984 8493172 8617219 8800261 12591955 12677387 12851316 8439826 8471991 8493176 8617221 8800265 12591959 12677388 12851318 8439828 8471992 8493183 8617223 8800266 12591964 12677389 12851319 8439831 8471993 8495528 8620064 8800267 12591968 12677397 12851320 8439832 8471994 8495530 8620123 8800269 12591972 12677398 12853973 8442566 8471995 8495533 8634456 8800270 12591981 12677399 12853974 8442570 8471996 8495538 8634460 8800271 12591987 12677400 12853993 8442578 8471997 8495541 8634462 8800273 12591991 12677401 12853994 8442582 8472004 8495553 8664198 8800274 12591998 12677402 12853995 8442585 8472005 8495555 8664209 8800275 12595334 12677403 12853996 8442593 8472006 8495564 8716514 8800277 12595341 12697060 12853998 8442597 8472007 8495566 8731943 8800279 12595348 12697061 12854000 8442599 8472008 8498605 8731968 8800280 12595353 12697062 12854002 8442605 8472009 8498619 8731969 8800281 12597613 12697063 12854004 8442606 8472010 8498622 8731970 8804904 12606169 12697064 12854006 8442611 8472017 8499495 8731971 8804912 12606223 12697065 12854011 8442614 8472018 8499509 8731972 8804918 12606232 12697066 12868675 8442621 8472019 8499544 8731973 8804921 12606233 12697069 12868678 8446560 8472020 8500766 8731974 8804939 12606240 12697076 12868724 8446564 8472021 8500841 8731975 8804940 12606244 12697078 12975887 8446567 8472022 8500845 8731976 8804941 12606251 12697079 12975888 8446572 8472023 8507305 8731977 8804942 12606254 12697080 13313441 8446580 8472030 8507306 8731978 8804943 12606257 12697081 13313442 8449818 8472031 8507314 8731979 8804944 12606265 12697084 13313446 8449823 8472160 8510659 8731980 8804945 12606269 12697091 13313448 8449831 8472161 8510661 8731981 8804946 12611553 12697093 13313456 8449833 8472162 8510683 8731982 8804947 12611557 12697094 13313458 8449837 8472163 8510702 8731983 8804948 12611561 12697096 13313461 8449845 8472164 8512902 8756550 8804949 12611582 12697097 13313463 8449850 8472171 8520251 8756552 8804950 12615245 12697098 13313482 8449853 8472172 8520252 8756553 8804958 12615295 12697100 13313502 8455328 8472173 8520253 8756560 8883392 12618425 12697101 13313503 8455333 8472174 8533309 8756574 8883393 12624031 12697102 8429698 8455341 8472175 8533311 8756585 8883413 12624035 12697106 8429699 8455346 8472176 8542831 8756587 8883414 12624040 12697108 8429718 8455351 8472177 8542844 8756589 8883528 12624048 12697110 8429743 8455355 8472184 8542858 8764844 8883529 12624050 12697112 8429744 8455362 8472185 8542860 8764895 12626859 12702832 8429747 8455367 8472186 8542862 8777979 12626861 12702836 8429749 8457619 8472187 8542865 8777985 12626864 12702840 8429793 8457649 8472188 8542867 8777991 12626870 12702845 8429796 8457650 8472189 8542869 8778092 root@qube:/tmp/sdc2#大量の紛失物。
root@qube:/tmp/sdc2# df Filesystem 1K-blocks Used Available Use% Mounted on /dev/md1 4993920 357048 4636872 8% / tmpfs 62888 0 62888 0% /lib/init/rw tmpfs 62888 0 62888 0% /dev/shm /dev/root.old 31729 16849 14880 54% /initrd /dev/md0 995928 179508 816420 19% /boot /dev/sda6 236216764 12453368 223763396 6% /mnt/disk1 /dev/sdb6 968628556 847560036 121068520 88% /mnt/disk2 /dev/sdc2 3997976 684144 3313832 18% /tmp/sdc2 root@qube:/tmp/sdc2# rm -fr lost+found/* root@qube:/tmp/sdc2# df Filesystem 1K-blocks Used Available Use% Mounted on /dev/md1 4993920 357048 4636872 8% / tmpfs 62888 0 62888 0% /lib/init/rw tmpfs 62888 0 62888 0% /dev/shm /dev/root.old 31729 16849 14880 54% /initrd /dev/md0 995928 179508 816420 19% /boot /dev/sda6 236216764 12453368 223763396 6% /mnt/disk1 /dev/sdb6 968628556 847560036 121068520 88% /mnt/disk2 /dev/sdc2 3997976 494248 3503728 13% /tmp/sdc2 root@qube:/tmp/sdc2#5% 程が紛失物だった模様
さて、こんなところか。。。
root@qube:/tmp/sdc2# cd / root@qube:/# umount /tmp/sdc2/ root@qube:/#
Orion1 CPU = Low === BUFFALO LS-GL U-Boot. === ** LOADER ** ** BUFFALO BOARD: BUFFALO_BOARD_LS_GL LE (CFG_ENV_ADDR=fffff000) U-Boot 1.1.1 (Apr 18 2007 - 18:35:44) Marvell version: 1.12.1 - TINY DRAM CS[0] base 0x00000000 size 128MB DRAM Total size 128MB [256kB@fffc0000] [0kB@f8000000] ## Unknown FLASH at f8000000: Size = 0x00000000 = 0 MB Flash: 256 kB Addresses 20M - 0M are saved for the U-Boot usage. Mem malloc Initialization (20M - 16M): Done Soc: 88F5182 A2 CPU: ARM926 (Rev 0) running @ 400Mhz Orion 1 streaming disabled SysClock = 200Mhz , TClock = 166Mhz USB 0: host mode USB 1: host mode PCI 0: PCI Express Root Complex Interface PCI 1: Conventional PCI, speed = 33000000 Net: egiga0 [PRIME] Using 88E1118 phy Marvell Serial ATA Adapter Integrated Sata device found Device 0: OK Model: SAMSUNG HD103UJ Firm: 1AA01114 Ser#: S1B9J9AQC00304 Type: Hard Disk Supports 48-bit addressing Capacity: 953869.7 MB = 931.5 GB (1953525168 x 512) Using device ide0, partition 1 Loading from block device ide device 0, partition 1: Name: hda1 Type: U-Boot File:/initrd.buffalo 4697439 bytes read Using device ide1, partition 1 ** Bad partition 1 ** Booting from Device 0 hit any key to switch tftp boot. Hit any key to stop autoboot: 0 Hit any key to stop autoboot: 0 Reset IDE: Marvell Serial ATA Adapter Integrated Sata device found Device 0: OK Model: SAMSUNG HD103UJ Firm: 1AA01114 Ser#: S1B9J9AQC00304 Type: Hard Disk Supports 48-bit addressing Capacity: 953869.7 MB = 931.5 GB (1953525168 x 512) Using device ide0, partition 1 Loading from block device ide device 0, partition 1: Name: hda1 Type: U-Boot File:/uImage.buffalo 1834908 bytes read Using device ide1, partition 1 ** Bad partition 1 ** <<stop_sound>> ## Booting image at 00100000 ... Image Name: Linux-2.6.16.16-arm1 Created: 2007-08-31 4:07:21 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 1834844 Bytes = 1.7 MB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK OK ## Loading Ramdisk Image at 00800000 ... Image Name: initrd Created: 2009-07-02 12:44:53 UTC Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 4697375 Bytes = 4.5 MB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK Starting kernel ... arg:console=ttyS0,115200 root=/dev/sda2 rw initrd=0x00800040,15M panic=5 BOOTVER=1.10 CONFIG_BUFFALO_PLATFORM CONFIG_BUFFALO_LINKSTATION_LSGL --- Uncompressing Linux....................................................................................................................... done, booting the kernel. Linux version 2.6.16.16-arm1 (root@dh2-bs) (gcc version 3.4.4 (release) (CodeSourcery ARM 2005q3-2)) #6 Fri Aug 31 13:07:15 JST 2007 CPU: ARM926EJ-Sid(wb) [41069260] revision 0 (ARMv5TEJ) Machine: MV-88fxx81 Using UBoot passing parameters structure Sys Clk = 200000000, Tclk = 166664740 : : EOF Detect. Daemoning.... killall: mt-daapd: no process killed Start services: EPGd iRCommander EPGd : version 1.1.0 0.2.0 Starting clientUtil_server:starting on eth0 Starting services: rarpd tftpd rarpcfgd fwupdated. Debian GNU/Linux 5.0 sil ttyS0 sil login: Start services: mediaserver HwCtrlPid = [1528]無事立ち上がってきた。
やれやれ
|
← 死んだ HS-DHGL |
ハックの記録 LinkStation/玄箱 をハックしよう |
→ HDD の換装 |