Help! My /var/hack's gone

Discussion in 'TiVo Series 1 - UK' started by Pian, May 28, 2004.

  1. Pian

    Pian New Member

    19
    0
    Aug 18, 2002
    Herts

    Advertisements

    As per te title - my /var/hack (together with tivoweb, tivowebplus, ...) has gone!

    Still got telnet, ftp. Help! what's gone wrong??

    SMART was ok a couple of days ago (according to tivoweb+).

    Help!
     
  2. Chris T

    Chris T New Member

    222
    0
    Oct 30, 2002
    Leicstershir...
    Don’t worry! The problem with using the /var/ directory is that if Linux finds a problem with it or it becomes too full it will delete and rebuild the contents sans of course the hack directory.

    Not much you can do at this stage but start again, there have been several discussions in the past about alternative places to keep your hacks and ways of backing up the hack directory.
     
  3. sanderton

    sanderton TiVoer since 11/2000

    6,341
    0
    Jan 4, 2002
    Only the former; being too full is a TiVo urban myth. :)
     
  4. Pian

    Pian New Member

    19
    0
    Aug 18, 2002
    Herts
    Bugger!

    So the conclusion is that /var/hack (and /var/hackbak, which I cunningly made) are both gone, and it's time to d/l tivoweb, +, tivosh, and all those little things I've come to rely on ....

    <sigh>

    Memo to self - copy to a pc directory this time.
     
  5. sanderton

    sanderton TiVoer since 11/2000

    6,341
    0
    Jan 4, 2002

    Advertisements

    Or create a tarball of /var so you can easily recover it.
     
  6. Pian

    Pian New Member

    19
    0
    Aug 18, 2002
    Herts
    Don't suppose you want to PM me yours????
     
  7. sanderton

    sanderton TiVoer since 11/2000

    6,341
    0
    Jan 4, 2002
    Wouldn't work.
     
  8. Deadslow

    Deadslow Member

    96
    0
    Aug 22, 2002
    Cornwall
    This is too much to be just coincidence. At the moment I fixed my rc.sysinit.author file the same thing has happened to me! All I did was download the latest listings. Oh well, time to give TW+ a go.:rolleyes:
     
  9. mike0151

    mike0151 A Friend of Dot

    752
    0
    Dec 13, 2001
    Liverpool,...
    TW+ is fine, don't worry.

    tarball can be created by moving to the /var/hack directory and entering:

    tar -cvf tarballname.ext . <enter>

    Note the . (full stop) and of course <enter> is pressing the enter key.
     
  10. smokie

    smokie New Member

    420
    0
    Dec 27, 2002
    I've just got tar and made this backup, thanks for the tip. Can I safely delete any .tar files in /var/hack from where I installed packages (e.g. tbin.tar, tivoweb-xx-xxx.tar, joe.tar)? I have them on my PC directiry anyway if ever I needed them.
     
  11. iankb

    iankb New Member

    6,468
    0
    Oct 9, 2000
    Reading, UK
    And if you don't have the tar executable, you should be able to get it from here.
     
  12. sanderton

    sanderton TiVoer since 11/2000

    6,341
    0
    Jan 4, 2002
    The /var partition gets deleted if it fails two consectutive runs of the Linux equivalent of chkdsk.

    If it happens a lot it may be indicative of a disk problem.

    Also, it only happens on a reboot, so your Tivo must have crashed.
     
  13. Deadslow

    Deadslow Member

    96
    0
    Aug 22, 2002
    Cornwall
    Yes, it was on the (last) reboot, but the Tivo did not crash (I'm using it while rebuilding).

    On a separate subject, with TW+ do you still have to change ui.itcl? Is there anything else different to TW (save fewer modules to run)? Ta.
     
  14. pmk

    pmk New Member

    388
    0
    Jan 1, 2002
    1. Does creating a tar bar include all file permissions etc?
    2. If the var area is removed do you loose access to Telnet / FTP or is this insalled in a different area?

    TIA
     
  15. Pian

    Pian New Member

    19
    0
    Aug 18, 2002
    Herts
    Phew! Found a backup copy of my /var/hack on my root. Now backed up to pc!
     
  16. sanderton

    sanderton TiVoer since 11/2000

    6,341
    0
    Jan 4, 2002
    Yes, a tar file preserves permissions, provided you use the right options.

    The default of the Turbonet installer is to pyt telnet and FTP in the root partition.
     
  17. Cainam

    Cainam Tivo Evangelist

    332
    0
    May 25, 2004
    Chester-le-S...
    I don't suppose anyone knows somewhere else to get the tar files from? The link above (on safepages.net) does not appear to work anymore...
     
  18. threadkiller

    threadkiller Dark side Nrth Devon

    523
    0
    Dec 12, 2002
    here tiz
     

    Attached Files:

    • tar.zip
      File size:
      80.2 KB
      Views:
      96
  19. scottym

    scottym Saggitarius

    16
    0
    Jul 5, 2003
    Red Bank, NJ
    I've lost my /var/hacks directory twice already. Running 6.2 with the serial port redirect at the end of rc.sysinit. The rc.sysinit change is persisent but I lose my /var/hack directory.

    Is pulling the power on the TiVo equivalent to causing a crash? Is yanking the power on a running TiVo :confused: a bad idea?
     
  20. CarlWalters

    CarlWalters Yo Ho TiVo!

    644
    0
    Oct 17, 2001
    RG4,...
    If losing the /var/hack starts to happen regularly then it's probably worth considering a cron thingy to automatically create a /var/hack archive a ftp it back to your PC. Just for peace of mind. Although when I lost my /var/hack once I found it quite therapeutic to put all the hacks back on by hand :)
     

Share This Page

spam firewall

Advertisements