LS-GL:linuxrc(3)choose operation


linuxrc のオペレーションメニュー(?)を試す。
---- in linuxrc ---
Sun Aug 20 17:05:24 JST 2006
err: >AnalyzeRecvPacket:This is invalid RespCode.(code=244)
CheckDevices
linuxrc:choose operation (timeout 4[s])
 1:RamRoot other:HddRoot  ?

RamRoot

linuxrc:choose operation (timeout 4[s])
 1:RamRoot other:HddRoot  ? 1
-RamdiskRoot-
Freeing init memory: 112K
init started:  BusyBox v1.1.1 (2006.06.11-04:13+0000) multi-call binary
Starting pid 225, console /dev/ttyS0: '/etc/init.d/rcS'
--- rcStart (initrd) ---
=====  exec:checkroot.sh  =====
chmod: /home: No such file or directory
mkdir: Cannot create directory `/var/lock': File exists
rm: /var/lock/perfmon: is a directory
rm: /var/lock/printing: is a directory
rm: /var/lock/subsys: is a directory
Adding 136512k swap on /dev/ls_disk1_5.  Priority:-1 extents:1
create dir : /home
create dir : /var/www
=====  exec:create_devlink.sh  =====
kjournald starting.  Commit interval 5 seconds
EXT3 FS on sda1, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting.  Commit interval 5 seconds
EXT3 FS on sda1, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
eth0: link down
eth0: link up<5>, full duplex<5>, speed 100 Mbps<5>
=====  exec:fwupdate.sh  =====
umount: /boot: not mounted
mkdir: Cannot create directory `/boot': File exists
fwupdate.sh:FW not updated
=====  exec:sethostname.sh  =====
configure files from Buffalo parameters.
=====  exec:restore_config.sh  =====
Restore previous configuration files
umount: /boot: device is busy
umount: /boot: device is busy
=====  exec:networking.sh  =====
/etc/init.d/networking.sh: line 13: LS-GL: command not found
create network files..
IP=[dhcp], netmask=[], dgw=[], dns1=[], dns2=[]
killall: dhcpcd: no process killed
route: SIOC[ADD|DEL]RT: No such process
Configuration network interface: lo eth0
requesting DHCP  tout=30[s]
/etc/dhcpc/dhcpcd.exe ::: /etc/dhcpc/dhcpcd-eth0.info new
/etc/init.d/sethostname.sh: line 13: LS-GL: command not found
dhcpcd.exe: interface eth0 has been configured with new IP=192.168.1.38
configure files from Buffalo parameters.
=====  exec:create_usblink.sh  =====
=====  exec:kernelmon.sh  =====
Starting kernelmon:=====  exec:miconmon.sh  =====
miconmon 1.00b3 started (Builddate Jun 11 2006 13:14:48)
=====  exec:diskmon.sh  =====
=====  exec:micon_setup.sh  =====
/usr/local/bin/kernelmon_exec.sh: line 13: LS-GL: command not found
/usr/local/bin/kernelmon_exec.sh: line 13: LS-GL: command not found
=====  exec:clientUtil_servd.sh  =====
Starting clientUtil_server:starting on eth0
=====  exec:daemonwatch.sh  =====
Starting daemonwatch:watch list file : /etc/daemonwatch.list
=====  exec:bootcomplete.sh  =====
/etc/init.d/bootcomplete.sh: line 9: /etc/init.d/drivecheck.sh: No such file or directory
grep: /etc/linkstation_release: No such file or directory
Starting pid 527, console /dev/ttyS0: '/sbin/getty'

BUFFALO INC. LinkStation series LS-GL(IESADA)
LS-GL-EM67A login: 
EM モードと同じ?

コマンドムドード(しつこい)

linuxrc:choose operation (timeout 4[s])
 1:RamRoot other:HddRoot  ? 9
-CommandMode-

(none) login: admin
Password:
warning: cannot change to home directory
sh: /etc/profile: Permission denied
sh-2.05b$ df
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/root.old            13303     10727      2576  81% /
sh-2.05b$ ps
  PID  Uid     VmSize Stat Command
    1 root            SW  [swapper]
    2 root            SWN [ksoftirqd/0]
    3 root            SW< [events/0]
    4 root            SW< [khelper]
    5 root            SW< [kthread]
   11 root            SW< [kblockd/0]
   14 root            SW  [khubd]
   29 root            SW  [crypto]
   30 root            SW  [crypto_ret]
   51 root            SW  [pdflush]
   52 root            SW  [pdflush]
   54 root            SW< [aio/0]
   53 root            SW  [kswapd0]
   55 root            SW< [xfslogd/0]
   56 root            SW< [xfsdatad/0]
   57 root            SW  [xfsbufd]
  181 root            SW  [scsi_eh_0]
  182 root            SW  [scsi_eh_1]
  196 root            SW  [mtdblockd]
  215 root       1352 S   /bin/sh /linuxrc
  222 admin      1532 S   -sh
  230 admin       788 R   ps
sh-2.05b$
シングルユーザモードといったところか。
ログアウトしたら、通常モードになった。
sh-2.05b$ exit
logout
XFS mounting filesystem sda2
VFS: Mounted root (xfs filesystem).
Trying to move old root to /initrd ... failed
Unmounting old root
Trying to free ramdisk memory ... okay
Freeing init memory: 112K
init started:  BusyBox v1.1.1 (2006.06.11-04:13+0000) multi-call binary
Starting pid 236, console /dev/ttyS0: '/etc/init.d/rcS'
--- rcStart (hddroot) ---
Sun Aug 20 17:14:36 JST 2006
	:
	:

BUFFALO INC. LinkStation series LS-GL(IESADA)
UDE login:



LS-GL:linuxrc(2)
ハックの記録
LinkStation/玄箱 をハックしよう

LS-GL:ブート時の command not found

Copyright (C) 2006 Yasunari Yamashita. All Rights Reserved.
yasunari @ yamasita.jp 山下康成@京都府向日市