Upgrading using a Mac ?

Discussion in 'TiVo Upgrade Center' started by ebonovic, Dec 3, 2004.

  1. escaport

    escaport New Member

    2
    0
    Feb 3, 2006

    Advertisements

    I'm not all that sure of how to go about this. I have the newest source code from sourceforge, and I'm in the middle of the annoyingly large (823mb) download of Xcode, but where do I go from there? I've never compiled anything in my life, or at least not since I was a kid messing around with TurboPascal on my old amiga 64 (long time ago).

    I can see that on my system, they are "disk1" and "disk2" accourding to Disk Uttility.

    Do I have to install MfsTools in a particular directory? Nightmares of my PHP5/MySQL install are coming back as we speak, because I know next to nothing about Linux or Unix or any other 'nix.

    If I compile the MfsTools and just type mfstool dd in terminal, will terminal know to do what I want it to?

    My goal is very simple. I have a DirectTivo Hughes HDVR2. The original drive is failling (cutouts, constant restarts, ect.) and I bought a Western Digital 80gb 7200 drive to replace the original. I don't have any need for backups, hacks, or large disk support. I just want to copy my old drive to the new drive, make the partitions right, and move on with my watching. Just a simple swap, I don't even care about what is recorded on the original drive.

    The catch is that I only have three Mac to work with. They are all 10.4.4 machines. I installed ExtFSmanager (sourceforge/projects/ext2fsx) to be able to just plain mount the drives as Mac readable FS drive volumes, but Apple changed something in 10.4 that broke ExtFSmanager, so the volumes won't mount. So I'm left with what you did. With, what it seems like quite a bit less knowledge of how to do it. :D
     
  2. apollo8fan

    apollo8fan New Member

    91
    0
    Oct 23, 2003
    Southern...
    escaport:

    You have to read the Hinsdale How-to to understand the basic concept of what's being done.

    The Mac port of mfstools is different only in the command set and the drive identifiers. In Linux, where Hinsdale says "mfsbackup ....." you use "mfstool backup ....." to backup your software.

    To backup the software only, I used Option #1 of Step 7. This is where the "mfstool backup" comes in.

    To duplicate the drive, I used Option #3 of Step 7. This is where the "dd" command comes in.

    To expand the drive, I used Upgrade Configuration #2 of Step 10. This is where the "mfstool add" command comes in.

    IMPORTANT: In all of these steps, it's necessary to substitute the Macintosh mount points for the Linux mount points.

    It's too difficult to get into instructions on compiling source code and projects. Suffice it to say, the Sourceforge package has contained within it the X-Code project for the compile. Then following the compile, the mfstool will be located on the hard drive in the package's directory. Since this won't be in the command path anywhere, you'll need to move it or call it directly by prepending the directory structure to the command. There might have even been a chmod command required to make the program executable.

    As I recall, there's a bug in the source code that I had to fiddle with just to get the package to compile, which is probably why "mfstool restore" didn't ever work for me.

    I'm going from memory on a lot of this this since it has been something like three months ago when I did it.
     
  3. escaport

    escaport New Member

    2
    0
    Feb 3, 2006
    Well, I aprecitate the reply. I downloaded MFSTools-snapshot050221.tar.gz. There wasn't a Xcode project in it unfortunatly. :(

    I ran through a bunch of terminal "configure" and "make" commands, but I'm not skilled enough to continue with it. After configure and make install and such, it still wouldn't recognise the mfstool as a command. So, I've thrown in the towel on this project. I also don't want to do something stupid and mess up my Mac by using commands that I really don't have a clue about why and how they work.


    So, in the end I am borrowing an old PC from my cousin and just doing it from a boot CD, like all of the walkthroughs use. Oh well. :)

    Thanks again.
     
  4. jimphillips224

    jimphillips224 New Member

    10
    0
    May 9, 2005
    I'm used a PowerMac G3 Blue and White with 10.4.1.

    I pulled the drive from my Tivo (Pioneer 810H-S), and removed the jumper. I installed it in my mac on the same chain as my primary hard drive. I downloaded mfstool for mac os x from http://archive.tivocommunity.com/tivo-vb/attachment.php?postid=1969708 and I downloaded disk mappering utility from here http://archive.tivocommunity.com/tivo-vb/attachment.php?postid=1969715.

    Inside of the terminal application I entered the following commands:

    "sudo Desktop/devMapper1.1"

    "sudo Desktop/mfstool restore -s 127 -xzpi Desktop/pioneer_tivo_back.bak /dev/disk1"

    "umount -f -a"

    And then I reinstalled it into my Tivo and it works. Then I needed to run a Clear and Delete everything, but that is because the backup file is from another machine.
     
  5. entropy

    entropy New Member

    67
    0
    Apr 1, 2002

    Advertisements

    Does devMapper do anything more than print out the info for disks?

    (That's a fairly useful thing on Macs, because things don't always mount where you expect them to mount.)

    In a few days I hope to be able to try to upgrade my AT&TiVo using the software posted and a couple of bare drive-to-USB2 adapters. We'll see if it works.

    ~ Kiran <entropy@io.com>
     
  6. ding

    ding New Member

    45
    0
    Feb 16, 2006
    so let me see if I got this...

    mounting a tivo drive on a mac doesnt harm it. So if I wanted to back up and restore to a larger drive on a standalone series2 540040 I would do this.

    1. download a copy of Mac OS X Ext2 Filesystem from sourceforge
    2. download a copy of mfstool for os x from the link above
    3. install Ext2 Filesystem
    4. install tivo drive in a FW inclosure or internally and new drive.
    5. using disk utility or devmapper or whatever find the disk # of the disks
    or type: mfstool info /dev/diskX
    Where X is the letter of the drive you think it is. It should give you valid information about your drive.
    This is where I get a little lost........

    6. unmount tivo drive from desktop and run mfstool from terminal
    7. type: mfstool backup -f 9999 -6so /mnt/dos/tivo.bak /dev/diskX
    X being the tivo drive disk number
    or type: sudo ./mfstool backup -1 -o tivo4.x /dev/diskX
    X being the tivo drive disk number
    or type: dd if=/path/to/tivo/hardrive of=tivodrive.img

    I dont know which one will work or if they all work but this will back up your original tivo drive. I dont know to where but I guess I can always do a search.

    Then....
    8. unmount drive if it got mounted due to copying
    9. type: mfstool restore -s 127 -bzpi /mnt/dos/tivo.bak /dev/diskY
    Y being the new drive.
    or type: dd of=/path/to/new/hardrive if=tivodrive.img - Im really not too sure about this one.-
    this will copy the tivo backup onto the new drive

    Then.....
    10. type: mfstool add -x /dev/diskY
    Y being the new drive
    11. remove drives from mac. save original drive in safe place. copy backup to a CD or DVD. install new drive in tivo. reset Tivo and you are done.

    There is also this command:
    mfstool backup -Tao - /dev/diskX | mfstool restore -s 127 -pxi - /dev/diskY
    which I think backs up and restores all at once, Im not sure.

    I'm sure Im F***ing up somewhere or everywhere so if someone can show me where I'm messing up I would appreciate that.
     
  7. ding

    ding New Member

    45
    0
    Feb 16, 2006
    according to disk utility and devmapper 1.1 my tivo disk is disk3. I type the following:
    ./mfstool backup -f 9999 -6so /mnt/dos/tivo.bak /dev/disk3
    Terminal tells me this:
    /mnt/dos/tivo.bak: No such file or directory
    what am I doing wrong. I typed this in order to make a new drive and it works:
    ./mfstool backup -Tao - /dev/disk3 | mfstool restore -s 127 -pxi - /dev/disk2
    but I would like to have a backup of my original tivo disk.
    please help.
     
  8. ding

    ding New Member

    45
    0
    Feb 16, 2006
    I figured it out.

    first you:
    1. download a copy of mfstool for os x from the link above
    2. install tivo drive in a FW inclosure or internally and new drive.
    3. using disk utility or devmapper or whatever find the disk # of the disks
    or type: mfstool info /dev/diskX
    Where X is the letter of the drive you think it is. It should give you valid information about your drive.
    4. type:
    ./mfstool backup -f 9999 -6so tivo.bak /dev/diskX
    X being the tivo drive disk number (. is the location of the mfstool app)
    this will give you a backup file on your home directory
    5. type:
    ./mfstool backup -Tao - /dev/diskX | mfstool restore -s 127 -pxi - /dev/diskY
    X being the tivo drive disk number and Y being the target drive
    this will copy the entire contents of your tivo drive to the new drive
    6. type:
    ./mfstool add -x /dev/diskY
    Y being the new drive.
    this is to expand the new drive just in case.
    7. remove drives from mac, save original drive in safe place. copy backup to a CD or DVD. install new drive in tivo.

    did it last night. worked for me. :)
     
  9. atlynch

    atlynch Person

    109
    0
    Jan 7, 2005
    Sunnyvale, CA
    This is a really great thread. I am considering buying two diskless Tivos from weaknees, I have plenty of hard drives laying around. But, this means I have no disk to clone from. Have any of you tried extracting the image from one of the ptvupgrade CD's and installing it without having the original disk?

    -Drew
     
  10. ding

    ding New Member

    45
    0
    Feb 16, 2006
    there's got to be a way to extract the tivo image from the disk. I just dont know the command or the directory. maybe if i had a copy I could mount it and find it but im not forking over $20 for that.
     
  11. ding

    ding New Member

    45
    0
    Feb 16, 2006
    I think i found the proper directory if you get instantcake. its:
    /cdrom/.images/000001
    so you could use something like this (I think):
    ./mfstool backup -Tao - /cdrom/.images/000001 | mfstool restore -s 127 -pxi - /dev/diskY
    Y being the disk you want to restore the image on.
    If you get this working let us know.
     
  12. entropy

    entropy New Member

    67
    0
    Apr 1, 2002
    So far, this isn't working for me. Using a 250G Seagate drive (7200.8) and the command line

    sudo mfstool backup -o - /dev/disk1 | mfstool restore -s 127 -xpi - /dev/disk2

    I start with

    /dev/disk1 Big Tivo 37.29 40.04
    /dev/disk2 Big Mac 232.89 250.06

    I end up with

    /dev/disk1 Big Tivo 37.29 40.04
    /dev/disk2 Little Unknown 232.89 250.06

    and the drive won't boot. Looking at the first few bytes, it seems that it isn't at all the same.

    thylacine:~: head /dev/disk1
    ?root=/dev/hda4 dsscon=true unfinaltest=trueunnamed
    @?EMFS media region 2MFS?E3?TPM

    thylacine:~: head /dev/disk2
    PM?AppleApple_partition_map?3PM??@Bootstrap 1Image3PM??A Kernel 1Image 3PM?ARoot 1Ext23PM?ABootstrap 2Image3PM?$AKernel 2Image3PM?4ARoot 2Ext23PM?4A?Linux swapSwap?3PM?,A/varExt23PM?,MFS application regionMF3PM?D@??MFS media regionMFS??3PM?,Second MFS application regionMF3PM@?DSecond MFS media regionMFS?D3PM?,ANew MFS ApplicationMFS3PM?0Aq New MFS MediaMFSq 3PMPA /ExtraApple_Free /3

    Is this a byteswapping problem? Previous to this attempt, I tried to backup to a file and restore from that. Using both the -b and -B options, I seemed to get the same thing--a drive that wouldn't boot in the TiVo. Or, could it be that AT&T Series 2 hardware can't actually handle 250G drives?

    Thanks for any advice you can come up with. I'm probably going to have to use my friend's Linux box to do this since I want to get it done tonight or Saturday, but I'd *really* like to see this stuff working on a Mac.

    (For reference, my hardware is a 20" iMac G4, and I'm using USB-to-IDE adapters

    ~ Kiran <entropy@io.com>
     
  13. apollo8fan

    apollo8fan New Member

    91
    0
    Oct 23, 2003
    Southern...
    I'm not going to be much help when using "mfstool restore". As I indicated in my initial post, I used "dd" to copy the small drive to the large one, then used "mfstool add" to add the new partition. "dd" took forever--13 hours--but it worked for me.
     
  14. ding

    ding New Member

    45
    0
    Feb 16, 2006
    try:
    sudo mfstool backup -Tao - /dev/disk1 | mfstool restore -s 127 -pxi - /dev/disk2
    and make sure both disks are not mounted.
    also what does your terminal say when it is processing the restore?
    it worked for me on a MDD OS 10.3.9 using 2 firewire cases.
    good luck! :)
     
  15. entropy

    entropy New Member

    67
    0
    Apr 1, 2002
    It shows "backing up" and "restoring" at the same time (which is what I saw on Linux) or just restoring if I use the backup file

    When I use what you used, I get

    No such file or directory
    zsh: 3173 broken pipe sudo mfstoolDEBUG backup -Tao - /dev/disk1 |
    zsh: 3174 segmentation fault mfstoolDEBUG restore -s 127 -pxi - /dev/disk2

    With several variations of that line, I get

    No such file or directory
    Restore failed: Internal error 4.

    I don't want to backup video, which is why I originally tried just "backup -o" (is this the right command for that?)

    ~ Kiran <entropy@io.com>
     
  16. Gunnyman

    Gunnyman Just a boring dude

    31,907
    938
    Jul 10, 2003
    Upstate...
    FWIW there are Mac Tivo hacking instructions at tivotool.com
     
  17. ding

    ding New Member

    45
    0
    Feb 16, 2006
    I'm realizing that i used a different mfstool than the one posted here. maybe that's why I got it to work. if you want to try it download it from here:
    http://www.************.com/forum/showthread.php?t=41554&page=2
    thats "deal data base" without the spaces dot com
    It is a PKG that installs mfstool+bootpage+killhdinitrd in your main hardrive under this directory:
    main HD/usr/tivo/bin.
    so you will not have to enter sudo comand every time. The command would be:
    /usr/tivo/bin mfstool whatever whatever. same goes for bootpage and killhdinitrd.
    this was the one I used and it worked.
    give it a try.
    BTW i havent tried bootpage or killhdinitrd so I can't tell you if those worked or not.
    good luck and let me know what happened :up:
     
  18. Laird

    Laird New Member

    25
    0
    Mar 28, 2002
    I tried using the mfstool from that other site. I'm trying to restore the image from the InstantCake CD (which I bought) onto a new disk. The process runs, and gives me a 'Restore Done!' message. Unfortunately, my Series 1 won't boot with the restored drive. When I try using mfstool info /dev/disk1 on it, I get this set of error messages:
    "/dev/disk1s10: No such file or directory
    mfs_load_volume_header: mfsvol_read_data: Input/output error
    mfstool(2481) malloc: *** Deallocation of a pointer not malloced: 0x3001e0; This could be a double free(), or free() called with the middle of an allocated block; Try setting environment variable MallocHelp to see tools to help debug"

    Any ideas?
     
  19. ding

    ding New Member

    45
    0
    Feb 16, 2006
    try devmapper to make sure you have the correct directory. you can also try to get the images/000001 file from the download and put it on your desktop and then back up from there. i dont see how that would change anything but its a thought, it could be that when you burn the cd, the backup image becomes corrupt. i have never tried the instantcake cd method but i would be very interested to see if it can be done. keep us updated.
     
  20. ding

    ding New Member

    45
    0
    Feb 16, 2006
    you can also try this:
    mfstool restore -x -p -b -s 127 -zi /cdrom/.images/000001 /dev/diskX
    X=destination
     

Share This Page

spam firewall

Advertisements