Nov 1 00:13:15 LS-WSGL678 kernel: usb 1-1: new high speed USB device using ehci_platform and address 2 Nov 1 00:13:15 LS-WSGL678 kernel: usb 1-1: configuration #1 chosen from 1 choice Nov 1 00:13:15 LS-WSGL678 kernel: scsi2 : SCSI emulation for USB Mass Storage devices SCSI device sdc: 488397168 512-byte hdwr sectors (250059 MB) sdc: Write Protect is off sdc: assuming drive cache: write through SCSI device sdc: 488397168 512-byte hdwr sectors (250059 MB) sdc: Write Protect is off sdc: assuming drive cache: write through Nov 1 00:13:20 LS-WSGL678 kernel: SCSI device sdc: 488397168 512-byte hdwr sectors (250059 MB) Nov 1 00:13:20 LS-WSGL678 kernel: sdc: Write Protect is off Nov 1 00:13:20 LS-WSGL678 kernel: sdc: assuming drive cache: write through Nov 1 00:13:20 LS-WSGL678 kernel: SCSI device sdc: 488397168 512-byte hdwr sectors (250059 MB) Nov 1 00:13:20 LS-WSGL678 kernel: sdc: Write Protect is off Nov 1 00:13:20 LS-WSGL678 kernel: sdc: assuming drive cache: write through Nov 1 00:13:20 LS-WSGL678 kernel: sdc: sdc1 sdc2 sdc4 < sdc5 sdc6 > Nov 1 00:13:20 LS-WSGL678 kernel: sd 2:0:0:0: Attached scsi disk sdc Nov 1 00:13:20 LS-WSGL678 kernel: sd 2:0:0:0: Attached scsi generic sg2 type 0 Nov 1 00:13:30 LS-WSGL678 kernel: FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive! Nov 1 00:13:30 LS-WSGL678 kernel: FAT: bogus number of reserved sectors Nov 1 00:13:30 LS-WSGL678 kernel: VFS: Can't find a valid FAT filesystem on dev sdc. Nov 1 00:13:31 LS-WSGL678 kernel: kjournald starting. Commit interval 5 seconds Nov 1 00:13:31 LS-WSGL678 kernel: EXT3 FS on sdc1, internal journal Nov 1 00:13:31 LS-WSGL678 kernel: EXT3-fs: recovery complete. Nov 1 00:13:31 LS-WSGL678 kernel: EXT3-fs: mounted filesystem with ordered data mode. root@LS-WSGL678:~# df Filesystem 1k-blocks Used Available Use% Mounted on /dev/md1 4993920 273380 4720540 5% / /dev/ram1 15360 96 15264 1% /mnt/ram /dev/md0 988064 120628 867436 12% /boot /dev/disk1_6 236216784 279884 235936900 0% /mnt/disk1 /dev/disk2_6 236216784 928 236215856 0% /mnt/disk2 /dev/usbdisk1_1 988212 126072 811940 13% /mnt/usbdisk1 root@LS-WSGL678:~# ls /mnt/usbdisk1/ SATA1 hddrootfs.buffalo.updated.done conf_save.tgz initrd.buffalo conf_save.tgz.orig uImage.buffalo root@LS-WSGL678:~#sdc として認識され、sdc1 が /mnt/usbdisk1 にマウントされた。
root@LS-WSGL678:~# cd /mnt/usbdisk1/ root@LS-WSGL678:/mnt/usbdisk1# ls SATA1 hddrootfs.buffalo.updated.done conf_save.tgz initrd.buffalo conf_save.tgz.orig uImage.buffalo root@LS-WSGL678:/mnt/usbdisk1# mv initrd.buffalo initrd.buffalo.orig root@LS-WSGL678:/mnt/usbdisk1# (cd /boot; tar cf - initrd.buffalo)|tar xvf - initrd.buffalo tar: initrd.buffalo: time stamp 2008-03-02 09:30:17 is 10573861.463869 s in the future root@LS-WSGL678:/mnt/usbdisk1# ls -l -rw-r--r-- 1 root root 0 Sep 5 2008 SATA1 -rw-r--r-- 1 root root 23764 Nov 1 2007 conf_save.tgz -rw-r--r-- 1 root root 23832 Nov 1 2007 conf_save.tgz.orig -rw-r--r-- 1 root root 104734676 Jul 22 2008 hddrootfs.buffalo.updated.done -rw-r--r-- 1 root root 5596134 Mar 2 2008 initrd.buffalo -rw-r--r-- 1 root root 5622690 Jul 22 2008 initrd.buffalo.orig -rw-r--r-- 1 root root 1757556 Nov 1 2007 uImage.buffalo root@LS-WSGL678:/mnt/usbdisk1#
	:
	:
Marvell Serial ATA Adapter
Integrated Sata device found
  Device 0: OK
Model: ST3250823AS                              Firm: 3.02     Ser#:             3ND06QAZ
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 238475.1 MB = 232.8 GB (488397168 x 512)
Using device ide0, partition 1
Loading from block device ide device 0, partition 1: Name: hda1
  Type: U-Boot  File:/uImage.buffalo
1757556 bytes read
   Image Name:   Linux-2.6.16.16-arm1
   Created:      2008-07-22   7:22:37 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1757492 Bytes =  1.7 MB
   Load Address: 00008000
   Entry Point:  00008000
Using device ide0, partition 1
Loading from block device ide device 0, partition 1: Name: hda1
  Type: U-Boot  File:/initrd.buffalo
5596134 bytes read
   Image Name:   initrd
   Created:      2008-03-02   0:27:59 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    5596070 Bytes =  5.3 MB
   Load Address: 00000000
   Entry Point:  00000000
Using device ide1, partition 1
** Bad partition 1 **
serch_boot_drv (182)>No kernel_file 1
Using device ide1, partition 1
** Bad partition 1 **
serch_boot_drv (237)>No init_file 1
Booting from Device 0
hit any key to switch tftp boot.
	:
	:
linuxrc:choose operation (timeout 4[s])
 1:RamRoot other:HddRoot  ? -HddRoot-
-- rebuild mdadm.conf for BOOT, ROOTFS --
mdadm: No arrays found in config file
-- setup max error counts --
/sys/block/md0/md/maxerr_cnt is setted to -1
Starting :fsck_disks(boot) ...         [Failed. ]
Starting :fsck_disks(rootfs) ...       [Success.]
Starting :mount(boot) ...              [Failed. ]
-- rebuild mdadm.conf for BOOT, ROOTFS --
mdadm: No arrays found in config file
-- setup max error counts --
/sys/block/md0/md/maxerr_cnt is setted to -1
/sys/block/md1/md/maxerr_cnt is setted to -1
/sys/block/md10/md/maxerr_cnt is setted to -1
/etc/init.d/startSysMd.sh: /etc/init.d/startSysMd.sh: 23: cannot create /sys/block/md10/md/maxerr_cnt: Directory nonexistent
/dev/md1: Invalid argument
mount: you must specify the filesystem type
/dev/md1: Invalid argument
mount: you must specify the filesystem type
md: md0 stopped.
mdadm: stopped /md: md1 stopped.
dev/md0
md: md10 stopped.
mdadm: stopped /dev/md1
mdadm: stopped /dev/md10
	:
	:
BUFFALO INC. LinkStation series
LS-WSGL-EM678 login:
BUFFALO INC. LinkStation series LS-WSGL-EM678 login: root login[1231]: root login on `ttyS0' BusyBox v1.1.1 (2008.07.15-06:14+0000) Built-in shell (ash) Enter 'help' for a list of built-in commands. # mdadm -D /dev/md0 mdadm: md device /dev/md0 does not appear to be active. #よーし。
次は、、、
どうやってアレーを作るか勉強しよ。
| 
 | 
| ← initrd の root のパスワードをつぶす | ハックの記録 LinkStation/玄箱 をハックしよう | → アレーの構築 |