View Full Version : How to copy /MessageItem/MessageBoard ?
Raymond Day
02-20-2007, 08:17 AM
I put a new hard drive in my TiVo Series 1. It's a new load on it. I like to save my Message's from the old one to the new one. Any one know how to do that?
I can list them like this:
=[tivo:root]-# tivosh
% mls /MessageItem/MessageBoard
% Directory of /MessageItem/MessageBoard starting at ''
Name Type FsId Date Time Size
---- ---- ---- ---- ---- ----
12186~10407~1134976 tyDb 1134976 02/15/07 14:28 396
12188~44893~1140179 tyDb 1140179 02/16/07 09:23 472
12189~11140~1143489 tyDb 1143489 12/17/06 06:44 484
12189~11265~1143490 tyDb 1143490 12/17/06 06:45 684
12189~44871~1143729 tyDb 1143729 12/17/06 06:45 904
12202~07509~1169629 tyDb 1169629 12/17/06 06:46 484
12421~25869~1561590 tyDb 1561590 02/16/07 09:22 364
12498~75314~1576443 tyDb 1576443 12/25/06 16:47 1540
12812~01184~1981199 tyDb 1981199 01/29/05 00:26 2964
12812~01656~1981201 tyDb 1981201 02/16/07 09:21 2636
13488~45980~2908515 tyDb 2908515 12/25/06 16:44 1400
13497~42542~2918591 tyDb 2918591 02/16/07 09:19 580
13563~49807~3006864 tyDb 3006864 02/19/07 13:50 964
If I could copy them then save them to the new loaded TiVo that would be good. Any one know how to do it?
Raymond Day
03-02-2007, 06:41 AM
I have to look in to it more. But I am thinking I could make a symbolic link to /MessageItem/MessageBoard were mfs_ftp can upload and download. Then I could use mfs_ftp to get and save it.
I have to find were the folder is that mfs_ftp shows. I don't know yet. Then I have to find out how to do a mfs link command.
Any one know how/if this can be done?
Looks like no one knows how to copy the MessageBoard because this has been up here for about 2 weeks now and no one but me has replyed.
Or is there some other place were I can ask this?
dburckh
03-03-2007, 12:38 PM
This will extract the messages. Inserting is a little more complex.
Warning. It will create a bunch of xxxxx.msg files in the current directory.
mfs_ls /MessageItem/MessageBoard | cut -b 5-10 | grep ^[0-9] | while read fsid; do mfs_export $fsid > $fsid.msg; done
Raymond Day
03-03-2007, 01:06 PM
This is what I get back when I did it. Why don't it work?
=[tivo:root]-# mfs_ls /MessageItem/MessageBoard | cut -b 5-10 | grep ^[0-9] | while read fsid; do mfs_export $fsid > $fsid.msg; done
bash: mfs_ls: command not found
=[tivo:root]-#
=[tivo:root]-# find / -name mfs*
/var/hack/bin/mfs_export
/var/hack/tivoweb-tcl/modules/mfsbrowser.itcl
/var/hack/TivoWebPlus/modules/mfsbrowser.itcl
/var/hack/ohm/mfs.c
/var/hack/ohm/mfs.h
/var/mfs_ftp
/var/mfs_ftp/mfs_export
/var/mfs_ftp/mfs_ftp.tcl
/var/mfs_ftp/mfs_stdinsert
/var/mfs_ftp/mfs_stream
/var/mfs_ftp/mfs_tarstream
/var/mfs_ftp/mfs_ftp.tcl.bak
/tvbin/mfsadd
/tvbin/mfsassert
/tvbin/mfscheck
/tvbin/mfsd
/tvlib/tcl/tv/mfslib.tcl
=[tivo:root]-#
=[tivo:root]-# cd /var/mfs_ftp
=[tivo:root]-#
=[tivo:root]-# ls
abort.doc license.txt mfs_tarstream settings.tcl
abort_toggle.sh log port.3105.log settings.tcl.bak
cache mfs_export readme.txt tzoffset.tcl
fifo mfs_ftp.tcl scramble_utils tzoffset.txt
ftp mfs_ftp.tcl.bak seasonpass
ftpf.sh mfs_stdinsert set
ftpf21.sh mfs_stream setpri
=[tivo:root]-#
=[tivo:root]-# mfs_ls /MessageItem/MessageBoard | cut -b 5-10 | grep ^[0-9] | while read fsid; do mfs_export $fsid > $fsid.msg; done
bash: mfs_ls: command not found
=[tivo:root]-#
dburckh
03-03-2007, 01:40 PM
looks like you are missing mfs_ls. I saw you are using something called mls. They are similar, but with a different format. Try this:
mls /MessageItem/MessageBoard | cut -d ' ' -f 3| while read fsid; do mfs_export $fsid > $fsid.msg; done
Raymond Day
03-03-2007, 02:46 PM
Thanks but that did not work. Here is a copy and past of my telnet:
Welcome to your TiVo
=[tivo:root]-# pwd
/var/hack/root
=[tivo:root]-#
=[tivo:root]-# ls -l
total 0
=[tivo:root]-#
=[tivo:root]-# mls /MessageItem/MessageBoard | cut -d ' ' -f 3| while read fsid; do mfs_export $fsid > $fsid.msg; done
mfs_export inputfile [outputfile]
input source is one of the following:
NNNN[,NNN] means the fsids on MFS with those numbers
anything else means a Unix filename
output source is one of the following:
xxx.xxx.xxx.xxx:name means a file to a tyserver
anything else means to a Unix filename
mfs_export inputfile [outputfile]
input source is one of the following:
NNNN[,NNN] means the fsids on MFS with those numbers
anything else means a Unix filename
output source is one of the following:
xxx.xxx.xxx.xxx:name means a file to a tyserver
anything else means to a Unix filename
mfs_export inputfile [outputfile]
input source is one of the following:
NNNN[,NNN] means the fsids on MFS with those numbers
anything else means a Unix filename
output source is one of the following:
xxx.xxx.xxx.xxx:name means a file to a tyserver
anything else means to a Unix filename
=[tivo:root]-#
=[tivo:root]-# ls -l
total 0
=[tivo:root]-#
=[tivo:root]-#
I have to go to work now and will not be back for about 9 hours. I will check back here then. Maybe you can help. Maybe a IM with me to help better when I have time. Thanks again. It my work if you are close to what to type.
dburckh
03-03-2007, 04:05 PM
Hmmm. I'm flying blind with this mls utility. What I had worked with the output you posted. Try getting mfs_ls from sourceforge.net and try this new and improved version. Or, tell me where I can get a mips version of mls.
mfs_ls /MessageItem/MessageBoard | cut -b 1-10 | grep [0-9]$ | while read fsid; do mfs_export $fsid > $fsid.msg; done
Raymond Day
03-04-2007, 06:50 AM
I could not find if they do have a mfs_ls for TiVo but looking I found that the tivosh prompt typing a mfs is the same as mfs_ls.
Here is my output of doing your last improved version:
=[tivo:root]-# tivosh
% mls /MessageItem/MessageBoard | cut -b 1-10 | grep [0-9]$ | while read fsid; do mfs_export $fsid > $fsid.msg; done
% invalid command name "0-9"
% % mls /MessageItem/MessageBoard
Directory of /MessageItem/MessageBoard starting at ''
Name Type FsId Date Time Size
---- ---- ---- ---- ---- ----
12186~10407~1134976 tyDb 1134976 02/15/07 14:28 396
12188~44893~1140179 tyDb 1140179 02/16/07 09:23 472
12189~11140~1143489 tyDb 1143489 12/17/06 06:44 484
12189~11265~1143490 tyDb 1143490 12/17/06 06:45 684
12189~44871~1143729 tyDb 1143729 12/17/06 06:45 904
12202~07509~1169629 tyDb 1169629 12/17/06 06:46 484
12421~25869~1561590 tyDb 1561590 02/16/07 09:22 364
12498~75314~1576443 tyDb 1576443 12/25/06 16:47 1540
12812~01184~1981199 tyDb 1981199 01/29/05 00:26 2964
12812~01656~1981201 tyDb 1981201 02/16/07 09:21 2636
13488~45980~2908515 tyDb 2908515 12/25/06 16:44 1400
13497~42542~2918591 tyDb 2918591 02/16/07 09:19 580
13563~49807~3006864 tyDb 3006864 02/27/07 20:30 980
% %
Can you test this on your TiVo to see if it works first. Looks like it's close to working.
Raymond Day
03-04-2007, 07:31 AM
I read in the readme for vplay this:
To run on a remote TiVo you need to start a tivo vserver binary on the
TiVo. Then on your Linux PC set MFS_DEVLIST to :hostname where
hostname is the IP or hostname of your TiVo. Then run the mfs commands
as usual.
I made sure vserver was runing on the TiVo:
=[tivo:root]-# /var/hack/bin/vserver
waiting for connections on port 8074
The TiVo's IP is 192.168.2.5 so on the Linux box I did:
[root@small ~]# cd /root/tivo/mfs-utils/bin.Linux-i686/
[root@small bin.Linux-i686]# ls
ciphercheck mfs_dumpobj mfs_import mfs_stream mfs_tmfstream
contrib mfs_dumpschema mfs_info mfs_streams mfs_uberexport
mfs_burstcmds mfs_export mfs_ls mfs_tarstream vsplit
[root@small bin.Linux-i686]# export MFS_DEVLIST=192.168.2.5:8074
[root@small bin.Linux-i686]# mfs_ls /MessageItem/MessageBoard
-bash: mfs_ls: command not found
[root@small bin.Linux-i686]# ./mfs_ls /MessageItem/MessageBoard
failed to open [192.168.2.5:8074]
perror:: No such file or directory
couldn't open 192.168.2.5:8074 : No such file or directory
[root@small bin.Linux-i686]# export MFS_DEVLIST=192.168.2.5
[root@small bin.Linux-i686]# ./mfs_ls /MessageItem/MessageBoard
failed to open [192.168.2.5]
perror:: No such file or directory
couldn't open 192.168.2.5 : No such file or directory
[root@small bin.Linux-i686]#
Why don't that work? From the read me seems like it should.
I guess if any thing I can hook the 30gb and 100gb have drives on the Linux Box and run the mfs_ls command. But it be a lot of work to remove the drives from the TiVo's and hook them up to the Linux box. If I could do this though Ethernet to the TiVo's that would be very good.
Raymond Day
03-04-2007, 11:37 AM
I had to find were to download mfs_ls. After a long time I found it at sourceforge.net named "mfs-utils_bin.ppc-20060503.tar" I downloaded it and ftp it to my TiVo at /var/hack/root. I got a error extracting it like this:
=[tivo:root]-# tar -xvf mfs-utils_bin.ppc-20060503.tar
tar: Hmm, this doesn't look like a tar archive
tar: Skipping to next file header
tar: Only read 7595 bytes from archive mfs-utils_bin.ppc-20060503.tar
tar: Error is not recoverable: exiting now
=[tivo:root]-#
So I used winRAR on Windows then FTP the hole mfs-utils folder to TiVo and here is my out put of that:
=[tivo:root]-# cd mfs-utils/
=[tivo:root]-#
=[tivo:root]-# ls
bin.ppc
=[tivo:root]-#
=[tivo:root]-# cd bin.ppc/
=[tivo:root]-#
=[tivo:root]-# ls
NowShowing mfs_dumpobj mfs_info mfs_tarstream tserver
ciphercheck mfs_dumpschema mfs_ls mfs_tmfstream vserver
contrib mfs_export mfs_stream mfs_tzoffset
mfs_burstcmds mfs_import mfs_streams mfs_uberexport
=[tivo:root]-#
=[tivo:root]-# chmod 555 *
=[tivo:root]-#
=[tivo:root]-# ./mfs_ls /MessageItem/MessageBoard | cut -b 1-10 | grep [0-9]$ | while read fsid; do mfs_export $fsid > $fsid.msg; done
=[tivo:root]-#
=[tivo:root]-# ls
1134976.msg 1576443.msg ciphercheck mfs_info mfs_uberexport
1140179.msg 1981199.msg contrib mfs_ls tserver
1143489.msg 1981201.msg mfs_burstcmds mfs_stream vserver
1143490.msg 2908515.msg mfs_dumpobj mfs_streams
1143729.msg 2918591.msg mfs_dumpschema mfs_tarstream
1169629.msg 3006864.msg mfs_export mfs_tmfstream
1561590.msg NowShowing mfs_import mfs_tzoffset
=[tivo:root]-#
So it looks like I have all the .msg. All that is needed is to save them in the other TiVo. I all ready put the mfs-utils bin.ppc on that TiVo.
It was a while before I found out that ppc is for Series 1 TiVo's. I know MIPS is for Series 2 and that bin files you can just run don't have to install them. It will be neat to put them on your path so don't have to go to the folder and type ./ to run them. I just did this line and now I don't have to type ./ to start the mfs commands.
export PATH=/var/hack/root/mfs-utils/bin.ppc:$PATH
I don't know what your cammand is doing to good dburckh so I don't think I can find out how to save the messages in the other TiVo. I hope you find out what the command will be. That's all I have left to do. I all ready have all the Videos on this new TiVo hard drive.
This will be good for others if they like to save there messages too. Looks like no one has did it before.
Thank you dburckh!
dburckh
03-04-2007, 12:04 PM
Inserting is going to be a bit more difficult. I looked at the code for mfs_ftp.tcl some of the tivo util .tcl files. I think I can create a fsid, but I don't know how to put it in a specific directory. If you can figure that out, it should be pretty straight forward. The last thing I want to do is corrupt your tivo with bad data.
Raymond Day
03-04-2007, 12:26 PM
Because I have the Message save. I can take a small hard drive and put a 3.0 image on it just as I did with my 320GB. That way It don't matter if it gets corrupt with bad data. I can just reimage it again. I will work on that.
It's to bad that TivoWebPlus/modules/mail.itcl don't have a Save Mail and Restore Mail in it. That would be nice and easy.
I have it reloaded now. Nothing set up but hacks so I can FTP, Telnet and TivoWebPlus on it. It's backed up so very easy to restore it if it gets corrupt. So don't worrie about messing up on the restore command.
Raymond Day
03-09-2007, 02:32 PM
Just guess at what the inport command would be from the export command. I have the saved mail at "/var/hack/root/mfs-utils/bin.ppc" I guess this would not work but could it be something from this:
./mfs_ls /MessageItem/MessageBoard | cut -b 1-10 | grep [0-9]$ | while read fsid; do mfs_export $fsid > $fsid.msg; done
to this:
./mfs_ls /var/hack/root/mfs-utils/bin.ppc | paste -b 1-10 | grep [0-9]$ | while wight fsid; do mfs_import $fsid < $fsid.msg; done
I don't know were any info. is on how you use the mfs commands.
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.