Nov 4 04:04:31 hackkit kernel: Vendor: ST32122A Model: Rev: 0811 Nov 4 04:04:31 hackkit kernel: Type: Direct-Access ANSI SCSI revision: 00 Nov 4 04:04:31 hackkit kernel: SCSI device sdb: 4124736 512-byte hdwr sectors (2112 MB) Nov 4 04:04:31 hackkit kernel: SCSI device sdb: 4124736 512-byte hdwr sectors (2112 MB) Nov 4 04:04:31 hackkit kernel: sdb: sdb1 sdb2 sdb3 Nov 4 04:04:31 hackkit kernel: Attached scsi disk sdb at scsi2, channel 0, id 0, lun 0 Nov 4 04:04:31 hackkit kernel: Attached scsi generic sg1 at scsi2, channel 0, id 0, lun 0, type 0
hackkit:~# mkfs -j /dev/sdb1 mke2fs 1.37 (21-Mar-2005) Filesystem label= OS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) 192384 inodes, 384353 blocks 19217 blocks (5.00%) reserved for the super user First data block=0 12 block groups 32768 blocks per group, 32768 fragments per group 16032 inodes per group Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912 Writing inode tables: done Creating journal (8192 blocks): done Writing superblocks and filesystem accounting information: done This filesystem will be automatically checked every 22 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override. hackkit:~#
hackkit:~# fsck /dev/sdb1 fsck 1.37 (21-Mar-2005) e2fsck 1.37 (21-Mar-2005) /dev/sdb1: clean, 11/192384 files, 14255/384353 blocks hackkit:~# fsck -f /dev/sdb1 fsck 1.37 (21-Mar-2005) e2fsck 1.37 (21-Mar-2005) Pass 1: Checking inodes, blocks, and sizes Pass 2: Checking directory structure Pass 3: Checking directory connectivity Pass 4: Checking reference counts Pass 5: Checking group summary information /dev/sdb1: 11/192384 files (0.0% non-contiguous), 14255/384353 blocks hackkit:~#
刺したままリブートしてみる
Nov 4 04:16:53 hackkit kernel: Vendor: FUJITSU Model: 07040270 Rev: Nov 4 04:16:53 hackkit kernel: Type: Direct-Access ANSI SCSI revision: 02 Nov 4 04:16:53 hackkit kernel: SCSI device sdc: 8448300 512-byte hdwr sectors (4326 MB) Nov 4 04:16:53 hackkit kernel: SCSI device sdc: 8448300 512-byte hdwr sectors (4326 MB) Nov 4 04:16:53 hackkit kernel: sdc: sdc1 sdc2 sdc3 sdc4 Nov 4 04:16:53 hackkit kernel: Attached scsi disk sdc at scsi3, channel 0, id 0, lun 0 Nov 4 04:16:53 hackkit kernel: Attached scsi generic sg2 at scsi3, channel 0, id 0, lun 0, type 0認識している
hackkit:~# mkfs -j /dev/sdc1 mke2fs 1.37 (21-Mar-2005) Filesystem label= OS type: Linux Block size=1024 (log=0) Fragment size=1024 (log=0) 98304 inodes, 393088 blocks 19654 blocks (5.00%) reserved for the super user First data block=1 48 block groups 8192 blocks per group, 8192 fragments per group 2048 inodes per group Superblock backups stored on blocks: 8193, 24577, 40961, 57345, 73729, 204801, 221185 Writing inode tables: done Creating journal (8192 blocks): done Writing superblocks and filesystem accounting information: done This filesystem will be automatically checked every 30 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override. hackkit:~#
hackkit:~# fsck -f /dev/sdc1 fsck 1.37 (21-Mar-2005) e2fsck 1.37 (21-Mar-2005) Pass 1: Checking inodes, blocks, and sizes Pass 2: Checking directory structure Pass 3: Checking directory connectivity Pass 4: Checking reference counts Pass 5: Checking group summary information /dev/sdc1: 11/98304 files (0.0% non-contiguous), 20648/393088 blocks hackkit:~#
hackkit:~# mkdir /tmp/sdb1 hackkit:~# mount /dev/sdb1 /tmp/sdb1 hackkit:~# mkdir /tmp/sdc1 hackkit:~# mount /dev/sdc1 /tmp/sdc1 hackkit:~# df Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda2 1976524 260816 1615304 14% / tmpfs 63060 0 63060 0% /dev/shm /dev/sda1 194443 11959 172445 7% /boot /dev/sda4 7289612 435472 6483844 7% /mnt /dev/sdb1 1513220 32828 1403524 3% /tmp/sdb1 /dev/sdc1 380679 8239 352786 3% /tmp/sdc1 hackkit:~#
hackkit:~# (cd /; tar cf - usr )|(cd /tmp/sdb1; tar xvf -) : : hackkit:~#特に問題なし。
hackkit:~# (cd /tmp/sdb1; tar cf - usr)|(cd /tmp/sdc1/; tar xvf -) : : hackkit:~#こちらも特に問題なし。
hackkit:~# umount /tmp/sdb1 hackkit:~# umount /tmp/sdc1 hackkit:~# fsck -f /dev/sdb1 fsck 1.37 (21-Mar-2005) e2fsck 1.37 (21-Mar-2005) Pass 1: Checking inodes, blocks, and sizes Pass 2: Checking directory structure Pass 3: Checking directory connectivity Pass 4: Checking reference counts Pass 5: Checking group summary information /dev/sdb1: 10252/192384 files (0.2% non-contiguous), 52580/384353 blocks hackkit:~# fsck -f /dev/sdc1 fsck 1.37 (21-Mar-2005) e2fsck 1.37 (21-Mar-2005) Pass 1: Checking inodes, blocks, and sizes Pass 2: Checking directory structure Pass 3: Checking directory connectivity Pass 4: Checking reference counts Pass 5: Checking group summary information /dev/sdc1: 10252/98304 files (1.2% non-contiguous), 153216/393088 blocks hackkit:~#問題なし。
ホットプラグで認識してくれない問題はさておき、
ごく簡単な使い方の範囲内では
HD-HGLAN で発生したようなハングアップしたりファイルが破損したり
することはないようだ。
← HS-DGL!:ハックキット 2.0 のアップデート(3) |
ハックの記録 LinkStation/玄箱 をハックしよう |
→ LS-GL:debian:USB ドライブのホットプラグ |