View Full Version : rc.sysinit problem
KF6DKY
05-15-2003, 11:49 PM
I edited my rc.sysinit today by adding
/var/hack/tivoweb-tcl/tivoweb console
so that I may run tivoweb automatically with the startup script... the tivo now hangs on the "powering up" screen. Do I have to remove the drive and manually edit the file back to the original and can if so can place the drive into an external firewire case and just turn that on and edit with Notepad? I thought I read somewhere one time that if thats done windows will leave system info on the disk and render it useless?
Thanks,
KF6DKY
captain_video
05-16-2003, 08:53 AM
Whenever you edit a Linux file in Notepad or Wordpad, extraneous formatting characters are introduced by the program. You can either use a Unix-friendly editing program like Textpad or use the DOS2UNIX utility to convert the file after you've edited it. Check page 3 of the How Tos Only sticky for links to these programs.
Your DTivo is probably stuck on the "Powering up" screen because I'm betting you didn't make rc.sysinit executable (i.e. chmod +x rc.sysinit) after you transferred the file back to the Tivo drive. You'll have to pull the drive and install it in your PC in any position but primary master. Boot using any Linux boot CD, except MFSTools 2.0 (doesn't allow for byteswapping and you'll never get the partitions to mount), mount your partitions, and do a chmod on the rc.sysinit file or restore a backup. Check the How Tos Only sticky for a link to the Newbies Guide for info on mounting your Tivo partitions.
KF6DKY
05-16-2003, 12:22 PM
Thanks, let me give that a try this afternoon, hopefully I won't need to write back.
KF6DKY
KF6DKY
05-16-2003, 11:13 PM
I can get to where I need to go by mounting then I cannot rename the rc.sysinit file from the backup that the new version of tyserver left, what is the name of the backup file and exact location? I don't even show it in that location, when I do "ls" command I get "rc.S*" and "rc.init1"
This has been down since yesturday and I thought I could hang with doing the upgrade and it worked, but then I thought I would add the line in the rc.sysinit script to run the tivoweb automatically on startup, I edited it useing the built in editor in cuteftp pro and saved it.
Maybe I can get a step by step instruction from someone, I've read all the how tos and seem lost still, though not as bad.
Thanks,
KF
BTW, my wife is about ready to kill me now :((
jumper5836
05-16-2003, 11:30 PM
/etc/rc.d is where rc.sysinit lives
installing tyserver makes a copy of the old rc.sysinit file as rc.sysinit.tyserver
if you edit the file with vi it leaves the old file as rc.sysinit.bak
if you edit the file with jow it leaves the old file as rc.sysinit~
One thing I noticed from your post is you added
/var/hack/tivoweb-tcl/tivoweb console
this should only be run from the console (command prompt)
You should use just
/var/hack/tivoweb-tcl/tivoweb > /dev/null 2>&1 &
When you get it mounted read writeable then cd to /etc/rc.d and just copy rc.sysinit to rc.sysinit.bad and then cp rc.sysinit.tyserver to rc.sysinit
KF6DKY
05-16-2003, 11:43 PM
The problem is I cannot see the file even there. I only show the 2 in my previous post and i wrote them exactly as is.
KF
jumper5836
05-16-2003, 11:49 PM
are you in the right directory?
Where did you mount your root dir
you need to go to the /mount point/etc/rc.d
KF6DKY
05-17-2003, 12:09 AM
Its always the simplest things...lol.
My infamiliarity with linux. I needed to get to the mount point, everything I have read when giving commands did not give any examples of the mount points... took a step back viewed it and presto, everything iwas trying to was no prob after that, I'll fix that line in the rc.sysinit to read correctly, but when I do, do I enter through telnet and do a chmod +x before restarting the tivo this time?
KF
jumper5836
05-17-2003, 12:16 AM
do a ls -l on it and you should see the permissions are set properly.
If it has the permissions set then don't worry about it but It won't hurt if you chmod it anyway.
KF6DKY
05-17-2003, 12:21 AM
Thanks for all the help, you guys kept me outta the "dog House"...lol
KF
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.