まずは、 標準ファームのコピー
Feb 9 09:17:15 hackkit kernel: usb 2-1: USB disconnect, address 2 Feb 9 09:17:32 hackkit kernel: usb 2-1: new high speed USB device using ehci_platform and address 3 Feb 9 09:17:32 hackkit kernel: usb 2-1: configuration #1 chosen from 1 choice Feb 9 09:17:32 hackkit kernel: scsi3 : SCSI emulation for USB Mass Storage devices Feb 9 09:17:37 hackkit kernel: Vendor: SAMSUNG Model: JDPPB08546 Rev: 0-05 Feb 9 09:17:37 hackkit kernel: Type: Direct-Access ANSI SCSI revision: 02 Feb 9 09:17:37 hackkit kernel: SCSI device sdb: 488397168 512-byte hdwr sectors (250059 MB) Feb 9 09:17:37 hackkit kernel: sdb: Write Protect is off Feb 9 09:17:37 hackkit kernel: SCSI device sdb: 488397168 512-byte hdwr sectors (250059 MB) Feb 9 09:17:37 hackkit kernel: sdb: Write Protect is off Feb 9 09:17:37 hackkit kernel: sdb: sdb1 sdb2 sdb4 < sdb5 sdb6 > Feb 9 09:17:37 hackkit kernel: sd 3:0:0:0: Attached scsi disk sdb Feb 9 09:17:37 hackkit kernel: sd 3:0:0:0: Attached scsi generic sg1 type 0
hackkit:~# mkdir /tmp/root hackkit:~# mount /dev/sdb2 /tmp/root hackkit:~# ls /tmp/root bin boot dev etc home lib lost+found mnt proc root sbin share tmp usr var www hackkit:~#
hackkit:~# mkdir /mnt/buffalo hackkit:~# (cd /tmp/root ; tar cf - .)|(cd /mnt/buffalo/; tar xvf -) : :
hackkit:~# umount /tmp/root hackkit:~#
hackkit:~# cd /usr/local hackkit:/usr/local# ls bin buffalo games include lib man sbin share src hackkit:/usr/local# mv buffalo buffalo.orig hackkit:/usr/local# ln -s /mnt/buffalo . hackkit:/usr/local# ls -l total 0 drwxrwsr-x 2 root staff 30 Jan 8 17:17 bin lrwxrwxrwx 1 root staff 12 Feb 9 09:35 buffalo -> /mnt/buffalo drwxr-xr-x 8 root staff 67 Jan 8 17:20 buffalo.orig drwxrwsr-x 2 root staff 6 Sep 26 2006 games drwxrwsr-x 2 root staff 6 Sep 26 2006 include drwxrwsr-x 2 root staff 6 Sep 26 2006 lib lrwxrwxrwx 1 root staff 9 Jan 8 17:17 man -> share/man drwxrwsr-x 2 root staff 68 Jan 8 17:20 sbin drwxrwsr-x 3 root staff 16 Jan 8 17:17 share drwxrwsr-x 2 root staff 6 Sep 26 2006 src hackkit:/usr/local#
hackkit:/usr/local# cd /mnt/buffalo/var/ hackkit:/mnt/buffalo/var# ls -al total 12 drwxr-xr-x 12 root root 142 Feb 9 09:30 . drwxr-xr-x 17 root root 4096 Feb 9 09:30 .. drwxr-xr-x 2 root root 6 Apr 19 2007 backup drwxr-xr-x 2 root root 6 Apr 19 2007 cache drwxr-xr-x 3 root root 17 Dec 4 09:03 empty drwxr-xr-x 4 root root 27 Dec 4 09:03 lib drwxrwxrwx 5 root root 93 Jan 8 17:21 lock drwxr-xr-x 6 root root 4096 Jan 8 17:09 log drwxr-xr-x 4 root root 4096 Jan 8 06:36 pcast drwxr-xr-x 2 root root 6 Dec 4 09:03 proftpd lrwxrwxrwx 1 root root 16 Feb 9 09:30 run -> /mnt/ram/var/run drwxr-xr-x 2 root root 17 Feb 9 09:30 spool lrwxrwxrwx 1 root root 16 Feb 9 09:30 tmp -> /mnt/ram/var/tmp drwxr-xr-x 2 48 48 6 Dec 4 09:03 www hackkit:/mnt/buffalo/var# rm run hackkit:/mnt/buffalo/var# mkdir -p run/apache hackkit:/mnt/buffalo/var# rm tmp hackkit:/mnt/buffalo/var# mkdir tmp hackkit:/mnt/buffalo/var# chmod 1777 tmp hackkit:/mnt/buffalo/var# cd ../mnt/disk1/ hackkit:/mnt/buffalo/mnt/disk1# mkdir share hackkit:/mnt/buffalo/mnt/disk1# chmod 777 share hackkit:/mnt/buffalo/mnt/disk1#
|
← 新型 HS-DHGL にハックキット(11)ftp サーバ、dhcp サーバ |
ハックの記録 LinkStation/玄箱 をハックしよう |
→ 新型 HS-DHGL でハック de 録!!(2)設定変更 |