[19. April 2013] A-400 Advanced Network Setup now available | [11 Jan. 2013] Customize your A-400 Home Screen

Firmware: A-400 [13 May 2013] | C-300 [30 Nov. 2012] | A-300 [30 Nov. 2012] | C-200 [21 Jan. 2013] | A-200/A-210 [10 Aug. 2012]

Just got your NMT | WIKI has the answers | Search the forum | Forum Rules/Policy | Firmware & Official NMT News | Popcornhour manuals



User(s) browsing this thread: 1 Guest(s)
/tmp files wiped out after NFS mounting -- settings lost
01-22-2009, 11:03 AM
Post: #1
/tmp files wiped out after NFS mounting -- settings lost
(Werner, this is what I reported in the beta section)

After doing the firmware upgrade (beta and official), I install Lundman's telnet and the start.cgi index replacement.
So far no problem, all as expected.
Contents of /tmp include files like:
Code:
# ls -al /tmp
drwxr-xr-x    3 root     root            0 Jan 22 00:15 .
drwxr-xr-x   19 root     root            0 Jan 22 00:15 ..
-rw-r--r--    1 root     root         8490 Jan 21 23:54 0
-rw-r--r--    1 root     root          181 Jan 21 23:18 browselist.htm
-rw-r--r--    1 root     root           18 Dec 31  1999 cam
prw-rw-rw-    1 root     root            0 Dec 31  1999 cdpipe
drwxr-xr-x    3 root     root            0 Dec 31  1999 cron
-rw-r--r--    1 root     root            3 Jan 21 23:54 current_tv
prw-rw-rw-    1 root     root            0 Jan 21 22:44 devicepipe
-rw-r--r--    1 root     root           37 Jan 21 22:45 dns_cache
-rw-r--r--    1 root     root          721 Jan 22 00:15 drivelst.txt
-rw-r--r--    1 root     root            2 Jan 21 23:54 f_hdmi
-rw-r--r--    1 root     root            0 Dec 31  1999 fipd
-rw-r--r--    1 root     root            4 Dec 31  1999 fipd.pid
prw-rw-rw-    1 root     root            0 Jan 21 23:25 gaya_bc
prw-rw-rw-    1 root     root            0 Jan 21 22:44 gaya_cgi
-rw-r--r--    1 root     root           16 Dec 31  1999 ifstate
prw-r--r--    1 root     root            0 Jan 21 22:44 ipmon_pipe
prw-rw-rw-    1 root     root            0 Dec 31  1999 irkey
-rw-r--r--    1 root     root         1472 Dec 31  1999 ld.so.cache
-rw-r--r--    1 root     root          675 Jan 21 23:50 lircd
-rw-r--r--    1 root     root            4 Dec 31  1999 lircd.pid
-rw-r--r--    1 root     root            5 Jan 21 22:45 mDNSResponder.pid
-rw-r--r--    1 root     root          474 Jan 21 23:50 mono_bookmark
-rw-r--r--    1 root     root          106 Jan 21 23:54 mono_settings
-rw-r--r--    1 root     root          382 Jan 21 23:25 netshare
-rw-r--r--    1 root     root            0 Jan 22 00:17 nmt_ftp
-rw-r--r--    1 root     root            0 Jan 22 00:17 nmt_mi
-rw-r--r--    1 root     root            0 Jan 22 00:17 nmt_nfs
-rw-r--r--    1 root     root            0 Jan 22 00:17 nmt_smb
-rw-r--r--    1 root     root          510 Jan 21 23:27 playlist.htm
-rw-r--r--    1 root     root            4 Jan 21 22:44 pure-ftpd.pid
-rw-------    1 root     root          512 Dec 31  1999 random-seed
-rw-r--r--    1 root     root            5 Jan 21 22:44 rpc.statd.pid
-rw-------    1 root     root            0 Jan 21 22:45 sess_8a33412e45db18cc2f4a9a600f49a997
-rw-r--r--    1 root     root         1360 Jan 21 23:54 setting.txt
-rw-r--r--    1 root     root          476 Jan 21 23:25 setup_cgi_log
-rw-r--r--    1 root     root          183 Jan 21 23:29 start.cgi-crontab.3855
-rw-r--r--    1 root     root            3 Jan 21 23:54 tvmode
-rw-r--r--    1 root     root            2 Jan 21 23:49 tvtype
-rw-r--r--    1 root     root          116 Jan 21 22:45 upnprdr.htm
prw-rw-rw-    1 root     root            0 Dec 31  1999 usbkbdpipe
-rw-r--r--    1 root     root           49 Jan 22 00:15 usbstate
-rw-r--r--    1 root     root            2 Jan 21 23:49 zoom_option

The next command I run is my modified start_app.cgi file which will test to see if telnet is running, if not then start it.
I also test for the 2nd PCH unit and my NAS with Ping before I check if they are already mounted.
If servers are up and not mounted, my script (basically) does the following:
Code:
NAME_NAS="Movies1080"
NAME_PCH="NFS-Popcorn"      
IP_NAS="192.168.1.99"      
IP_PCH="192.168.1.22"
NWS="/opt/sybhttpd/localhost.drives/NETWORK_SHARE"
NAS="$NWS/$NAME_NAS"                                    
PCH="$NWS/$NAME_PCH"

echo "${IP_PCH}:/share      $PCH nfs rw,rsize=32768,wsize=32768,timeo=14,intr 0 0" >> /etc/fstab
echo "${IP_NAS}:/${NAME_NAS} $NAS nfs rw,rsize=32768,wsize=32768,soft,nolock 0 0" >> /etc/fstab
mount -a

Now if I look to see if they are mounted...
Code:
# ls -al /opt/sybhttpd/localhost.drives/NETWORK_SHARE
drwxr-xr-x    6 root     root            0 Jan 21 23:25 .
drwxr-xr-x    5 531      500             0 Jan 16 01:11 ..
drwxrwxr-x   35 guest    nmt         53248 Jan 19 12:02 Movies1080
drwxrwxrwx    2 root     root            0 Jan 21 22:44 NETWORK_BROWSER
drwxrwxrwx   15 nmt      nmt          4096 Jan 21 20:51 NFS-Popcorn

You can tell by user guest and nmt that they are mounted.
Now if I look at the contents of /tmp again...
Code:
# ls -al /tmp
drwxr-xr-x    2 root     root            0 Jan 22 00:20 .
drwxr-xr-x   19 root     root            0 Jan 22 00:20 ..
-rw-r--r--    1 root     root            0 Jan 22 00:20 nmt_ftp
-rw-r--r--    1 root     root            0 Jan 22 00:20 nmt_mi
-rw-r--r--    1 root     root            0 Jan 22 00:20 nmt_nfs
-rw-r--r--    1 root     root            0 Jan 22 00:20 nmt_smb

What could have caused the files to disappear -- some program crashed (no core dump file found) ?

To get things back to normal I need to re-install firmware, but what caused the problem?
Suggestions please!
confused
Find all posts by this user
[+] 1 user says Thank You to garp99 for this post
10-19-2009, 06:16 PM
Post: #2
RE: /tmp files wiped out after NFS mounting -- settings lost
(01-22-2009 11:03 AM)garp99 Wrote:  
Code:
NAME_NAS="Movies1080"
NAME_PCH="NFS-Popcorn"      
IP_NAS="192.168.1.99"      
IP_PCH="192.168.1.22"
NWS="/opt/sybhttpd/localhost.drives/NETWORK_SHARE"
NAS="$NWS/$NAME_NAS"                                    
PCH="$NWS/$NAME_PCH"

echo "${IP_PCH}:/share      $PCH nfs rw,rsize=32768,wsize=32768,timeo=14,intr 0 0" >> /etc/fstab
echo "${IP_NAS}:/${NAME_NAS} $NAS nfs rw,rsize=32768,wsize=32768,soft,nolock 0 0" >> /etc/fstab
mount -a

Sorry, but I don't know the answer, but I want to thank you for the above script, it helped me with automounting!

Wink
Find all posts by this user


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Copying files from USB source to Internal HD using NMT interface fishe 8 9,828 10-08-2009 08:14 PM
Last Post: Bizness
  new to nmt and very lost donald davidson 16 9,627 09-23-2009 07:32 PM
Last Post: donald davidson
  PCH a110 & synology ds409+ playing ISO files storebatfar 6 4,544 07-17-2009 03:28 AM
Last Post: chris57
  Locked in "Settings" :( MarKand 3 1,659 07-14-2009 06:39 AM
Last Post: chris57
  Can't rewind MKV video files... lorissimo 14 9,428 06-30-2009 08:02 AM
Last Post: chris57
  losing settings...NFS/SAMBA "disappears" 8ace 3 1,658 06-25-2009 08:24 AM
Last Post: chris57
  I am totally lost -.- torytrae 11 3,565 06-18-2009 07:56 AM
Last Post: chris57
  Copying Files From MAC internal to the Popcorn-Hour 110 Internal illpickle 3 5,264 06-14-2009 07:17 PM
Last Post: illpickle
  Copying files DaaT 9 2,765 06-12-2009 11:41 AM
Last Post: zell
  How do i copy files to the internal hdd with a network cable? mokn 16 4,238 06-07-2009 12:35 AM
Last Post: sickest

Forum Jump: