
Originally Posted by
hexwiz
Of particular interest would be the config.xml, inittab (initialization table) and the initialization scripts in /etc/init.d and also the fstab file which should show how the file system is like.
here's fstab:
#
::sysinit:/etc/init.d/rcS
# Start an "askfirst" shell on the console (whatever that may be)
::askfirst:-/bin/sh
#::askfirst:-/usr/bin/cmcli
# Stuff to do before rebooting
#::ctrlaltdel:/sbin/reboot
::shutdown:/bin/umount -a -r
::shutdown:/sbin/swapoff -a
and here's is rcS
# cat /etc/init.d/rcS
#!/bin/sh
trap "" SIGHUP
PATH=/sbin:/bin:/usr/sbin:/usr/bin
runlevel=S
prevlevel=N
umask 022
export PATH runlevel prevlevel
#
# Trap CTRL-C &c only in this shell so we can interrupt subprocesses.
#
trap ":" INT QUIT TSTP
mount -n /proc
#mount -n -o remount,rw /
mount /var
# unreserve for unp systems
echo "0 0" > /proc/sys/vm/pagetable_cache
# router
echo 1 > /proc/sys/net/ipv4/ip_forward
# pppox
echo 1 > /proc/sys/net/ipv4/ip_dynaddr
# ignore_all not yet used: this should be satisfactory
echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts
# drop spoofed addr: turn this off on non-loop-free networks
echo 1 > /proc/sys/net/ipv4/conf/default/rp_filter
echo 1 > /proc/sys/net/ipv4/conf/all/rp_filter
# do not honor source route flags
echo 0 > /proc/sys/net/ipv4/conf/default/accept_source_route
echo 0 > /proc/sys/net/ipv4/conf/all/accept_source_route
# protect against syn flood attacks
echo 1 >/proc/sys/net/ipv4/tcp_syncookies
# this needs proper sampling on av_blog to determine optimal value
# for now just observe softnet_stats to see # time was throttled
# historical value was 300
echo 100 > /proc/sys/net/core/netdev_max_backlog
(cd /; tar xf var.tar)
/sbin/ledcfg
sleep 1
/sbin/insmod tiatm
sleep 1
# UPnP requires loopback
ifconfig lo 127.0.0.1
#
# installed by vincent 20040113, do not built in BRIDGE MODULE in kernel to redu
ce the kernel size
# use install module load the bridge
# temporarily marked by tiger in NSP350
#/sbin/insmod bridge
/sbin/insmod avalanche_usb; sleep 1
/usr/bin/cm_pc > /dev/tts/0 &
/usr/sbin/diap &
And apart from /proc/version - doesn't
version alone work at the prompt? What about
help? And
even
mount?
Here's help output.
. : bg break builtin cd chdir continue eval exec exit export
false fc fg hash help jobs kill local pwd read readonly return
set setvar shift times trap true type ulimit umask unset wait
Now since the previous attempts at
mount shows the command is enabled, if you could tell me the contents of the fstab, I could think up of something to "try" and mount your file system in read/write mode.
# <file system> <mount point> <type> <options> <dump> <pass>
/dev/root / auto defaults,errors=continue 0 0
proc /proc proc defaults 0 0
ramfs /var ramfs defaults 0 0
[QUOTE]Also try chroot /mnt/sysimage and see if you are able to execute the commands which were not enabled/found earlier:
Code:
ip iphostname flush
config save
flashfs update
restart
And whether it works or it doesn't you can exit the chroot environment with
exit to get back to the shell prompt.
chroot does not work.
Once again, thank you for all your help.
--