Apr 27 22:40:41 slam kernel: usb 2-1: new high speed USB device using ehci_platform and address 2 Apr 27 22:40:41 slam kernel: usb 2-1: configuration #1 chosen from 1 choice Apr 27 22:40:41 slam kernel: scsi2 : SCSI emulation for USB Mass Storage devices Apr 27 22:40:46 slam kernel: Vendor: ST325031 Model: 6RY0Y1VK Rev: A Apr 27 22:40:46 slam kernel: Type: Direct-Access ANSI SCSI revision: 02 Apr 27 22:40:46 slam kernel: SCSI device sdb: 488397168 512-byte hdwr sectors (250059 MB) Apr 27 22:40:46 slam kernel: sdb: Write Protect is off Apr 27 22:40:46 slam kernel: SCSI device sdb: 488397168 512-byte hdwr sectors (250059 MB) Apr 27 22:40:46 slam kernel: sdb: Write Protect is off Apr 27 22:40:46 slam kernel: sdb: sdb1 sdb2 sdb4 < sdb5 sdb6 > Apr 27 22:40:46 slam kernel: sd 2:0:0:0: Attached scsi disk sdb Apr 27 22:40:46 slam kernel: sd 2:0:0:0: Attached scsi generic sg1 type 0
slam:~# mkdir /tmp/root slam:~# mount /dev/sdb2 /tmp/root slam:~# ls /tmp/root bin dev home lost+found proc sbin sys usr www boot etc lib mnt root share tmp var slam:~#
slam:~# ls /mnt share slam:~# mkdir /mnt/buffalo slam:~# (cd /tmp/root ; tar cf - .)|(cd /mnt/buffalo/; tar xvf -) ./ ./bin/ : :
slam:~# umount /tmp/root slam:~#
slam:~# cd /usr/local slam:/usr/local# ls bin etc games include lib man sbin share src slam:/usr/local#buffalo は無いので、mv の必要なし。
slam:/usr/local# ln -s /mnt/buffalo . slam:/usr/local# ls -l total 0 drwxrwsr-x 2 root staff 6 Nov 21 17:52 bin lrwxrwxrwx 1 root staff 12 Apr 27 23:13 buffalo -> /mnt/buffalo drwxrwsr-x 2 root staff 6 Nov 21 17:52 etc drwxrwsr-x 2 root staff 6 Nov 21 17:52 games drwxrwsr-x 2 root staff 6 Nov 21 17:52 include drwxrwsr-x 2 root staff 30 Feb 27 21:44 lib lrwxrwxrwx 1 root staff 9 Feb 27 21:44 man -> share/man drwxrwsr-x 2 root staff 54 Feb 27 21:44 sbin drwxrwsr-x 3 root staff 16 Nov 21 17:52 share drwxrwsr-x 2 root staff 6 Nov 21 17:52 src slam:/usr/local#
slam:/usr/local# cd /mnt/buffalo/var slam:/mnt/buffalo/var# ls -l total 4 drwxr-xr-x 3 root root 17 Apr 5 06:48 empty drwxr-xr-x 4 root root 27 Apr 5 06:48 lib drwxrwxrwx 5 root root 97 Apr 5 06:50 lock drwxr-xr-x 6 root root 4096 Dec 14 23:33 log drwxr-xr-x 2 root root 6 Apr 5 06:48 proftpd lrwxrwxrwx 1 root root 16 Apr 27 23:11 run -> /mnt/ram/var/run drwxr-xr-x 2 root root 17 Apr 5 06:48 spool lrwxrwxrwx 1 root root 16 Apr 27 23:11 tmp -> /mnt/ram/var/tmp drwxr-xr-x 2 48 48 6 Apr 5 06:48 www slam:/mnt/buffalo/var# rm run slam:/mnt/buffalo/var# mkdir -p run/apache slam:/mnt/buffalo/var# rm tmp slam:/mnt/buffalo/var# mkdir tmp slam:/mnt/buffalo/var# chmod 1777 tmp slam:/mnt/buffalo/var# cd ../mnt/disk1/ slam:/mnt/buffalo/mnt/disk1# mkdir share slam:/mnt/buffalo/mnt/disk1# chmod 777 share slam:/mnt/buffalo/mnt/disk1#
|
← LS-CL と LS-CHL との関係は、LS-GL と HS-DHGL との関係? |
ハックの記録 LinkStation/玄箱 をハックしよう |
→ UPS の電池寿命再び |