Help! Need Kick start experts

Discussion in 'TiVo Help Center' started by atmuscarella, Nov 2, 2011.

  1. unitron

    unitron Well-Known Member

    16,576
    41
    Apr 28, 2006
    semi-coastal NC



    Okay you dd_rescue 'ed the bad Hitachi (apparently the "Deathstar" nickname was retired too early) to the new Seagate, right?

    First, use the MFS Live cd or WinMFS to make sure that you copied the Hitachi to the empty Seagate and not the other way around. In other words, make sure the Seagate has partitions on it.

    pdisk -l /dev/sdwherever will show you the partition map. pdisk is on the MFS Live cd and that option following the hyphen is a lowercase L, and means "list".

    If you're using WinMFS, select the drive and then click on mfsinfo.

    Okay, hook up the Seagate as /dev/sdb (the target) and if the 1TB worked and was most recently in the TiVo, use it as /dev/sda (the source)


    Unhook all your other drives as a precaution, except, of course, for your cd (or dvd) drive from which you're going to boot with the MFS Live cd.

    Enter the following commands one line at a time and wait for it to complete before entering the next one.

    This only works if the partitions involved are the same size on both drives, but there's no reason that should have occurred for them not to be.


    dd_rescue /dev/sda2 /dev/sdb2


    dd_rescue /dev/sda3 /dev/sdb3


    dd_rescue /dev/sda4 /dev/sdb4


    dd_rescue /dev/sda5 /dev/sdb5


    dd_rescue /dev/sda6 /dev/sdb6


    dd_rescue /dev/sda7 /dev/sdb7


    dd_rescue /dev/sda9 /dev/sdb9

    If it still doesn't boot, hook you windows drive back up, along with the new Seagate, open WinMFS, select the Seagate, click on mfsinfo, if it shows you booting from partitions 3 and 4, use fixboot, option 2, if it shows you booting from 6 and 7, use option 1.
     
  2. atmuscarella

    atmuscarella Well-Known Member

    6,941
    606
    Oct 11, 2005
    Rochester NY
    unitron: Thanks for all your help.

    I followed the above instructions the new 2TB drive has the same partition map as the working 1TB drive and I was able to use dd_rescue to copy all the partitions you indicated but the drive would not boot. Used WinMFS as indicated in your last paragraph still will not boot (actually the TiVo is in an endless reboot loop).

    I have put the 1TB drive back in (it is working fine). Do you have any other ideas?

    On a side note the new eSata cable fixed the issues with my Series 3 HD and the external drive.

    Thanks again,
     
  3. unitron

    unitron Well-Known Member

    16,576
    41
    Apr 28, 2006
    semi-coastal NC
    Only if you copied over partition 1 from a 1TB drive (or used dd or dd_rescue to copy the entire 1TB drive instead of individual partitions) should a 2TB have the same partition map as a 1TB.

    I've been assuming that you used comer's jmfs to copy to that 2TB Hitachi and expand, in which case it should have a partition map that shows a 16th partition (if you copied and expanded from the original 160GB drive to the 1TB, which would have given you 15 partitions, including 3 MFS pairs, and then used jmfs to go from the 1TB to the 2TB Hitachi, which would have added a single MFS partition for a total of 16).

    If you went from the 160GB straight to the 2TB Hitachi via jmfs, then you might have fewer than 16 partitions, but you should still have at least one big one at the end that's not on the 160.

    Maybe you should start at the beginning of when you first removed the original 160GB drive and what you did from there, so I can try to figure out what's going on.
     
  4. atmuscarella

    atmuscarella Well-Known Member

    6,941
    606
    Oct 11, 2005
    Rochester NY
    Both the 1TB and 2TB drives have 14 partitions. The only difference is the size of the 14th partition. The Partitions are:
    1. Apple_partition-map apple
    2. Image Bootstrap 1
    3. Image Kernel 1
    4. Ext2 Root 1
    5. Image Bootstrap 2
    6. Image Kernel 2
    7. Ext2 Root 2
    8. Swap Linux Swap
    9. Ext2 /var
    10. MFS MFS Application region
    11. MFS MFS media region
    12. MFS MFS application region 2
    13. MFS MFS media region 2
    14. MFS MFS media region 3
    The only difference between the 1TB and 2TB drive is the size of #14 Media Region 3, the 1TB is 782.5GB and the 2TB is 1.7TB

    I used the original 160GB and the comer method to install the software on the 2TB then I used WinMFS to Supersize the drive.

    I also used the original 160GB drive and the comer method to install the software on the 1TB drive but I can not remember if I used WinMFS to Supersize it or not.

    The original 160 GB drive has 13 partitions on it the same ones I listed above minus #14.

    Thanks,
     
  5. unitron

    unitron Well-Known Member

    16,576
    41
    Apr 28, 2006
    semi-coastal NC
    Well, I might be stumped.

    I assume we both got the same model of Seagate 2TB drive. (I grabbed 2 of them).

    I'm using one in a TCD652160, and in a post elsewhere around here I go into excrutiating detail about my struggle to get a larger than stock swap partition size before using jmfs on it, and how I finally stumbled on a solution.

    The HD boots fine, but within 24 hours it'll lock up hard, screen freezes, won't respond to remote.

    So maybe that Seagate isn't the right choice for a TiVo.

    I may take the Seagate, dd a Western Digital WD20EADS 2TB drive full of stuff transfered from our S2s via TiVo Desktop to the Seagate's twin, and try it in the computer, and if that goes well, try the WD in the TiVo.

    I'm sure the last thing you want to hear is spend more money, but one of the Best Buy stores in your area may have a WD20EACS in stock (in a box with a different number, but it's the only 2TB Caviar Green they've got on sale at the moment for $80), and it looks like hard drive prices are going to be outrageous until sometime late this coming spring, so it's not a bad idea to have an affordable spare on hand.

    That one may work in the TiVo better than the Seagate, and you could use the Seagate in a computer to back up shows to.

    One last thing to try, hook the Hitachi up to the computer, open WinMFS, note which boot pair it's set to use, 3 and 4, or 6 and 7. Then hook up the Seagate and open WinMFS (or you can have both hooked up if you can keep them straight so you know which one you're looking at/operating on when) and run the swap fix on the Seagate. Then see which pair the Seagate is set to boot from. If it's opposite from the Hitachi, reverse it, if it's the same as the Hitachi, do it again (for example, if the Hitachi is set for 3 and 4, and the Seagate is set for 3 and 4, run the bootfix option to set it for 3 and 4, which would be option 1--yes, you're telling it to do what it's already set to do, the idea is to get it to rewrite the partion map and bootpage afresh. Option 2, of course, sets it for 6 and 7.)

    Then try it in the TiVo one more time.

    One other thing I just thought of.

    I don't really know how Supersize works. I know that it uses space that would otherwise be used for advertising that the TiVo downloads, but I don't know how it goes about doing that. But it occurs to me that if the Hitachi was WinMFS supersized, but the 1TB wasn't, maybe there's something about the partions copied over from the 1TB to the image of the Hitachi now on the Seagate that isn't quite right, and that WinMFS supersizing the 1 TB (assuming there's nothing on there that needs saving and you can risk having to re-jmfs it from the 160) and then copying partitions 2-7 and 9 from the 1TB to the Seagate might fix that.

    If anybody else knows enough about it to tell me that that theory is worthless I hope they'll speak up. If they don't know enough about it, I hope they won't confuse the issue even more than I have.:)

    Another one other thing I just thought of.

    I think I'll put the original 160 back in the HD and run that for a few days and make sure it doesn't lock up (and record some stuff I don't care about on it as well as a further test), and if that goes well, I'll do the whole get it on a 2TB drive routine all over again, and see if it works better this time.

    Models after the Series 1s don't seem nearly as finicky about drives as the S1s, but there still seems to be a certain amount of voodoo involved in successful drive size upgrades, so next time maybe I need to slaughter the goat first and then the chickens, and arrange their entrails counter-clockwise.:D
     
  6. atmuscarella

    atmuscarella Well-Known Member

    6,941
    606
    Oct 11, 2005
    Rochester NY
    unitron:

    I have decided to try something different. I took my orginial 160 GB drive and copied it to the new 2TB Seagate drive (comer method, supersized with WinMFS).

    The Seagate 2TB now boots and seems to work fine in my TiVo HD. I am still hoping there is some way to retrieve the data off the bad Hitachi 2TB drive. I had 2 thoughts and wanted to see what you think:

    1. Using dd-rescue to copy the operating system from the New 2TB Seagate drive to the bad 2TB Hitachi drive. Would the process be smart enough to avoid the bad sectors on the Hitachi drive? So that I could boot the drive and copy the shows off to my computer and other TiVos?
    2. Using dd_resue to copy the data areas of the bad Hitachi 2TB drive to the new 2TB Seagate drive - would this work? if you think so what partitions would I copy?
     
  7. unitron

    unitron Well-Known Member

    16,576
    41
    Apr 28, 2006
    semi-coastal NC
    I'm assuming that the Hitachi and the Seagate have the exact same number of LBA.

    Otherwise, it might not work. The good news is we can screw up the Seagate and start again, as long as we don't screw up the Hitachi.

    If partitions 10-14 are the same size on the freshly written to Seagate as on the Hitachi, you could try copying the recorded television shows over from the Hitachi to the Seagate using

    dd_rescue -v /dev/sdax /dev/sdbx

    where a=Hitachi, b=Seagate and x is 10, then 11, then 12, then 13, then 14.

    This will take a looooongggg time.

    Before you start, see what mfsinfo on the MFS Live cd has to say about the Hitachi

    mfsinfo /dev/sda


    and see what WinMFS mfsinfo has to say about it.

    If you don't get any reports of "volume header corrupt" or "checksum failure" or scary sounding stuff like that, then go ahead with copying 10-14 from Hitachi to Seagate.

    If that doesn't recover your shows, I'm not sure if it can be done, although at that point we might want to risk writing to the Hitachi.
     
  8. atmuscarella

    atmuscarella Well-Known Member

    6,941
    606
    Oct 11, 2005
    Rochester NY
    When I ran: mfsinfo /dev/sda I got "volume header corrupt", so I haven't done anything yet. Any thoughts?

    Thanks,
     
  9. unitron

    unitron Well-Known Member

    16,576
    41
    Apr 28, 2006
    semi-coastal NC
    Yeah, but it'll take awhile to write it all out and supper's calling, so give me a few hours.:)
     
  10. unitron

    unitron Well-Known Member

    16,576
    41
    Apr 28, 2006
    semi-coastal NC
    It's going to be more than a few hours, partially because a site I need to get to seems to be unable to come to the internet at the moment.

    The good news is that this gives me more time to think about what I'm going to say. Let's hope that increases the chances of it being accurate.:)
     
  11. Soapm

    Soapm Active Member

    1,666
    9
    May 9, 2007
    Aurora, CO
    Item 1 assumes the OS on the new Seagate are on the exact same sectors as the OS on the old Hatachi. Not likely even if you're lucky.

    Also, my understanding is Tivo stores recordings in a database form so my mind thinks the OS must know what datacells contains what recordings. So pasting in a new OS would basically leave the database with no map. Then again I'm wrong a lot so take that as that.

    Does the Hatachi run? If so your first move would be to dd the entire disk from the old to the new drive. From there you can work to get the drive to boot.

    The first thing I would do if it doesn't boot is a kickstart and try flipping back to an old OS and see if it'll boot.

    If not and if you have a linux machine you can copy the OS from a working disk of any size to that unbootable Hitachi since you'll be copying the folder and files like bin, sbin, var etc... I would copy one folder at a time until it boots keeping a copy of the hatachi OS in case the database gets scrambled.

    Good luck, I know how it is trying to keep recordings. I've got series that don't show any more like Barney Miller, Taxi and it would be a real kick in the gut of I lost them.
     
  12. unitron

    unitron Well-Known Member

    16,576
    41
    Apr 28, 2006
    semi-coastal NC
    You seem to not understand how dd_rescue works, especially with regard to when you specify partitions. (Admittedly I only have a somewhat hazy grasp of it myself.)

    I've rescued shows by copying "good" partitions 2 through 7 and 9 to a troubled drive, so that technique can work, if it's what's called for.

    If the trouble is in partitions 2-7 and/or 9.

    From something I've learned at "the other site", it appears his problem is in the first part of partition 10, the first of the MFS partitions, and that's going to require some further research on my part to see if it's fixable, 'cause I think it's going to mean getting down and dirty with a hex editor.
     
  13. unitron

    unitron Well-Known Member

    16,576
    41
    Apr 28, 2006
    semi-coastal NC
    Okay, apparently when it says "volume header corrupt", it's talking about the part at the beginning of partition 10 that identifies it to the TiVo as the first of the MFS partitions and stuff, and that seems to be messed up somehow.

    While you're waiting for me to see if I can find and/or figure out how to fix that or get around it somehow, check both the Hitachi and the new Seagate with pdisk -l (on the MFS Live cd--WinMFS's mfsinfo probably will choke on the volume header thing and not let you see the partition map) and see if partitons 10 and up are the same size on both drives, that is , if 10 and 10 are the same, and 11 and 11 are the same, et cetera.

    If so, dd_rescue partitions 11 and up from the Hitachi to the Seagate.

    That may screw up the Seagate, but we can risk that as long as we don't screw up the Hitachi any further than it already is.

    Then you can try it (the Seagate) in the TiVo and see what happens. You might get some of the shows, you might be missing some of the menus, you might have shows listed but when you hit "play" they don't.

    Whatever happens, I will learn something from it.
     
  14. atmuscarella

    atmuscarella Well-Known Member

    6,941
    606
    Oct 11, 2005
    Rochester NY
    Partition 10 -14 are the same size on both drives so I am in the process of copy partitions 11-14 from the bad Hitachi drive to the Seagate. Not sure how long this is going to take, if there are any bad sectors in this area it could take days. I will post back when I am done and have tried the drive in my TiVo HD.

    Thanks again,
     
  15. unitron

    unitron Well-Known Member

    16,576
    41
    Apr 28, 2006
    semi-coastal NC
    It's going to take a while even if there aren't any trouble spots.
     

Share This Page