Nov 23 02:18:36 ude kernel: usb 2-1: new high speed USB device using ehci_platform and address 2 Nov 23 02:18:36 ude kernel: usb 2-1: configuration #1 chosen from 1 choice Nov 23 02:18:36 ude kernel: scsi2 : SCSI emulation for USB Mass Storage devices Nov 23 02:18:41 ude kernel: Vendor: SAMSUNG Model: J1FPA01351 Rev: 0-10 Nov 23 02:18:41 ude kernel: Type: Direct-Access ANSI SCSI revision: 02 Nov 23 02:18:41 ude kernel: SCSI device sdb: 976773168 512-byte hdwr sectors (500108 MB) Nov 23 02:18:41 ude kernel: sdb: Write Protect is off Nov 23 02:18:41 ude kernel: SCSI device sdb: 976773168 512-byte hdwr sectors (500108 MB) Nov 23 02:18:41 ude kernel: sdb: Write Protect is off Nov 23 02:18:41 ude kernel: sdb: sdb1 sdb2 sdb4 < sdb5 sdb6 > Nov 23 02:18:41 ude kernel: sd 2:0:0:0: Attached scsi disk sdb Nov 23 02:18:41 ude kernel: sd 2:0:0:0: Attached scsi generic sg1 type 0特に問題なく認識した。
ude:~# 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): quit ude:~#
sdb1 | /boot |
sdb2 | / |
sdb5 | swap |
sdb6 | /mnt/share |
それぞれマウントしてみる
ude:~# mkdir /tmp/sdb1 ude:~# mount /dev/sdb1 /tmp/sdb1 ude:~# ls /tmp/sdb1 conf_save.tgz initrd.buffalo log.tgz lost+found u-boot.buffalo uImage.buffalo ude:~# umount /tmp/sdb1 ude:~#/boot に間違いない
ude:~# mkdir /tmp/sdb2 ude:~# mount /dev/sdb2 /tmp/sdb2 ude:~# ls /tmp/sdb2/ bin boot dev etc home initrd lib lost+found mnt proc root rootfs sbin sys tmp usr var ude:~#root fs。
ude:~# cat /tmp/sdb2/etc/fstab /dev/ram0 / ext2 defaults 0 0 proc /proc proc defaults 0 0 sysfs /sys sysfs defaults 0 0 devpts /dev/pts devpts gid=4,mode=620 0 0 ude:~#あれ?/dev/sda が書かれていない。
/mnt を見てみる。
ude:~# ls /tmp/sdb2/mnt authtest disk1 nfs ram root usbdisk1 usbdisk2 ude:~# ls /tmp/sdb2/mnt/disk1/ ude:~#なんだかゴミいっぱい。
ude:~# umount /tmp/sdb2/ ude:~#
ude:~# mkdir /tmp/sdb6 ude:~# mount /dev/sdb6 /tmp/sdb6 ude:~# ls /tmp/sdb6 share ude:~# umount /tmp/sdb6 ude:~#/mnt/disk1
特にハック封じもないようだ。
|
← 電源ON |
ハックの記録 LinkStation/玄箱 をハックしよう |
→ telnet 可能化 |