次は LS-HGL
BUFFALO INC. LinkStation series LS-HGL(SUININ) LS-HGL487 login: root root@LS-HGL487:~#
root@LS-HGL487:/mnt/disk1/share# date Thu Nov 1 00:03:48 JST 2007 root@LS-HGL487:/mnt/disk1/share# date 022722292009 Fri Feb 27 22:29:00 JST 2009 root@LS-HGL487:/mnt/disk1/share#
root@LS-HGL487:/mnt/disk1/share# tail -f /var/log/messages : : /sbin/hotplug [usb] /sbin/hotplug [usb] /sbin/hotplug [scsi_host] /sbin/hotplug [usb_device] Feb 27 22:30:42 LS-HGL487 kernel: usb 1-1: new high speed USB device using ehci_platform and address 2 Feb 27 22:30:43 LS-HGL487 kernel: usb 1-1: configuration #1 chosen from 1 choice Feb 27 22:30:43 LS-HGL487 kernel: scsi2 : SCSI emulation for USB Mass Storage devices Vendor: ST325082 Model: 3ND06QAZ Rev: Type: Direct-Access ANSI SCSI revision: 02 /sbin/hotplug [scsi] SCSI device sdb: 488397168 512-byte hdwr sectors (250059 MB) sdb: Write Protect is off sdb: assuming drive cache: write through /sbin/hotplug [block] SCSI device sdb: 488397168 512-byte hdwr sectors (250059 MB) sdb: Write Protect is off sdb: assuming drive cache: write through Feb 27 22:30:48 LS-HGL487 kernel: Vendor: ST325082 Model: 3ND06QAZ Rev: Feb 27 22:30:48 LS-HGL487 kernel: Type: Direct-Access /sbin/hotplug [block] /sbin/hotplug [block] sd 2:0:0:0: Attached scsi disk sdb /sbin/hotplug [block] /sbin/hotplug [block] /sbin/hotplug [scsi_device] sd 2:0:0:0: Attached scsi generic sg1 type 0 /sbin/hotplug [scsi_generic] ANSI SCSI revision: 02 Feb 27 22:30:48 LS-HGL487 kernel: SCSI device sdb: 488397168 512-byte hdwr sectors (250059 MB) Feb 27 22:30:48 LS-HGL487 kernel: sdb: Write Protect is off Feb 27 22:30:48 LS-HGL487 kernel: sdb: assuming drive cache: write through Feb 27 22:30:48 LS-HGL487 kernel: SCSI device sdb: 488397168 512-byte hdwr sectors (250059 MB) Feb 27 22:30:48 LS-HGL487 kernel: sdb: Write Protect is off Feb 27 22:30:48 LS-HGL487 kernel: sdb: assuming drive cache: write through Feb 27 22:30:48 LS-HGL487 kernel: sdb: sdb1 sdb2 sdb3 sdb4 Feb 27 22:30:48 LS-HGL487 kernel: sd 2:0:0:0: Attached scsi disk sdb Feb 27 22:30:48 LS-HGL487 kernel: sd 2:0:0:0: Attached scsi generic sg1 type 0 DEVNAME=sdb 2 GUID=152d23380000222238d061a0 usb_disk1=152d23380000222238d061a0 in mount_usbdisk(): param 1 BASENAME=usbdisk1 MPT=/mnt/usbdisk1/ /sbin/hotplug [module] /sbin/hotplug [module] FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive! FAT: bogus number of reserved sectors /sbin/hotplug [block] /sbin/hotplug [block] ## STATE_CHANGED ## Feb 27 22:30:53 LS-HGL487 kernel: FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive! Feb 27 22:30:53 LS-HGL487 kernel: FAT: bogus number of reserved sectors Feb 27 22:30:53 LS-HGL487 kernel: VFS: Can't find a valid FAT filesystem on dev sdb. Feb 27 22:30:53 LS-HGL487 kernel: kjournald starting. Commit interval 5 seconds Feb 27 22:30:53 LS-HGL487 kernel: EXT3 FS on sdb1, internal journal Feb 27 22:30:53 LS-HGL487 kernel: EXT3-fs: mounted filesystem with ordered data mode. Feb 27 22:30:57 LS-HGL487 nmbd[1265]: [2009/02/27 22:30:57, 0] nmbd/nmbd.c:terminate(58) Feb 27 22:30:57 LS-HGL487 nmbd[1265]: Got SIGTERM: going down... /sbin/hotplug [module] /sbin/hotplug [module] /sbin/hotplug [module] Feb 27 22:30:57 LS-HGL487 kernel: NET: Registered protocol family 5
root@LS-HGL487:/mnt/disk1/share# df Filesystem 1k-blocks Used Available Use% Mounted on /dev/root.old 15351 14671 680 96% /initrd /dev/sda2 4994004 244476 4749528 5% / /dev/ram1 15360 112 15248 1% /mnt/ram /dev/sda1 988212 24464 963748 2% /boot /dev/sda6 237067816 9338220 227729596 4% /mnt/disk1 /dev/usbdisk1_1 194443 11634 172770 6% /mnt/usbdisk1 root@LS-HGL487:/mnt/disk1/share# umount /mnt/usbdisk1 /sbin/hotplug [block] root@LS-HGL487:/mnt/disk1/share#
root@LS-HGL487:/mnt/disk1/share# fdisk -l /dev/sdb Disk /dev/sdb: 250.0 GB, 250059350016 bytes 255 heads, 63 sectors/track, 30401 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 /dev/sdb4 308 30401 241730055 83 Linux root@LS-HGL487:/mnt/disk1/share#既にハックキットがインストールしてある HDD なので、 パーティションは設定済
root@LS-HGL487:/mnt/disk1/share# cd /mnt/disk1/share/hackkit/ root@LS-HGL487:/mnt/disk1/share/hackkit# cp hackkit_config.sample hackkit_config root@LS-HGL487:/mnt/disk1/share/hackkit# vi hackkit_config : : root@LS-HGL487:/mnt/disk1/share/hackkit# cat !$ cat hackkit_config ADDRESS=192.168.2.44 HOSTNAME=busu root@LS-HGL487:/mnt/disk1/share/hackkit#
root@LS-HGL487:/mnt/disk1/share/hackkit# sh hackkit_090227.sh PRODUCTID = 0x0000000E formating hard drive ... mke2fs 1.27 (8-Mar-2002) Filesystem label= OS type: Linux Block size=1024 (log=0) Fragment size=1024 (log=0) 50200 inodes, 200781 blocks 10039 blocks (5.00%) reserved for the super user First data block=1 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 37 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override. meta-data=/dev/sdb2 isize=256 agcount=8, agsize=62754 blks = sectsz=512 data = bsize=4096 blocks=502031, 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 Setting up swapspace version 1, size = 263204864 bytes meta-data=/dev/sdb4 isize=256 agcount=58, agsize=1048576 blks = sectsz=512 data = bsize=4096 blocks=60432513, imaxpct=25 = sunit=0 swidth=0 blks, unwritten=1 naming =version 2 bsize=4096 log =internal log bsize=4096 blocks=29508, version=1 = sectsz=512 sunit=0 blks realtime =none extsz=65536 blocks=0, rtextents=0 mounting root file system ... XFS mounting filesystem sdb2 /sbin/hotplug [block] extracting hackkit archive ... ./ ./var/ ./var/lib/ ./var/lib/apt/ ./var/lib/apt/lists/ ./var/lib/apt/lists/partial/ : : ./opt/ ./media/ ./initrd/ creating miconapl ... creating kernelmon ... copying /lib/modules ... lib/modules/ lib/modules/usblp.ko : : lib/modules/2.6.16.16-arm1/modules.symbols creating usb ... /sbin/hotplug [block] checking /dev/sdb1 fsck 1.27 (8-Mar-2002) e2fsck 1.27 (8-Mar-2002) 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/50200 files (0.0% non-contiguous), 10465/200781 blocks mounting /boot ... /sbin/hotplug [block] copying /boot ... initrd.buffalo uImage.buffalo editing initrd ... 93266+1 records in 93266+1 records out gunziping /mnt/debinst/boot/initrd.gz ... /sbin/hotplug [block] /sbin/hotplug [block] gziping /mnt/debinst/boot/initrd ... wait 5 minutesなんか LS-HGL 遅い。LS-XHL でその速さを知ってしまったから?
Image Name: initrd Created: Fri Feb 27 22:45:01 2009 Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 5949619 Bytes = 5810.17 kB = 5.67 MB Load Address: 0x00000000 Entry Point: 0x00000000 unmount /boot ... umount: /mnt/debinst/boot: device is busy umount: /mnt/debinst/boot: device is busy root@LS-HGL487:/mnt/disk1/share/hackkit#
: : ---- in hackkit linuxrc --- XFS mounting filesystem sda2 VFS: Mounted root (xfs filesystem). Trying to move old root to /initrd ... okay Freeing init memory: 108K INIT: version 2.86 booting Setting the system clock. Activating swap...Adding 257032k swap on /dev/sda3. Priority:-1 extents:1 across:257032k done. Setting the system clock. Cleaning up ifupdown.... Loading kernel modules...done. Checking file systems...fsck 1.41.3 (12-Oct-2008) /dev/sda1: recovering journal /dev/sda1: Clearing orphaned inode 15 (uid=0, gid=0, mode=0100644, size=16777216) /dev/sda1: Superblock last mount time is in the future. FIXED. /dev/sda1: Backing up journal inode block information. /dev/sda1 has filesystem last checked time in the future, check forced. /dev/sda1: 13/50200 files (15.4% non-contiguous), 17984/200781 blocks /sbin/fsck.xfs: XFS file system. fsck died with exit status 1 done. Setting kernel variables (/etc/sysctl.conf)...Unknown HZ value! (113) Assume 100. done. Mounting local filesystems...kjournald starting. Commit interval 5 seconds EXT3 FS on sda1, internal journal EXT3-fs: mounted filesystem with ordered data mode. XFS mounting filesystem sda4 done. Activating swapfile swap...done. Setting up networking.... Configuring network interfaces...eth0: link down done. INIT: Entering runlevel: 2 Starting enhanced syslogd: rsyslogd. usbcore: registered new driver usbfs usbcore: registered new driver hub ehci_platform ehci_platform.4523: EHCI Platform Host Controller ehci_platform ehci_platform.4523: new USB bus registered, assigned bus number 1 ehci_platform ehci_platform.4523: irq 17, io mem 0x00000000 eth0: link up<5>, full duplex<5>, speed 1 Gbps<5> ehci_platform ehci_platform.4523: USB 0.0 started, EHCI 1.00, driver 10 Dec 2004 usb usb1: configuration #1 chosen from 1 choice hub 1-0:1.0: USB hub found hub 1-0:1.0: 1 port detected ehci_platform ehci_platform.16781: EHCI Platform Host Controller ehci_platform ehci_platform.16781: new USB bus registered, assigned bus number 2 ehci_platform ehci_platform.16781: irq 12, io mem 0x00000000 ehci_platform ehci_platform.16781: USB 0.0 started, EHCI 1.00, driver 10 Dec 2004 usb usb2: configuration #1 chosen from 1 choice hub 2-0:1.0: USB hub found hub 2-0:1.0: 1 port detected Initializing USB Mass Storage driver... usbcore: registered new driver usb-storage USB Mass Storage support registered. usbcore: registered new driver usblp drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver Starting internet superserver: inetd. Starting periodic command scheduler: crond. Debian GNU/Linux 5.0 busu ttyS0 busu login:起動してきた。
Debian GNU/Linux 5.0 busu ttyS0 busu login: guest Password: Linux busu 2.6.16.16-arm1 #131 Sat Dec 27 13:21:07 JST 2008 armv5tejl The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. No directory, logging in with HOME=/ guest@busu:/$
guest@busu:/$ su - root Password: busu:~#
busu:~# date Thu Nov 1 00:28:31 JST 2007 busu:~# date 022722532009 Fri Feb 27 22:53:00 JST 2009 busu:~#一瞬、コンセントを抜いただけなのに、クリアされてしまっている。
最初の設定の残りの設定と、
時刻同期、
Windows 向けファイルサーバまでスクリプトを使う。
(略)
busu:/tmp# tail -f /var/log/messages : : usb 1-1: new full 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 Feb 27 22:59:47 busu kernel: usb 1-1: new full speed USB device using ehci_platform and address 2 Feb 27 22:59:47 busu kernel: usb 1-1: configuration #1 chosen from 1 choice Feb 27 22:59:47 busu kernel: scsi2 : SCSI emulation for USB Mass Storage devices Vendor: eUSB Model: Memory Stick Rev: 5.06 Type: Direct-Access ANSI SCSI revision: 02 SCSI device sdb: 126912 512-byte hdwr sectors (65 MB) sdb: Write Protect is off sdb: assuming drive cache: write through SCSI device sdb: 126912 512-byte hdwr sectors (65 MB) sdb: Write Protect is off sdb: assuming drive cache: write through sdb:Feb 27 22:59:53 busu kernel: Vendor: eUSB Model: Memory Stick Rev: 5.06 Feb 27 22:59:53 busu kernel: Type: Direct-Access ANSI SCSI revision: 02 Feb 27 22:59:53 busu kernel: SCSI device sdb: 126912 512-byte hdwr sectors (65 MB) Feb 27 22:59:53 busu kernel: sdb: Write Protect is off Feb 27 22:59:53 busu kernel: SCSI device sdb: 126912 512-byte hdwr sectors (65 MB) Feb 27 22:59:53 busu kernel: sdb: Write Protect is off sdb1 sd 2:0:0:0: Attached scsi removable disk sdb sd 2:0:0:0: Attached scsi generic sg1 type 0 Feb 27 22:59:54 busu kernel: sdb: sdb1 Feb 27 22:59:54 busu kernel: sd 2:0:0:0: Attached scsi removable disk sdb Feb 27 22:59:54 busu kernel: sd 2:0:0:0: Attached scsi generic sg1 type 0マウントしてみる。
busu:/tmp# mkdir /tmp/usb busu:/tmp# mount /dev/sdb1 /tmp/usb/ busu:/tmp# ls /tmp/usb dcim memstick.ind busu:/tmp# umount /tmp/usb busu:/tmp#問題なさそう。
busu:/tmp# !tail tail -f /var/log/messages : : usb 1-1: new full speed USB device using ehci_platform and address 3 usb 1-1: configuration #1 chosen from 1 choice drivers/usb/class/usblp.c: usblp0: USB Bidirectional printer dev 3 if 0 alt 0 proto 2 vid 0x04B8 pid 0x0005 Feb 27 23:01:51 busu kernel: usb 1-1: new full speed USB device using ehci_platform and address 3 Feb 27 23:01:51 busu kernel: usb 1-1: configuration #1 chosen from 1 choice Feb 27 23:01:51 busu kernel: drivers/usb/class/usblp.c: usblp0: USB Bidirectional printer dev 3 if 0 alt 0 proto 2 vid 0x04B8 pid 0x0005OK.
LS-HGL 確認完了!次!
|
← LS-XHL, LS-QL 対応ハックキットの確認(3)HS-DHGL |
ハックの記録 LinkStation/玄箱 をハックしよう |
→ LS-XHL, LS-QL 対応ハックキットの確認(5)LS-CL |