PDA

View Full Version : Error: Read-Only File System


rtivo99
03-01-2006, 11:20 AM
OK, so I finally got my SA TCD240040 system hacked using a combination of ][ronman's guide and this one by snowspeeder.

Initially I had created the /var/hack directory on partition 9 put the tivoftpd.mips file there and created the bin, lib, and root subdirectories. I could never get FTP to work this way, not sure if it was the version of the tivoftp fle or something else.
http://www.imbetterthanyou.com/hr10-250/

So I scrapped this idea, and went with snowspeeders configuration. I created the /tivo-bin directory on partition 9 and downloaded the tivotools.tar from this web-site and extracted it into /tivo-bin.

I also configured my rc.sysinit.author exactly the way he has it
http://www.tivocommunity.com/tivo-vb/showthread.php?t=289174

#!/bin/bash
export PATH=$PATH:/tivo-bin

tnlited 23 /bin/bash -login &

tivoftpd

echo waiting for Tivo to finish creating its firewall rules >& /dev/console
sleep 60
echo Turning off firewall ... >& /dev/console
[ -x /etc/netfilter-disable ] && /etc/netfilter-disable


I was able to boot the Tivo, connect to both Telnet and FTP, the problem is that I get an error when tryin to upload a file to the /tivo-bin directory. It says it could not upload "read-only file system". I searched on that error and someone said that you could do something like
#mount -o
#mount rw
Don't remember the exact commands, but it doesn't matter because when I tried to run the commands from a Telnet Bash prompt it tells me it does not recognize mount as a command.

Any ideas?

Gunnyman
03-01-2006, 01:43 PM
mount -o remount,rw /
when done do mount -o remount,ro /

rtivo99
03-01-2006, 01:53 PM
mount -o remount,rw /
when done do mount -o remount,ro /From where, telnet bash prompt? When I tried this it said mount is not a recognized command, did you read my post?

Narf54321
03-01-2006, 02:10 PM
OK, lets not get snippy, specially since Gunnyman has been around both here and TCF for a long time and provided you the correct command lines you should've been using.

mount should simply be in /bin on your tivo. It is one of the few commands tivo actually includes with their software. If you don't have mount, then either your $PATH is lacking or you've got some other problems with your tivo.

For reference, here's my own $PATH:
Movies Tivo> echo $PATH
./:/bin:/sbin:/tvbin:/tivohack:/tivohack/tivotools

rtivo99
03-01-2006, 02:21 PM
OK, lets not get snippy, specially since Gunnyman has been around both here and TCF for a long time and provided you the correct command lines you should've been using.
You're right sorry Gunnyman, just getting frustrated. If you've been following my threads I have been working on this for a few days.

It shouldn't be this difficult.

I'll try what you suggested from the /bin directory.

Gunnyman
03-01-2006, 02:56 PM
step back breathe deeply and realize it's only a DVR...
:p
I am pretty thick skinned :D
and yeah it sounds like your PATH (if you have one) is missing a few things

fantmn
03-01-2006, 03:35 PM
Try /bin/mount -o remount,rw / so the path is qualified. If that does not work then mount is not in /bin and perhaps you have more troubles. Do echo $PATH and post the results here.

PlainBill
03-01-2006, 03:39 PM
step back breathe deeply and realize it's only a DVR...
:p
I am pretty thick skinned :D
and yeah it sounds like your PATH (if you have one) is missing a few things
Heresy!!!! Get the torches and pitchforks, I'll gather the firewood!

PlainBill

rtivo99
03-01-2006, 04:18 PM
Wow, I've never gotten response back this quickly. It looks like the best way to get a response here is to get you guys fired up by being a little snippy.:D

The mount command worked once I was in the bin directory. I ran the command and was able to upload files to my /tivo-bin directory. Many thanks to everyone.:)

In which file do I put the Path statement? In the rc.sysinit.author file? Or the .profile file? My .profile file is empty right now, and you can see my rc.sysinit.author file above. Also where in the file does it go?

And just so I get a speedy response, you guys all suck!!!:p

PlainBill
03-01-2006, 05:51 PM
Wow, I've never gotten response back this quickly. It looks like the best way to get a response here is to get you guys fired up by being a little snippy.:D

The mount command worked once I was in the bin directory. I ran the command and was able to upload files to my /tivo-bin directory. Many thanks to everyone.:)

In which file do I put the Path statement? In the rc.sysinit.author file? Or the .profile file? My .profile file is empty right now, and you can see my rc.sysinit.author file above. Also where in the file does it go?
Here's a copy of my rc.sysinit.author from 3.1.1c (http://dealdatabase.com/forum/showpost.php?p=208842&postcount=9). You can skip all the insmod and ifconfig lines.

And just so I get a speedy response, you guys all suck!!!:p
Brokeback Mountain?

PlainBill

eastwind
03-01-2006, 05:55 PM
So I scrapped this idea, and went with snowspeeders configuration. I created the /tivo-bin directory on partition 9 and downloaded the tivotools.tar from this web-site and extracted it into /tivo-bin.I'd just like to add that you need to do some reading so that you're ready when all your hacks seem to be gone (actually, they will be gone) the next time /var gets rebuilt. Unless your really extracted the tarball into /tivo-bin and not the tivo-bin you created on partition 9. ;)

ew

rtivo99
03-01-2006, 06:10 PM
I'd just like to add that you need to do some reading so that you're ready when all your hacks seem to be gone (actually, they will be gone) the next time /var gets rebuilt. Unless your really extracted the tarball into /tivo-bin and not the tivo-bin you created on partition 9.
I think I meant partition 4, although it's all starting to run together now.:eek:

You bring up a good point though, the reason I started this project was to add an IR code to my Tivo. The instructions I have after getting the file on the Tivo and getting to a bash prompt were as follows:

cd /tivo-bin
tivosh
source ircode.tcl
setcode
exit

The next time that Tivo does an update, will I have to go through this whole process again? How often do they do updates?

Gunnyman
03-01-2006, 07:16 PM
if you added upgradesoftware=false to you bootpage parameters, you won't GET an update until you WANT one.

Gunnyman
03-01-2006, 07:17 PM
Heresy!!!! Get the torches and pitchforks, I'll gather the firewood!

PlainBill

YEAH BURN that heretic!
/me smells smoke
is it getting warm in here?

rtivo99
03-02-2006, 11:45 AM
if you added upgradesoftware=false to you bootpage parameters, you won't GET an update until you WANT one.Does it require removing the drive again to run the bootpage command or can this be done from a telnet bash prompt?

Also, my default partition is partition 4, what would be the command?

Narf54321
03-02-2006, 01:16 PM
You should be able to do it from a telnet prompt. bootpage for your tivo should be at /sbin/bootpage on your tivo. In general, lowercase options show what's already there, and uppercase options changes stuff.

Notice in this example the lowercase option -p prints out the current bootpage parameters:
bootpage -p /dev/hda

Here's what mine (a Tivo TCD240xxx model) currently shows:
root=/dev/hda4 upgradesoftware=false dsscon=true console=2,115200

(Depending upon your model of Tivo, the serial console may be 2 or something different)

So, to change yours, use the uppercase option -P to change it.

bootpage -P 'root=/dev/hda4 upgradesoftware=false dsscon=true console=2,115200' /dev/hda

A list of options...
usage: /sbin/bootpage options... device

-p dev - print existing args
-P string dev - set args to "string"
-D dev - create default boot page on dev
-B num - set primary boot to partition num
-A num - set alternate boot to partition num
-b dev - print current value of primary boot
-a dev - print current value of alternate boot
-f dev - swap (flip) values of primary and alternate boot partitions