usb 1-1: new high speed USB device using ehci_platform and address 2 usb 1-1: configuration #1 chosen from 1 choice scsi2 : SCSI emulation for USB Mass Storage devices usb-storage: device found at 2 usb-storage: waiting for device to settle before scanning Vendor: SAMSUNG Model: J1FPA01351 Rev: 0-10 Type: Direct-Access ANSI SCSI revision: 02 SCSI device sdb: 976773168 512-byte hdwr sectors (500108 MB) sdb: Write Protect is off sdb: Mode Sense: 00 38 00 00 sdb: assuming drive cache: write through SCSI device sdb: 976773168 512-byte hdwr sectors (500108 MB) sdb: Write Protect is off sdb: Mode Sense: 00 38 00 00 sdb: assuming drive cache: write through sdb: sdb1 sdb2 sdb4 < sdb5 sdb6 > sd 2:0:0:0: Attached scsi disk sdb sd 2:0:0:0: Attached scsi generic sg1 type 0 usb-storage: device scan complete
sil:~# fdisk /dev/sdb The number of cylinders for this disk is set to 60801. There is nothing wrong with that, but this is larger than 1024, and could in certain setups cause problems with: 1) software that runs at boot time (e.g., old versions of LILO) 2) booting and partitioning software from other OSs (e.g., DOS FDISK, OS/2 FDISK) Command (m for help): p Disk /dev/sdb: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sdb1 1 25 200781 83 Linux /dev/sdb2 26 87 498015 83 Linux /dev/sdb4 88 60801 487685205 5 Extended /dev/sdb5 88 104 136521 82 Linux swap / Solaris /dev/sdb6 105 60801 487548621 83 Linux Command (m for help): d Partition number (1-6): 6 Command (m for help): d Partition number (1-5): 5 Command (m for help): d Partition number (1-5): 4 Command (m for help): d Partition number (1-4): 2 Command (m for help): d Selected partition 1 Command (m for help): p Disk /dev/sdb: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System Command (m for help):
sil:~# fdisk -l /dev/sda Disk /dev/sda: 320.0 GB, 320072933376 bytes 255 heads, 63 sectors/track, 38913 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sda1 1 25 200781 83 Linux /dev/sda2 26 275 2008125 83 Linux /dev/sda3 276 307 257040 82 Linux swap / Solaris /dev/sda4 308 38913 310102695 83 Linux sil:~#と同じパーティションを /dev/sdb にも切る。
Command (m for help): n Command action e extended p primary partition (1-4) p Partition number (1-4): 1 First cylinder (1-60801, default 1): Using default value 1 Last cylinder or +size or +sizeM or +sizeK (1-60801, default 60801): 25 Command (m for help): n Command action e extended p primary partition (1-4) p Partition number (1-4): 2 First cylinder (26-60801, default 26): Using default value 26 Last cylinder or +size or +sizeM or +sizeK (26-60801, default 60801): 275 Command (m for help): n Command action e extended p primary partition (1-4) p Partition number (1-4): 3 First cylinder (276-60801, default 276): Using default value 276 Last cylinder or +size or +sizeM or +sizeK (276-60801, default 60801): 307 Command (m for help): n Command action e extended p primary partition (1-4) p Selected partition 4 First cylinder (308-60801, default 308): Using default value 308 Last cylinder or +size or +sizeM or +sizeK (308-60801, default 60801): Using default value 60801 Command (m for help): t Partition number (1-4): 3 Hex code (type L to list codes): 82 Changed system type of partition 3 to 82 (Linux swap / Solaris) Command (m for help): p Disk /dev/sdb: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sdb1 1 25 200781 83 Linux /dev/sdb2 26 275 2008125 83 Linux /dev/sdb3 276 307 257040 82 Linux swap / Solaris /dev/sdb4 308 60801 485918055 83 Linux Command (m for help): w The partition table has been altered! Calling ioctl() to re-read partition table. Syncing disks. sil:~#
sil:~# mkfs.ext3 -j /dev/sdb1 mke2fs 1.40-WIP (14-Nov-2006) Filesystem label= OS type: Linux Block size=1024 (log=0) Fragment size=1024 (log=0) 50200 inodes, 200780 blocks 10039 blocks (5.00%) reserved for the super user First data block=1 Maximum filesystem blocks=67371008 25 block groups 8192 blocks per group, 8192 fragments per group 2008 inodes per group Superblock backups stored on blocks: 8193, 24577, 40961, 57345, 73729 Writing inode tables: done Creating journal (4096 blocks): done Writing superblocks and filesystem accounting information: done This filesystem will be automatically checked every 35 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override. sil:~# mkfs.ext3 -j /dev/sdb2 mke2fs 1.40-WIP (14-Nov-2006) Filesystem label= OS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) 251392 inodes, 502031 blocks 25101 blocks (5.00%) reserved for the super user First data block=0 Maximum filesystem blocks=515899392 16 block groups 32768 blocks per group, 32768 fragments per group 15712 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 27 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override. sil:~# mkfs.xfs -f /dev/sdb2 meta-data=/dev/sdb2 isize=256 agcount=8, agsize=62753 blks = sectsz=512 attr=0 data = bsize=4096 blocks=502024, imaxpct=25 = sunit=0 swidth=0 blks, unwritten=1 naming =version 2 bsize=4096 log =internal log bsize=4096 blocks=2560, version=1 = sectsz=512 sunit=0 blks realtime =none extsz=65536 blocks=0, rtextents=0 sil:~# mkswap /dev/sdb3 Setting up swapspace version 1, size = 263204 kB no label, UUID=24987743-487e-437a-bc2e-2048ffc99a79 sil:~# mkfs.ext3 -j /dev/sdb4 mke2fs 1.40-WIP (14-Nov-2006) Filesystem label= OS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) 60751872 inodes, 121479513 blocks 6073975 blocks (5.00%) reserved for the super user First data block=0 Maximum filesystem blocks=0 3708 block groups 32768 blocks per group, 32768 fragments per group 16384 inodes per group Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968, 102400000 Writing inode tables: done Creating journal (32768 blocks): done Writing superblocks and filesystem accounting information: done This filesystem will be automatically checked every 25 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override. sil:~# mkfs.xfs -f /dev/sdb4 meta-data=/dev/sdb4 isize=256 agcount=16, agsize=7592469 blks = sectsz=512 attr=0 data = bsize=4096 blocks=121479504, imaxpct=25 = sunit=0 swidth=0 blks, unwritten=1 naming =version 2 bsize=4096 log =internal log bsize=4096 blocks=32768, version=1 = sectsz=512 sunit=0 blks realtime =none extsz=65536 blocks=0, rtextents=0 sil:~#
sil:~# mkdir /tmp/boot sil:~# mount /dev/sdb1 /tmp/boot sil:~# cd /boot sil:/boot# tar cf - . |(cd /tmp/boot; tar xvf -) ./ ./lost+found/ ./uImage.buffalo ./initrd.buffalo sil:/boot# cd / sil:/# umount /tmp/boot sil:/#
sil:/# mkdir /tmp/root sil:/# mount /dev/sdb2 /tmp/root sil:/# cd / sil:/# ls bin boot dev etc home initrd lib media mnt opt proc root sbin srv sys tmp usr var sil:/#コピーしてはいけないのは、boot, initrd, mnt, proc, sys, tmp。
sil:/# tar cf - bin dev etc home lib media opt root sbin srv usr var |(cd /tmp/root; tar xvf -) : : sil:/#マウントポイントを作る。
sil:/# mkdir /tmp/root/boot /tmp/root/initrd /tmp/root/mnt /tmp/root/proc /tmp/root/sys sil:/#/tmp を作る。
sil:/# mkdir /tmp/root/tmp sil:/# chmod 1777 !$ chmod 1777 /tmp/root/tmp sil:/# umount /tmp/root sil:/#
sil:/# mkdir /tmp/mnt sil:/# cd /mnt sil:/mnt# ls Backup Music buffalo dap tmp videos wk sil:/mnt# mount /dev/sdb4 /tmp/mnt sil:/mnt# tar cf - . |(cd /tmp/mnt; tar xvf -) : : : : : : : : : : : : : : : : :
ぐへっ。
え゛~~~~~。うそやぁ。。。。
300GB 近くあった MPEG ファイル、MP3 ファイルを道ずれに、
DISK が吹っ飛んだ。
さすがにビデオや音楽まではバックアップ取ってないもんなぁ。。。
たちなおれん。。。
|
← 手のひらサイズの小型ネットワーク対応HDD〈リンクステーション ミニ〉に、ホワイトモデルをラインナップ |
ハックの記録 LinkStation/玄箱 をハックしよう |
→ ビデオファイルの救出 |