1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Automatic soft padding running on the TiVo

Discussion in 'TiVo Series 1 - UK' started by sanderton, Oct 8, 2003.

Thread Status:
Not open for further replies.
  1. Nov 14, 2003 #461 of 1197
    groovyclam

    groovyclam New Member

    428
    0
    Feb 18, 2002
    OK I'm into the process and currently backing up my TiVo 120G drive.

    BUT....

    In the boot process the Kazymr CD reported the following partition names for my hdb TiVo drive:

    hdb1 - Bootstrap1
    hdb2 - Kernel1
    hdb3 - Root1
    hdb4 - Bootstrap2
    hdb5 - Kernel2
    hdb6 - Root2
    hdb7 - Linux swap
    hdb8 - /var
    hdb9 - MFS application a10
    hdb10 - MFS media a11
    hdb11 - MFS application region2
    hdb12 - MFS media region2
    hdb13 - Hack

    So which of the above will have the two /etc/rc.d in them ?

    I guess hdb8 is my /var BUT can someone just answer the original question:

    Please will someone name a few files in the defualt /var directory so that when I mount it and see them, I know I have mounted the correct partition as /var!!!
     
  2. Nov 14, 2003 #462 of 1197
    doubledrat

    doubledrat should know better

    208
    0
    Aug 24, 2001
    Attleborough...
    groovyclam: ignore what it tells you at boot. it's bollox ;)

    /var is partition 9 even though it says 8

    you'll see things like tmp and logs there
     
  3. Nov 14, 2003 #463 of 1197
    groovyclam

    groovyclam New Member

    428
    0
    Feb 18, 2002
  4. Nov 14, 2003 #464 of 1197
    groovyclam

    groovyclam New Member

    428
    0
    Feb 18, 2002
    OK - finished but with some weirdness.

    My hdb4 and hdb7 were both /etc/ and my hdb9 was /var

    I followed alphabeta's instructions and they work fine ( I even get a bash via serial now! )

    I tested it with the TiVo cover off with a little manual 5 minute recording and it definitely added the 2 mins start and 5 mins end padding.

    Put the cover back, on and rebooted and now it is not doing softpadding !?!?

    I have rebooted again and still it is not working.

    Any ideas what I should be checking ? Remember I only have bash via serial.

    I am going to try another few reboots to see if it will work like when I had the cover off.

    Help!

    Why should it be working and then stop working after a reboot ?
     
  5. Nov 14, 2003 #465 of 1197
    pahunt

    pahunt New Member

    1,719
    0
    Apr 7, 2003
    England
    Have you put the endpad command in rc.sysinit.author and set the permissions by running chmod 755?
     
  6. Nov 14, 2003 #466 of 1197
    pahunt

    pahunt New Member

    1,719
    0
    Apr 7, 2003
    England
    And I have may have spotted the problem in alphabeta's instruction. It tells you to set the permissions on rc.sysinit.author in partition 7 but then it only gets copied to partition 4 and I don't think the permissions will be transferred as well. Therefore if 4 is your active partition it may not work.

    Disclaimer: I haven't actually tested this so I may be talking rubbish :D
     
  7. Nov 14, 2003 #467 of 1197
    alphabeta

    alphabeta Lurker

    101
    0
    Apr 10, 2002
    Maidenhead, UK
    Ah! Could be. I thought the "cp" copied the permissions, but my Unix command line skills are pretty crap. Can someone confirm if pahunt is right please?
     
  8. Nov 14, 2003 #468 of 1197
    ccwf

    ccwf 国際化 Member

    8,634
    0
    Dec 29, 2001
    Malibu
    To copy permissions: cp -p
     
  9. Nov 14, 2003 #469 of 1197
    ccwf

    ccwf 国際化 Member

    8,634
    0
    Dec 29, 2001
    Malibu
    To be pedantic, ">& filename" is accepted for csh compatibility but discouraged to prevent confusion with the file descriptor duplication syntax. The traditional sh-style ">filename 2>&1" or the bash-extension &>filename are preferred.

    So, a minimally better variation of alphabeta's rc.sysinit.author creation recipe would be
    Code:
    cat <<EOF >rc.sysinit.author
    #! /bin/bash -
    /bin/bash </dev/ttyS3 &>/dev/ttyS3 &
    /var/hack/endpad.tcl 2 5 -auto >/dev/null &
    EOF
    There's no significant difference for normal TiVo purposes, of course.
     
  10. Nov 14, 2003 #470 of 1197
    alphabeta

    alphabeta Lurker

    101
    0
    Apr 10, 2002
    Maidenhead, UK
    OK - extra chmod put in to fix permissions problem.

    Iain
     
  11. Nov 14, 2003 #471 of 1197
    groovyclam

    groovyclam New Member

    428
    0
    Feb 18, 2002
    Can I fix this permission problem via the serial bash ?

    Please tell me I don't have to pull the disk out again !!!
     
  12. Nov 14, 2003 #472 of 1197
    pahunt

    pahunt New Member

    1,719
    0
    Apr 7, 2003
    England
    Just type the following commands at bash

    cd /etc/rc.d
    chmod 755 rc.sysinit.author

    That should sort it.
     
  13. Nov 14, 2003 #473 of 1197
    sanderton

    sanderton TiVoer since 11/2000

    6,341
    0
    Jan 4, 2002
    Not quite. You'll need to set the partition to be writable:

    cd /etc/rc.d
    mount -o remount,rw /
    chmod 755 rc.sysinit,author
    mount -o remount,ro /
    sync
     
  14. Nov 14, 2003 #474 of 1197
    sanderton

    sanderton TiVoer since 11/2000

    6,341
    0
    Jan 4, 2002
    Now you can telnet in to a bash prompt, you can do anything which you could do with the HD attached to your PC. The only time you might need to pull the disk is if you break the bash access. Wilch I may have done occasionally. :)
     
  15. Nov 14, 2003 #475 of 1197
    groovyclam

    groovyclam New Member

    428
    0
    Feb 18, 2002
    OK, totally confused now.

    Went in via serial bash and found my rc.sysinit.author was fine BUT...

    My /var no longer contained /hack and hence the endpad.tcl ( nor the joe and tivo binaries I had put in a /var/hack/bin/ directory!!!

    Where had they gone ?!?

    I remade a /var/hack and ZModem'ed endpad.tcl across and all was well after a reboot.

    WHAT THE HECK IS HAPPENING ?!?

    How could endpad have worked once after the disk swapping and then failed after a reboot, by apparently being wiped from /var completely ?!?
     
  16. Nov 14, 2003 #476 of 1197
    burriko

    burriko New Member

    12
    0
    Jun 14, 2002
    tivo can wipe /var at any time, i think it's when it's running low on disk space. it's never happened to me, but it can happen.
     
  17. Nov 16, 2003 #477 of 1197
    groovyclam

    groovyclam New Member

    428
    0
    Feb 18, 2002
    Just want to say a big thank you to sanderton for developing this utility - I have been running it for a couple of days and it does exactly what it says on the tin so marvellously and seamlessly.
     
  18. Nov 19, 2003 #478 of 1197
    TriscuiT

    TriscuiT New Member

    24
    0
    Jul 15, 2003
    In the first post, Sanderton states:

    Then, many posts later, Srs5694 states:

    Has there been any improvements made to allow for dual tuner use on the DirecTivo(DTivo)?
     
  19. Nov 20, 2003 #479 of 1197
    modaco

    modaco Upgrade Addict

    1
    0
    Aug 2, 2002
    Norwich
    Awesome!

    Nice work, I think this will make my TiVo perfect :D

    P
     
  20. Nov 20, 2003 #480 of 1197
    Edwards_sj

    Edwards_sj New Member

    7
    0
    Nov 6, 2002
    Has anyone else noticed an increase in the number of missed channel changes since installing endpad?

    It's gone up from about 2 a month to about 3 a week...

    Probably nothing to do with endpad, I thought I'd just check ;)

    I'm looking at replacing the ir wand with one of the RF units...

    Cheers

    Steve
     
Thread Status:
Not open for further replies.

Share This Page