Aug 31 12:42:29 ude kernel: usb 2-1: new high speed USB device using ehci_platform and address 2 Aug 31 12:42:29 ude kernel: usb 2-1: configuration #1 chosen from 1 choice Aug 31 12:42:29 ude kernel: scsi2 : SCSI emulation for USB Mass Storage devices Aug 31 12:42:34 ude kernel: Vendor: WDC WD25 Model: WD-WXE508EV3494 Rev: 1A01 Aug 31 12:42:34 ude kernel: Type: Direct-Access ANSI SCSI revision: 02 Aug 31 12:42:34 ude kernel: SCSI device sdb: 488397168 512-byte hdwr sectors (250059 MB) Aug 31 12:42:34 ude kernel: sdb: Write Protect is off Aug 31 12:42:34 ude kernel: SCSI device sdb: 488397168 512-byte hdwr sectors (250059 MB) Aug 31 12:42:34 ude kernel: sdb: Write Protect is off Aug 31 12:42:34 ude kernel: sdb: sdb1 sdb2 sdb4 < sdb5 sdb6 > Aug 31 12:42:34 ude kernel: sd 2:0:0:0: Attached scsi disk sdb Aug 31 12:42:34 ude kernel: sd 2:0:0:0: Attached scsi generic sg1 type 0
ude:~# fdisk -l /dev/sdb Disk /dev/sdb: 250.0 GB, 250059350016 bytes 255 heads, 63 sectors/track, 30401 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sdb1 1 125 1004031 83 Linux /dev/sdb2 126 748 5004247+ 83 Linux /dev/sdb4 749 30401 238187722+ 5 Extended /dev/sdb5 749 873 1004031 82 Linux swap / Solaris /dev/sdb6 874 30295 236332183+ 83 Linux ude:~#なんか普通。
ude:~# mkdir /tmp/boot ude:~# mount /dev/sdb1 /tmp/boot ude:~# ls /tmp/boot conf_save.tgz hddrootfs.buffalo.updated.done initrd.buffalo log.tgz lost+found uImage.buffalo ude:~# umount /tmp/boot ude:~#予想通り、sdb1 は /boot
ude:~# mkdir /tmp/root ude:~# mount /dev/sdb2 /tmp/root ude:~# ls /tmp/root bin boot dev etc home initrd lib libexec mnt modules proc root sbin sys tmp usr var www ude:~#こちらも予想通り、sdb2 は root
ude:~# ls -l /tmp/root/usr/sbin/telnetd lrwxrwxrwx 1 root root 17 Nov 1 2007 /tmp/root/usr/sbin/telnetd -> ../../bin/busybox ude:~# umount /tmp/root ude:~#あるやん。
ude:~# mkdir /tmp/mnt ude:~# mount /dev/sdb6 /tmp/mnt mount: /dev/sdb6: can't read superblock ude:~#さすがに RAID0 でストライピングされたパーティションはマウントできない。
Aug 31 13:06:17 ude kernel: usb 2-1: new high speed USB device using ehci_platform and address 3 Aug 31 13:06:18 ude kernel: usb 2-1: configuration #1 chosen from 1 choice Aug 31 13:06:18 ude kernel: scsi3 : SCSI emulation for USB Mass Storage devices Aug 31 13:06:23 ude kernel: Vendor: WDC WD25 Model: WD-WXE508LP7200 Rev: 1A01 Aug 31 13:06:23 ude kernel: Type: Direct-Access ANSI SCSI revision: 02 Aug 31 13:06:23 ude kernel: SCSI device sdb: 488397168 512-byte hdwr sectors (250059 MB) Aug 31 13:06:23 ude kernel: sdb: Write Protect is off Aug 31 13:06:23 ude kernel: SCSI device sdb: 488397168 512-byte hdwr sectors (250059 MB) Aug 31 13:06:23 ude kernel: sdb: Write Protect is off Aug 31 13:06:23 ude kernel: sdb: sdb1 sdb2 sdb4 < sdb5 sdb6 > Aug 31 13:06:23 ude kernel: sd 3:0:0:0: Attached scsi disk sdb Aug 31 13:06:23 ude kernel: sd 3:0:0:0: Attached scsi generic sg1 type 0
ude:~# fdisk -l /dev/sdb Disk /dev/sdb: 250.0 GB, 250059350016 bytes 255 heads, 63 sectors/track, 30401 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sdb1 1 125 1004031 83 Linux /dev/sdb2 126 748 5004247+ 83 Linux /dev/sdb4 749 30401 238187722+ 5 Extended /dev/sdb5 749 873 1004031 82 Linux swap / Solaris /dev/sdb6 874 30295 236332183+ 83 Linux ude:~#パーティション構成は全く同じ。 まあ、予想通り。
ude:~# mount /dev/sdb1 /tmp/boot ude:~# ls /tmp/boot conf_save.tgz hddrootfs.buffalo.updated.done initrd.buffalo log.tgz lost+found uImage.buffalo ude:~# umount /tmp/boot ude:~# mount /dev/sdb2 /tmp/root ude:~# ls /tmp/root bin boot dev etc home initrd lib libexec mnt modules proc root sbin sys tmp usr var www ude:~# ls -l /tmp/root/usr/sbin/telnetd lrwxrwxrwx 1 root root 17 Nov 1 2007 /tmp/root/usr/sbin/telnetd -> ../../bin/busybox ude:~#中身も全く同じ?
ude:~# ls -l /tmp/root/var/log/messages -rw------- 1 root root 1530 Aug 31 12:27 /tmp/root/var/log/messages ude:~#右側は、12:27。
もう一回左側をマウントして、messages のタイムスタンプを見てみると、、
ude:~# mount /dev/sdb2 /tmp/root ude:~# ls -l /tmp/root/var/log/messages -rw------- 1 root root 1530 Aug 31 12:27 /tmp/root/var/log/messages ude:~# tail !$ tail /tmp/root/var/log/messages Aug 31 12:26:58 LS-WSGL678 clientUtil_server[1420]: ap_serv_exit() exit ap_servd. code=15 Aug 31 12:26:59 LS-WSGL678 nmbd[1409]: [2008/08/31 12:26:59, 0] nmbd/nmbd.c:terminate(58) Aug 31 12:26:59 LS-WSGL678 nmbd[1409]: Got SIGTERM: going down... Aug 31 12:26:59 LS-WSGL678 kernel: NET: Registered protocol family 5 Aug 31 12:27:03 LS-WSGL678 dhcpcd[1043]: terminating on signal 15 Aug 31 12:27:04 LS-WSGL678 dhcpcd.exe: interface eth0 has been brought down Aug 31 12:27:07 LS-WSGL678 errormon[21235]: errormon-ver.1.01 started Aug 31 12:27:08 LS-WSGL678 kernel: Kernel logging (proc) stopped. Aug 31 12:27:08 LS-WSGL678 kernel: Kernel log daemon terminating. Aug 31 12:27:08 LS-WSGL678 exiting on signal 15 ude:~#いっしょ。
|
← ファームウェア 1.05 へのアップデート |
ハックの記録 LinkStation/玄箱 をハックしよう |
→ HDD のバックアップ |