View Full Version : mounting tivo drive?
This is not going to defeat me! I tried to edit my rc.sysinit file to change my ip address. When I sent the file back to the tivo via zmodem I never got a chance to do chmod 777. So now I don't have a bash prompt. I downloaded mfstools and put my tivo drive in my pc. All appears to be confiqured correctly. I am at the /# and I can not figure how to mount the tivo drive and do the chmod 777 to restore my bash prompt. Help!
pkpss
11-29-2003, 12:37 PM
Commands as follows :
mount /dev/hdcB /mnt/tivo (where B is the root partition)
chmod 777 /mnt/tivo/etc/rc.d/rc.sysinit.author
I'm not sure what my root directory number is. How I find that? tia
pkpss
11-29-2003, 01:06 PM
You could pop in a CD with mfstools, Johnny Death's would be the one to go with.
Then type these commands,
mount /dev/hdb /cdrom
/cdrom/bootpage -p /dev/hdc
It should output "root=/dev/hdcB" where B is the root drive
Also this is assuming you have the drives setup as you would a default monte setup. :)
When I do that I get this,
/# mount /dev/hdb /cdrom (enter)
mount: block device /dev/hdb is write-protected, mounting read-only
/# /cdrom/bootpage -p /dev/hdc (enter)
sh: /cdrom/bootpage: No such file or directory
/#
pkpss
11-29-2003, 01:40 PM
Do you have the Johnny Death Boot CD in?
pkpss
11-29-2003, 02:02 PM
I forgot to connect my DVD and CD dives to my comp but check to make sure the bootpage file is indeed on the mfstools CD. I know for sure Johnny Deaths ISO contains it since I used Cobelli's guide and the file is indeed on the CD. :)
Well, I found jonnydeath and that did work. I found that my root was 4. I tried to chmod 777 my file with no luck. I must have screwed it up good. I did make a backup copy in etc/rc.d before I started screwing with it. how would I replace that file on my hd? Thanks so much for the help! I have been at this since 7 pm last night. I'm learning :)
pkpss
11-29-2003, 02:55 PM
Try a move command.
mv /directory/placed/here/rc.sysinit.backup /mnt/tivo/etc/rc.d/rc.sysinit.author
Someone might want to correct me here though as I am a little rusty on linux. :)
I can not navigate to my rc.sysinit file. This is what i type: mount /dev/hdc4 /mnt/tivo
cd /etc
cd /rc.d
no such file or directory
When I do ls in the etc directory I see rc.d/ in blue all other directories are white.
pkpss
11-29-2003, 03:11 PM
Whoa that's really weird. To be extremely sure do this command;
cd /mnt/tivo/etc/rc.d
no such file or directory
forget that reply. I am here /mnt/tivo/etc/rc.d#
pkpss
11-29-2003, 03:18 PM
Here's a question, when you boot up your Tivo normally, it does in fact boot right? Also with the serial connection in, does it log anything unusual, like no rc.sysinit file?
I am stumped at this point unless you deleted the directory. :confused:
Edit: OK, just saw your post, you have the files in there though?
the files are there. I must have really screwed up the rc.sysinit file. I thing I want to try to figure how to get the one I backed up on to the tivo drive.
pkpss
11-29-2003, 03:37 PM
If the files are there, you are OK. I thought you just wanted to change the permissions?
how would I move my backup copy rc.sysinit on my C drive to my tivo drive?
pkpss
11-29-2003, 04:15 PM
cp /mnt/c/filehere /mnt/tivo/etc/rc.d/rc.sysinit.author
Someone might want to correct me if that is wrong, but I *think* that's correct, also assuming both drives are mounted.
Well, I'm getting very tired now. I have been at this for the better part of 24 hours. I did manage to get my rc.sysinit file I copied to my C drive over to my tivo drive. I still can't get the bash prompt. It is stuck here: sh: /tvbin/blinkleds: No such file or directory
I did this in this directory
tivo/etc/rc.sysinit
chmod 777 rc.sysinit
Any ideas?
NutKase
11-29-2003, 06:29 PM
Originally posted by Grag
Well, I'm getting very tired now. I have been at this for the better part of 24 hours. I did manage to get my rc.sysinit file I copied to my C drive over to my tivo drive. I still can't get the bash prompt. It is stuck here: sh: /tvbin/blinkleds: No such file or directory
I did this in this directory
tivo/etc/rc.sysinit
chmod 777 rc.sysinit
Any ideas?
You've got to slow down and give us exactly what you type. If you've benn going for over 24, you NEED some rest :)
Come back and it'll make lots more sense.
NutKase
Good Morning! Well I'm rested and back at it. I never could get back to the bash prompt. I decided to hook the unit back up to the tv and see what would happen. It is at a screen saying it is deleting everything and it will take an hour. Hmmmm don't know if that is good or not. One thing I have noticed is that I have no rc.sysinit.author file in etc/rc.d. I only had rc.sysinit and that is the file I tried to change my ip address in. Is this correct?
NutKase
11-30-2003, 01:31 PM
Originally posted by Grag
It is at a screen saying it is deleting everything and it will take an hour. Hmmmm don't know if that is good or not.
Let this run. It looks like tivo is rebuilding your drive due to a screwed up rc.sysinit. You need to let the drive get back to a known status or just start over with your backup.
The first post in this thread is why you should NEVER put more that the bare essentials in rc.sysinit. I consider these:
1. The line for bash
/bin/bash:)</dev/ttyS2&>/dev/ttyS2&
2. A line to start telnet (that way you can always get in to change a files permission even if you forgot to chmod it.)
tnlited:)23:)/bin/bash:)-login:)&
Then always use rc.sysinit.author which is called automatically right after rc.sysinit. NOTE: Smiley's are faces.
Originally posted by Grag
One thing I have noticed is that I have no rc.sysinit.author file in etc/rc.d. I only had rc.sysinit and that is the file I tried to change my ip address in.
You have to create it yourself. You can create it in windows with TextPad or EditPad (be sure to set them to save in unix mode.) Conversely, you can create it in linux using cat, joe or vi.
NutKase
PS. Where are we?
Well, Finally all is well! I got everything back in working order. Thank you to everyone for all the help!
Next newbie question, I have a 160 gig hd I would like to replace the 40 gig with. I guess it would be way to simple to make a backup of my 40 and restore to the 160? What is the best way to solve this? Thanks again!!
NutKase
12-01-2003, 11:37 PM
Originally posted by Grag
Well, Finally all is well! I got everything back in working order. Thank you to everyone for all the help!
Next newbie question, I have a 160 gig hd I would like to replace the 40 gig with. I guess it would be way to simple to make a backup of my 40 and restore to the 160? What is the best way to solve this? Thanks again!!
Jeez, dude!
What did you DO that fixed it? You should also try to help others by letting them know what worked.
We're supporting at least 10's and maybe 100's of people here :)... "OH, you're the guy that crapped out his rc.sysinit..."
"Hmmmm... Is he monte'ing? What version of tivo software? What type of setup does HE have?"
Read through the thread again and you'll see where I'm coming from :)
We can't re-read each thread to see the background of each person we're responding too. Look at my signature... I tell EVERYONE what my status is. If it's not there I 'remind' folks so I get more and more targeted responses to my questions... (and, yes... I still have questions sometimes :))
NutKase
PS. I can't answer the 'backup' question until I 'research' your setup by re-reading the forum and possibly ALL your posts. I'll figure it out soon though! :)
I assume I was working in the wrong partion. I was working in hdc4 and I needed to be in hdc7. So, after I figured that out I modified the rc.sysinit file and did the chmod and all is well.
As for my unit I think I stated that I bought it "prehacked" it does have the monte hack.
I know very little about this "hobby" but I am very interested in learning. I'm the kid that gets the new bike and has to take it apart :)
I learned a lot this weekend by screwing up that file.
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.