Unfortunately no one can be told what fun_plug is - you have to see it for yourself.
You are not logged in.
Hello,
somewhere here I read that the flash devices /dev/mtdblock0 and /dev/mtdblock1 should always be unmounted to prevent corruption. /dev/mtdblock1 is and manually umounting /dev/mtdblock0 is no problem either, but after restarting the CH3SNAS (1.04RC6) it's always mounted again.
Recently I had some trouble because I swapped my harddisks and it needed a couple of long telnet sessions to fix it, but now I'm afraid this mtdblock0 thing is a result of my noob-style intervention.
Or should I just forget about that because everything seemes to work fine...?
Thanks, cdk
Last edited by cdk (2008-10-19 17:55:58)
Offline
I cannot say for sure on the CH3NAS, but on the DNS, it can cause major problems. Check the file /etc/rc.sh. It is the file that calls for the mounting and unmounting of the flash. On the DNS F/W 1.04, /dev/mtdblock0 is unmounted on line 81.
Offline
In /etc/rc.sh the device is first mounted, followed by a huge list of cp jobs and after that it's finally unmounted. So I think it's remounted later again by another process. Which one could this be?
This is the last section of /etc/rc.sh, after the umount command (line 109):
umount /sys/mtd1 #Wilson12282005+ rm -rf /default mkdir /default cp -f /sys/crfs/default/* /default/ mv /tmp/hd_magic_num /default/ #Insert Scsi Disk Driver Module insmod /usr/lib/modules/sd_mod.ko #Wilson04282006 rm -f /default/server.pem rm -f /default/cakey.pem rm -f /default/cacert.pem rm -f /default/Certs.info rm -f /default/server-key-nopassword.pem cp -f /sys/crfs/default/server.pem /web/ cp -f /sys/crfs/default/cakey.pem /web/ cp -f /sys/crfs/default/cacert.pem /web/ cp -f /sys/crfs/default/Certs.info /web/ cp -f /sys/crfs/default/server-key-nopassword.pem /web/ adjtimex -t 9960 rtc -s echo "<fan script start>" /sbin/fan.script & echo "** set loopback interface" /sbin/ifconfig lo 127.0.0.1 netmask 255.0.0.0 # # Enslave Ethernet interface eth0 # mac_read echo 0 > /proc/sys/net/ipv4/ip_forward if [ ! -e /tmp/wrongdate ]; then echo "** execute rc.init.sh" #mount chg_hostname #fish20060817+ /etc/rc.d/rc.init.sh #for printer sever (jack) chmod 777 /dev/null chown 501:501 /dev/null judge_swap #+Wilson04282005 mbr write_raidtab hd_verify write_raidtab #eve020107 chk_mtdaapd_path #eve010506 atd smbcom smbd -D nmbd -D ex_goweb & SetTimeZone stime crond chkbutton #jack20061020+ /bin/cat /sys/crfs/default/version.txt route add -net 224.0.0.0 netmask 255.0.0.0 dev egiga0 /usr/sbin/mfg_search /bin/upnpscript #+Wilson12282005 echo "** Get MAC Addr" MACStrStart=39 MACStrOffset=17 LANMACStr=$(ifconfig egiga0 | grep HWaddr) lanmac=`expr substr "$LANMACStr" "$MACStrStart" "$MACStrOffset"` echo "$lanmac" > /etc/macaddr #Wilson12282005+ chk_sysfile & #+eve010407:check system file chk_openssl & sharedname_sort & touch /var/spool/at/.SEQ /web/webs & cp /proc/scsi/scsi /etc #+Wilson04282006, backup scsi file for hotswap /usr/sbin/chk_fun_plug & /usr/sbin/chk_upnpav_path & fancontrol & #Added by Ben, Start inotify to watch iTune Share Folder /etc/iTunescript & #Eve05122006++ mount -t usbfs none /proc/bus/usb #+eve01032007:Insert LLTD Module insmod /usr/lib/modules/lltd.ko #fish20070116 + ex_opserver #fish20070116 end #eve050307:BT ./sys/crfs/sbin/linkscript & #+Vincent01252008 SyncMms & getMsg & #Vincent01252008+ #touch /var/spool/at/.SEQ #/web/webs & touch /tmp/boot_finished else echo "<reboot now>" reboot fi
I now searched these scripts for the word "mount", but without success:
- /sbin/fan.script
- /etc/rc.d/rc.init.sh
- /bin/upnpscript
- /etc/iTunescript
- /sys/crfs/sbin/linkscript
Did I miss something? What comes after /etc/rc.sh?
Offline