PDA

View Full Version : Oooops...can you help?



Reno76
08-08-2003, 01:37 AM
Hi
Sorry to be a windows type of dude here but I have done the following whilst trying to get mfsstream running!
Edit rc.sysinit by ftp'ing the file to my machine...add the
/var/hack/tyhttpd 2000 4 >> /dev/null &
to the file...so far so good....then......
OK...just ftp that back into the /etc/rc.d folder....ummmm.....nope...its read only...doh!
Search the forum....aha! What I need to do is run mount -o rw,remount...that lets me copy the file back to the /etc/rc.d folder....
Then like a dweeb I rebooted the Tivo...doubledoh!

So I guess I need to pull the drive, stick it in a PC and do clever things to it in order to make it read only again and set whatever permissions are needed on my rc.sysint that I modified....

My question is....
What do I have to do to get it all back!

Your help will be appreciated more than you can imagine!

Peace

BubbleLamp
08-08-2003, 01:46 AM
1) If you edited it using a Windows app like Notepad, you'll need to convert it to Unix format (using DOS2UNIX) before copying it to the Tivo drive.

2) If/when it's in the proper format you need to chmod (chmod +x rc.sysinit) the file to make it executable.

Reno76
08-08-2003, 01:50 AM
Thanks for the reply....the problem is that the Tivo will now not boot so I need to get at the disk from a PC....What I was hoping for were some instructions as to what is needed to get it sorted from a PC....

Thanks

Peace

BubbleLamp
08-08-2003, 02:12 AM
Originally posted by Reno76
Thanks for the reply....the problem is that the Tivo will now not boot so I need to get at the disk from a PC....What I was hoping for were some instructions as to what is needed to get it sorted from a PC....

Thanks

Peace

Well you can mount the Tivo drive in the PC, boot off the Xtreme CD, then edit the file or chmod it that way. This is as close to a spoonfed step by step as I'll do:

Boot off the CD
mkdir /tmp/tdrive
mount /dev/hdX4 /tmp/tdrive
joe /tmp/tdrive/etc/rc.d/rc.sysinit
chmod +x /tmp/tdrive/etc/rc.d/rc.sysinit
umount /dev/hdX4
CTRL-ALT-DEL

If you don't see the rc.sysinit you modded, try doing the above with partition 7 instead of 4.

Reno76
08-08-2003, 06:21 AM
Thanks again for the help.....
I now have my tivo hdd in a pc and booted with the mfstools cd
When I cd to /etc/rc.d it would appear that ther is no rc.sysinit file in the directory! ls says that there is a file called rc.s* so I guess that somehow I have deleted rc.sysinit from that folder!
I have a copy on a floppy disk but have no idea what commands I need to run in order to
A: make the Tivo drive writable
B: copy rc.sysinit back into /etc/rc.d
C: return the Tivo HDD to the un-writable state

I bet all you Linux guys just laugh so much when us Windows guys get in a mess:)

I promise that if I get mfsstream to work I'll never open the box again unless I am fully proficient in the operating system:rolleyes:

Peace

Reno76
08-09-2003, 01:35 AM
I'm still stuck fast on this one guys:confused:
Anyone have any ideas?

Peace

BubbleLamp
08-09-2003, 10:27 AM
Originally posted by Reno76
I'm still stuck fast on this one guys:confused:
Anyone have any ideas?

Peace

Get yourself a book on Linux, these are simple commands.

mkdir /tmp/floppy
mkdir /tmp/tdrive
mount /dev/fd0 /tmp/floppy
mount /dev/hdX4 /tmp/tdrive
cp /tmp/floppy/rc.sysinit /tmp/tdrive/etc/rc.d/rc.sysinit
chmod +x /tmp/tdrive/etc/rc.d/rc.sysinit
umount /dev/hdX4
umount /dev/fd0
CTRL-ALT-DEL

captain_video
08-09-2003, 09:01 PM
Check out the Newbies Guide to the Tivo at this site:

http://www.gormly.com/~drapatin/tutorial.html

Reno76
08-10-2003, 04:09 AM
Your help and assistance is greatly appreciated....
I have one final hurdle to overcome I think....

So I mount the floppy...no problem

Mount the Tivo partition...no problem

Go to copy my backup rc.sysinit to be told that rc.sysint does not exist on the floppy!
Cd to /fd0/tmp
do an ls
this says that there is a file called rcc799~1.sys on the disk!
It shows up as rc.sysinit on a windows box....
What am I doing wrong this time?

Thanks for your help guys.....I'm getting there :rolleyes:

Reno76
08-11-2003, 12:20 PM
Do I need to change the file structure or filename in order for it to be properly recognised?
Just wondering if dos 8.3 naming is skewing the file system here?

I'm trying to learn this stuff guys so your patience will be rewarded:p

BubbleLamp
08-11-2003, 12:51 PM
Originally posted by Reno76
Do I need to change the file structure or filename in order for it to be properly recognised?
Just wondering if dos 8.3 naming is skewing the file system here?

I'm trying to learn this stuff guys so your patience will be rewarded:p

Yes, change the line to read

cp /tmp/floppy/rcc799~1.sys /tmp/tdrive/etc/rc.d/rc.sysinit

and you should be fine.

Reno76
08-12-2003, 06:54 AM
That fixed it!
All now working and restored:D

Many thanks to you for all your help!