#1 2008-07-12 15:12:35
dev/discs/disc0/part1 一直无法挂在/tmp/harddisk位置?
机器为华硕 WL_HDD 2.5
rm /usr/local/sbin/post-boot
vi /usr/local/sbin/post-boot
=================================================
#!/bin/sh
sleep 3
mount /dev/discs/disc0/part2 /opt
i=0
while [ $i -le 30 ]
do
if [ -d /opt/etc ]
then
break
fi
sleep 1
i=`expr $i + 1`
done
mount /dev/discs/disc0/part1 /tmp/harddisk
sleep 2
swapon /dev/discs/disc0/part3
/opt/etc/init.d/rc.unslung
=======
chmod +x /usr/local/sbin/*
保存flash:
flashfs save && flashfs commit && flashfs enable
重启机器一次:
reboot
==========================
出现问题,/dev/discs/disc0/part1 一直无法挂在/tmp/harddisk位置,为何?
现在每次启动都是这样:
[root@WL-HHD root]$ df
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/root 3072 3072 0 100% /
/dev/discs/disc0/part2 1004052 56608 896440 6% /opt
/dev/discs/disc0/part1 152341380 720928 143881944 0% /tmp/mnt/disc0_1
=======================================================================
離線
#2 2008-07-12 15:27:51
Re: dev/discs/disc0/part1 一直无法挂在/tmp/harddisk位置?
ipkg也是安装出问题,该怎么办?
[root@WL-HHD ipkg]$ ipkg.sh install ipkg-opt_0.99.163-10_mipsel.ipk
ERROR: File not found: /opt/lib/ipkg/lists/wl500g
You probably want to run `ipkg update'
ERROR: File not found: /opt/lib/ipkg/lists/optware
You probably want to run `ipkg update'
Unpacking ipkg-opt...Done.
Configuring ipkg-opt...Done.
[root@WL-HHD ipkg]$ ipkg update
Downloading http://ipkg.nslu2-linux.org/feeds/optwa … ackages.gz
Inflating http://ipkg.nslu2-linux.org/feeds/optwa … ackages.gz
An error ocurred, return value: 1.
[root@WL-HHD ipkg]$
[root@WL-HHD ipkg]$ ipkg upgrade
Nothing to be done
Successfully terminated.
離線
#3 2008-07-12 15:51:12
Re: dev/discs/disc0/part1 一直无法挂在/tmp/harddisk位置?
按照以前帖子的帮助修改hosts文件后似乎可以下载,但安装还是出问题:
[root@WL-HHD ipkg]$ ipkg update
Downloading http://ipkg.nslu2-linux.org/feeds/optwa … ackages.gz
Inflating http://ipkg.nslu2-linux.org/feeds/optwa … ackages.gz
An error ocurred, return value: 1.
[root@WL-HHD ipkg]$
離線