rc.sysinit - tivo won't boot

Discussion in 'TiVo Series 1 - UK' started by SpicyHedgehog, Jun 18, 2004.

  1. SpicyHedgehog

    SpicyHedgehog I am real

    28
    0
    Feb 20, 2003
    Suffolk, UK.
    Hi All

    I've been a bit silly and edited the rc.sysinit file with windows. Is anybody able to help me recover it?

    I'm lost without the tivo and don't want to loose my recorded programmes.

    Thanks

    Glen
     
  2. Robert S

    Robert S New Member

    9,725
    0
    Jul 8, 2002
    Cambridgeshi...
    Two things tend to happen when you do that. One is that the 'executable' flag tends to get reset. You can fix that with "chmod +x /mnt/etc/rc.d/rc.sysinit".

    The other thing is that DOS-style line-terminations replace the Unix-style ones that sh is expecting. I don't have the solution to hand, but it's such a common on that a few minutes with Google should turn it up. I would think sed would be the tool to use.
     
  3. SpicyHedgehog

    SpicyHedgehog I am real

    28
    0
    Feb 20, 2003
    Suffolk, UK.
    Hi Robert

    The problem is I don't know how to mount the drive to get access to it in my PC.

    I'll have a look for SED.

    Is there anyone that can fix my drive? I'll post it if neccessary.

    Thanks

    Glen
     
  4. Robert S

    Robert S New Member

    9,725
    0
    Jul 8, 2002
    Cambridgeshi...
    Just boot Kazymyr's CD with the TiVo drive on secondary master. Then you can do:

    mount /dev/hdc4 /mnt

    If that fails, or mounts your inactive root partition, you might have to mount hdc7 instead. Most UK TiVoes went from 1.5.1 to 2.5.5, so you should be on partition 4. If you had 1.5.2 or got 2.5.5a (but not both), then partition 7 will be the active one.

    You can check the permissions with

    ls -l /mnt/etc/rc.d/

    The permissions for rc.sysinit should look something like

    -rwxr-xr-x

    If the x's are missing, run the chmod command.

    And that would be 'sed' and not 'SED' - Unix is case-sensitive.

    The sed command will be a pattern of more-or-less random characters.
     
  5. iankb

    iankb New Member

    6,468
    0
    Oct 9, 2000
    Reading, UK
    Whatever you do, don't boot into Windows NT, 2000, or XP with your TiVo drive attached. That will corrupt the drive for TiVo and require a complete restore from a backup image.
     
  6. SpicyHedgehog

    SpicyHedgehog I am real

    28
    0
    Feb 20, 2003
    Suffolk, UK.
    Hi All

    Thanks very much for the help. My TiVo now has a smile on his little face again.

    Lesson learnt this end.... don't try and shortcut in windows.

    Cheers,

    Glen
     
  7. threadkiller

    threadkiller Dark side Nrth Devon

    523
    0
    Dec 12, 2002
    the lesson should be don't edit the rc.sysinit file, only the rc.sysinit.author. and if you use sandertons Tivoweb app, then even thats a doddle
     
  8. Megabyte

    Megabyte New Member

    8
    0
    Jul 17, 2004
    If someone can help me, please do
     
  9. Mike B

    Mike B Senior Munkee

    445
    0
    Sep 16, 2003
    Reading,...
    You've deleted the rc.sysinit file? Which partition did you delete it from?
     
  10. threadkiller

    threadkiller Dark side Nrth Devon

    523
    0
    Dec 12, 2002
    which file?????
     
  11. Megabyte

    Megabyte New Member

    8
    0
    Jul 17, 2004
    I deleted the rc.sysinit file from ftp. I cant believe I was being that careless but nevertheless its gone. It was deleted from the active partition. I tried using the one from the inactive partition and the tivo just reboots before it switches to alomost there.

    Can someone send me that file for a ver 3 system. It not model specific, right? Maybe just version because apperantly the one in the inactive directory is not working. PLEASE, PLEASE Help.

    Also my backup disk seems to be empty, blank....no partitions on it. Its been in my closet for 4 years.

    I think I could save my system if I get the exact matching file that I had. Any input from you guy would really be help helpful.

    If you want to email me the file, send it to jpuma@verizon.net'


    Thanks,
    Joe
     
  12. Robert S

    Robert S New Member

    9,725
    0
    Jul 8, 2002
    Cambridgeshi...
    After you copied the file from the inactive partition, did you chmod it to make it executable?

    It's unlikely your old disk is blank. Remember you need to boot a byteswapping disk like Dylan or Kazymyr with the drive connected to something other than primary master.
     
  13. iankb

    iankb New Member

    6,468
    0
    Oct 9, 2000
    Reading, UK
    If you want a version 3 file, you're asking on the wrong forum. We only have version 2.5.5 in the UK. However, I doubt that there is any real difference.
     
  14. sanderton

    sanderton TiVoer since 11/2000

    6,341
    0
    Jan 4, 2002
    Oh it's different all right - rc.sysinit loads the PAL drivers!
     
  15. iankb

    iankb New Member

    6,468
    0
    Oct 9, 2000
    Reading, UK
    PAL = 3 letters, NTSC = 4 letters. Only 1 letter different then. :p
     
  16. Megabyte

    Megabyte New Member

    8
    0
    Jul 17, 2004
    I did the chmod 755 on the file. Still keeps rebooting just as it want to switch to almost there. Could there be hdd corruption? isnt there a log I can check to see whats going on?

    as for the 3.0 file, I didnt think this board was uk ony, is it? where can I go to ask for this type of file?

    I will try the hdd restore again. I have a 6 digit code written on the drive. i cant remember why i put it there. all I know is when i tried to mount the partition it couldnt find anything.

    anymore suggestions? other than restore?
     
  17. Robert S

    Robert S New Member

    9,725
    0
    Jul 8, 2002
    Cambridgeshi...
    Did you copy the file to Windows before you deleted it off the TiVo? If so, the transfer converts the line terminations from the Unix-style CR's to DOS-style CR-LF's and it will need converting back before it will run as a Unix script.

    When you say 'backup disk' do you mean a working A drive or a disk with an MFS Tools backup on it?

    The title of this part of the site - TiVo UK - is a hint that you should expect to see posts from British TiVo owners here. I would have posted this in the Underground.
     
  18. mike0151

    mike0151 A Friend of Dot

    752
    0
    Dec 13, 2001
    Liverpool,...
    IIRC dos2unix.exe is the little beasty that strips off the nasty DOS bits.
     
  19. Megabyte

    Megabyte New Member

    8
    0
    Jul 17, 2004
    Didn't edit the file on my pc. Just moved it to floppy and then to tivo. You can if a file is edited on the pc when you see blue M's in the joe editor, right.

    sorry didn't know I posted in this uk forum, I actually replied to the original post since I found it in a search.
     
  20. mike0151

    mike0151 A Friend of Dot

    752
    0
    Dec 13, 2001
    Liverpool,...
    When you ftp the file to your TiVo did you make sure you did it in binary mode? Ascii mode will generally cause problems due (I believe) to some flakiness with the tivo ftp prog.

    HTH

    Mike
     

Share This Page