まずは最初の一歩標準ファームのコピー
標準ファームを全部コピーしてもたいした量ではないので、
全部コピーする。
ぜいたくな世の中になったものだ。
Jul 1 02:28:49 sil kernel: usb 2-1: new high speed USB device using ehci_platform and address 2 Jul 1 02:28:49 sil kernel: usb 2-1: configuration #1 chosen from 1 choice Jul 1 02:28:49 sil kernel: scsi2 : SCSI emulation for USB Mass Storage devices Jul 1 02:28:54 sil kernel: Vendor: QUANTUM Model: FIREBALLP AS20.5 Rev: 0811 Jul 1 02:28:54 sil kernel: Type: Direct-Access ANSI SCSI revision: 00 Jul 1 02:28:54 sil kernel: SCSI device sdb: 40132503 512-byte hdwr sectors (20548 MB) Jul 1 02:28:54 sil kernel: sdb: test WP failed, assume Write Enabled Jul 1 02:28:54 sil kernel: SCSI device sdb: 40132503 512-byte hdwr sectors (20548 MB) Jul 1 02:28:54 sil kernel: sdb: test WP failed, assume Write Enabled Jul 1 02:28:54 sil kernel: sdb: sdb1 sdb2 sdb4 < sdb5 sdb6 > Jul 1 02:28:54 sil kernel: sd 2:0:0:0: Attached scsi disk sdb Jul 1 02:28:54 sil kernel: sd 2:0:0:0: Attached scsi generic sg1 type 0無事 sdb として認識されている。
sil:~# mkdir /tmp/root sil:~# mount /dev/sdb2 /tmp/root sil:~# ls /tmp/root bin boot dev etc home lib lost+found mnt proc root sbin share tmp usr var www sil:~#
sil:~# df Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda2 1997884 182468 1815416 10% / tmpfs 63052 0 63052 0% /lib/init/rw tmpfs 63052 0 63052 0% /dev/shm /dev/root.old 13303 10871 2432 82% /initrd /dev/sda1 194443 10303 174101 6% /boot /dev/sda4 309971620 1200 309970420 1% /mnt /dev/sdb2 484672 236428 248244 49% /tmp/root sil:~# ls /mnt sil:~# mkdir /mnt/buffalo sil:~# (cd /tmp/root ; tar cf - .)|(cd /mnt/buffalo/; tar xvf -) : :
sil:~# umount /tmp/root sil:~#
sil:~# cd /usr/local sil:/usr/local# ls bin buffalo games include lib man sbin share src sil:/usr/local# mv buffalo buffalo.orig sil:/usr/local# ln -s /mnt/buffalo . sil:/usr/local# ls -l total 0 drwxrwsr-x 2 root staff 30 Jun 24 13:01 bin lrwxrwxrwx 1 root staff 12 Jul 1 02:34 buffalo -> /mnt/buffalo drwxr-xr-x 8 root staff 67 Jun 24 13:01 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 Jun 24 12:57 man -> share/man drwxrwsr-x 2 root staff 68 Jun 24 13:01 sbin drwxrwsr-x 3 root staff 16 Jun 24 12:57 share drwxrwsr-x 2 root staff 6 Sep 26 2006 src sil:/usr/local#
sil:/usr/local# cd /mnt/buffalo/var sil:/mnt/buffalo/var# ls -l total 8 drwxr-xr-x 2 root root 6 Apr 19 12:30 backup drwxr-xr-x 2 root root 6 Apr 19 12:30 cache drwxr-xr-x 3 root root 17 Jun 24 08:13 empty drwxr-xr-x 4 root root 27 Jun 24 08:13 lib drwxrwxrwx 5 root root 93 Jun 24 13:09 lock drwxr-xr-x 6 root root 4096 Jun 24 12:43 log drwxr-xr-x 4 root root 4096 Jun 24 08:14 pcast drwxr-xr-x 2 root root 6 Jun 24 08:13 proftpd lrwxrwxrwx 1 root root 16 Jul 1 02:33 run -> /mnt/ram/var/run drwxr-xr-x 2 root root 17 Jul 1 02:33 spool lrwxrwxrwx 1 root root 16 Jul 1 02:33 tmp -> /mnt/ram/var/tmp drwxr-xr-x 2 48 48 6 Jun 24 08:13 www sil:/mnt/buffalo/var#run, tmp は /mnt/ram/var へのシンボリックリンクなので、 これを削除して新たに作成する
sil:/mnt/buffalo/var# rm run sil:/mnt/buffalo/var# mkdir -p run/apache sil:/mnt/buffalo/var# rm tmp sil:/mnt/buffalo/var# mkdir tmp sil:/mnt/buffalo/var# chmod 1777 tmp sil:/mnt/buffalo/var#/mnt/disk1/share も作成する。
sil:/mnt/buffalo/var# cd ../mnt/disk1/ sil:/mnt/buffalo/mnt/disk1# mkdir share sil:/mnt/buffalo/mnt/disk1# chmod 777 share sil:/mnt/buffalo/mnt/disk1#
|
← resolv.conf |
ハックの記録 LinkStation/玄箱 をハックしよう |
→ root グループへ登録 |