I am new with Kamikaze 8.09 Linux 2.6.25.17 #2 Wed Feb 18 04:42:04 CST 2009
Question: From what script I take this two errors:
CODE from syslog
Jan 1 00:00:27 kernel: usb-storage: device found at 2
Jan 1 00:00:27 kernel: usb-storage: waiting for device to settle before scanning
Jan 1 01:00:28 WL500gP user.info : mount: mounting /dev/sda3 on /mnt/asus failed: No such file or directory -------- 1.error
Jan 1 01:00:28 WL500gP user.info : swapon: cannot canonicalize /dev/sda1: No such file or directory --------- 2.error
Jan 1 01:00:28 WL500gP user.info : swapon: cannot stat /dev/sda1: No such file or directory
Jan 1 01:00:28 WL500gP user.notice root: usb device is mass storage
Jan 1 01:00:28 WL500gP user.notice root: waiting on usb drive 0 ...
Jan 1 01:00:29 WL500gP user.notice root: waiting on usb drive 1 ...
Jan 1 01:00:29 WL500gP user.notice root: starting ntpclient
Jan 1 01:00:29 WL500gP user.info : Error for wireless request "Set Tx Power" (8B26) :
Jan 1 01:00:29 WL500gP user.info : SET failed on device ath0 ; Invalid argument.
Mar 2 22:42:38 kernel: device ath0 entered promiscuous mode
I have 3 partitions sda1 - swap, sda2 - system (next pivotroot), sda3 - space for ftp server user files
thanks
"my" script for mount "asus" (label sda3=asus is:
#!/bin/sh
# Copyright (C) 2007 OpenWrt.org
logger "usb device is mass storage"
i=0
while [ $i -le 10 ]; do
logger "waiting on usb drive $i ..."
i=$(($i+1))
cd /sys${DEVPATH}
for blk in `find host* -type d 2>/dev/null`; do
[ -d /sys/${DEVPATH}/${blk}/block/ ] && {
cd
for disc in `find /sys/${DEVPATH}/${blk}/block -name "sd*"`; do
sleep 2
cd $disc
for node in `find . -name "sd*" | cut -d "/" -f2`; do
echo "mounting /dev/${node} on /mnt/asus"
mkdir -p /mnt/asus
mount /dev/${node} /mnt/asus
i=20
done
done
}
done
sleep 1
done
(Last edited by nomad on 11 Mar 2009, 00:15)