to be able to create something in /opt, you should first mount something there (external hdd, flashdrive, etc.). See, e.g. wengi's guide for details
Dear all,
First of all.... i'm such a noob and a newbie, but, i kind of want this to work.
I am good at directions so,.. i will take good directions
I'm stuck at this step:
"mkdir /opt/etc
mkdir /opt/etc/init.d
vi /opt/etc/init.d/rc.unslung"
"Remark: If you get a "mkdir: Cannot create directory `/opt/etc': Read-only file system" your HDD (here the IPKG pertition) is NOT mounted."
I have this error, and i don't know what to do next! please help me!
to be able to create something in /opt, you should first mount something there (external hdd, flashdrive, etc.). See, e.g. wengi's guide for details
I skipped this part thought!
There is a script to keep the file system clean:
Code:
vi /usr/local/sbin/pre-mount
with this content:
Code:
#! /bin/sh
swapon -a
for i in `awk '/ext3/{print($1)}' /etc/fstab` ; do
if [ -b $i ] ; then
grep -q $i /proc/mounts || e2fsck -p $i 2>&1 | logger -t e2fsck
else
logger -t fstab "$i is not attached"
fi
done
pre-mount will start e2fsck if needed. My WL-HDD with its 80GB HDD takes some hours to do this check! It is possible that your router is switched on and the HDD becomes available hours later. You can leave pre-mount empty to prevent this, but your file system will have to be checked from time to time. Your decision. I have this activated.
post-mount is executed after pre-mount
DF command