PDA

View Full Version : Rebuilding /var


chjones
10-22-2002, 11:22 AM
0) Phil 212 SA, 1x60GB maxtor, TurboNet, tnlited, tivoweb 1.9.4beta4, yac
1) Yesterday (10/21) was getting message that I needed to make a daily call (common problem, apparently)--none had been made since 10/16: coincidentally (?) the day I installed tivoweb beta4, changed from dynamic to static ip, and put tnlited, tivoweb, and yac all in rc.sysinit.author. (I was running just tnlited, and telnetting in to start the rest when i wanted them. Damn me for doing more than one upgrade at a time!)
2) Getting daily updates by ethernet had been working fine; others over at tivocommunity had been bitching about the same problem even with modems, so I didn't call TiVo and decided to troubleshoot it myself. First step--disable tivoweb and yac. Didn't work.
3) Change back to DHCP, reboot--could no longer tn in (at either address, and router was fine). I assumed I had accidentally screwed up an rc.*, and pulled the drive to check it out.
4) Booted into my linux machine (it's been a while since I pulled my tivo drive), then remembered I had to reboot with Dylan's disk.
5) Changed back to the original rc.sysinit, rc.net; had rc.sysinit.author with only tnlited in it.
6) After several tries, got daily call working, can tn in---but /var has (apparently) been rebuild (I assume by rc.sysinit). There is no longer a /var/hack---not really a problem, since I can http_get whatever I need, but is this a known issue? I honestly didn't expect this, and since I still don't know what caused my original problem (lack of daily calls, then inability to tn in), I'm not sure how quickly I want to turn this back around. Ideas?

CDJ

Enigma
10-31-2002, 01:00 AM
Yep, this is a known behavior. If /var is full or if it is marked as not clean and fails the e2fsck the tivo will rebuild it. There are various ways around this, what I do is mount my /var/hack from a nfs server, then if my /var/ gets blown away I just have to log in via the serial console and mkdir /var/hack && mount -a and all my hacks are back.

chjones
10-31-2002, 01:02 AM
I ended up just storing a gzip'd /var/hack on my regular backup server, and checking for the proper existence in rc.sysinit.author. Thanks for the encouragement that I'm not just going insane!
CDJ