1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to revive a fried drive with dd_rescue

Discussion in 'TiVo Underground' started by PortlandPaw, Aug 16, 2004.

  1. IamMBS

    IamMBS New Member

    Jul 14, 2002
    I just used dd_rescue per the instructions listed in Post #3 with a Knoppix cd. I have a series 1 Sony svr-2000 unit that was previously upgraded to 80GB AND 120GB drives. I used dd_rescue on both drives and copied the old drives to the new drives. The new drives are both 160GB drives. Everything went fine during the copy process with no errors (surprised me) on either drive. I put the new drives in the Tivo and the Tivo doesn't get past the first "Your Tivo is powering up" screen. I put the old drives in and everything is fine.

    It's pretty apparent that the data wasn't successfully transferred to the new drives. Does anyone have any ideas of what might be wrong? I've checked the jumpers and even reversed the MAster & Slave to make sure I didn't get the drives mixed up.

    Also, on another note, I've read that I can't install the drives from my Tivo into another identical Tivo due to the Serial Number of the hardware not matching the serial number stored on the Drive. Is this true for all Tivo's such as the series 1 svr-2000 or only specific to certain Tivo models such as series 2 or other brands. I'd really like to have a complete backup (hardware and software) of my Tivo setup because I have about 100 hours of saved programs.

    Thanks for any help.
  2. WillowTheDog

    WillowTheDog Golden Retriever

    Oct 14, 2003
    Hey, I just wanted to say thanks to PortlandPaw and everyone else who contributed to this thread. I used the techniques listed here to retrieve data from a very dead hard drive that my wife had been using to back up important files from her Mac laptop. Not being a linux guy, I never would have thought to use dd_rescue. I tried commercial utilities like DiskWarrior, but had no success. I thought I was going to have to send the drive to a data recovery company and pay through the nose. But then I stumbled upon this thread one morning while doing my daily Tivo reading. What good luck!

    You guys saved me hundreds of dollars. Thank you!

    PS - Sorry for the non-Tivo post, but I wanted to throw my dd_rescue success story into the mix. :)
  3. IamMBS

    IamMBS New Member

    Jul 14, 2002
    Anyone have any ideas for post #61 above?

    Thanks for any help
  4. videoi

    videoi New Member

    Apr 24, 2002
    Hey Gang -

    Well, the Maxtor 300GB in my HD DirecTivo died (2nd drive). Had a lot of programs stored, so figured I'd try to revive it. Ran Spinrite. Got to about 48% complete, and then basically stopped. Killed Spinrite, figured I'd just try dd_rescue. Using the disk from ptvupgrade, I booted into linux, and tried dd_rescue - it was going along ok for a few hours, and then (also) just seemed to stop. I couldn't ecape out of it, so (knowing I was taking a risk with a Unix-variant), I rebooted. Upon reboot, the machine is not recognizing EITHEr the old or the new drives.

    Any suggestions??!?!?


  5. ExpectLess

    ExpectLess New Member

    Apr 2, 2006
    I thought I'd add to the chorus of thanks for the old original post. Had a failing 80GB factory drive from my SVR-3000, Maxtor's PowerMax tool confirmed that it was on its way out. Downloaded RIP, ran dd_recscue to a 160GB drive I had sitting around, and it's back! I can't use the extra capacity, but I think I'll avoid worrying about that and just live with my 200 hours for now.

    Re: post #61, what happens if you run dd_rescue on one of the two old drives at a time? Meaning, take out your "B" drive, copy it to one of the 160GB drives, put the old "A" and the new "B" into TiVo. If that works, copy the "A" drive the same way. Not a whole lot of help, but it's all I've got.

  6. rduske

    rduske New Member

    Oct 23, 2006
    About 2 years ago, I upgraded my 40-hour series 2 with a 120GB disk. That disk is beginning to fail. I purchased a 160 to replace it. It is my understanding that the early Series 2's can only see 137GB anyway. I tried to use mfstools to copy the failing 120 onto the new 160. Obviously, it didn't work. I tried then to use dd to copy the disk. That appeared to work, but mfsinfo reports the new drive is not valid. Someone else on this thread reported the same error I received. In any event, I am going to try again with dd_rescue. My question is, do I need to run BlessTivo after dd_rescue completes, or is the sector copy enough for the TiVo to see the new drive as valid?
  7. ashu

    ashu User title defunct

    Nov 8, 2002
    Any S2 TiVo that was working relatively recently already has TiVo software & Linux kernel pdates new enough to let it recognize ginormous hard drives (I've heard of dual 300s, and even 500s ... see weaknees.com for examples). There are issues with exceeding 300ish GB, requiring expansion of the swap space ... but that doesn't affect your upgrade situation.

    Its more likley your dd failed due to a too-far-gone-to-copy source drive ... at least that'd be my guess.
  8. coldtoes

    coldtoes vermicious knid

    May 29, 2002
    Well to answer your question a year and a half later ... :D

    I can't remember, but I am about to try again so I will report my findings. I am looking at my old notes and either I gave up on the PTVu disk and used Knoppix, or else I gave up on Knoppix and used PTVu with just the -v switch. I think it was the former - it looks like my PTVu notes are from my initial attempt. This time I'm going to start with Knoppix and see what happens.
  9. johnny*dangerous

    johnny*dangerous New Member

    May 19, 2006
    I have a question - I am about to replace my maxtor 300g (which is failing) with a 320g Seagate. - Since I ran the updated kernal on the original drive (so it sees all 300g), will I have to do this again on the new drive?

    I have a single drive Sony t-60 if that matters.
  10. johnny*dangerous

    johnny*dangerous New Member

    May 19, 2006
    Updated the drive last night (only took about 6 hours for the 300g drive to copy). As a note, it only recognizes the new drive as 300g, not 320 so a kernal update is needed to recognize the full size of the drive even though there is already an lb_48 on the copy.

    Thanks goes out again to Portland Paw for starting this how-to. It worked outstandingly!

  11. dmark1867

    dmark1867 New Member

    Mar 22, 2005
    This post is very verbose and may include some steps that are not necessary :eek:
    I am learning, but because I was successful, I thought I would share what worked for me :cool:

    I did not have a drive that was failing.
    My intent was to create an exact clone of the drive in my DSR704 (complete with partitions, shows, hacks, etc).

    First I got the MFSLive Boot CD; see this post to get it:

    This boot CD incorporates the latest version of garloffs dd_rescue which supports all the switches.

    I then installed the drives in my PC as follows:
    hda Primary Master - FAT32 Drive
    hdb Primary Slave - NEW 120GB drive (same exact model # of old 120GB drive)
    hdc Secondary Master - OLD 120GB Drive
    hdd Secondary Slave - CD-ROM Drive

    I booted from the MFSLive CD and when I got to the # prompt I verified that the new drive was configured as hdb by entering:
    mfsinfo /dev/hdb

    & that the old drive was configured as hdc:
    mfsinfo /dev/hdc

    I ensured that DMA was on:
    hdparm -d /dev/hd{enter drive letter}

    If DMA is not on for some reason (it should be on by default), you can use this command to turn it on:
    hdparm -d1 /dev/hd{enter drive letter}
    (If you need to turn it off replace the 1 after the d with a zero)

    Then I mounted the fat32 drive to save the log file from the copy:
    mount -t vfat /dev/hda1 /dos

    I then ran dd_rescue (replace the drive letters if your configuration is different!!!!)
    -->Remember, in my case the old drive is hdc, and my new drive is hdb<--
    dd_rescue -B 1b -b 2M -A -v -l /dos/dd_rescue.log /dev/hdc /dev/hdb

    It only took about one hour to complete (I have 115 hours of shows)!

    I then unmounted the drives (not sure if this is necessary)
    umount -f -a -r (make sure to type umount, not unmount)

    I then shutdown the pc:
    (Just entering this from the root directory wasn't shutting the pc down :confused: )

    Then I changed the jumper on the new drive from slave to master, put it in the Tivo, tested it, and presto, it worked like a champ :D !
    The new drive has all of my hacks, shows, etc.

    I could not have done it without all the fine and dedicated folks on these boards! :up:

  12. anonymuse

    anonymuse Techie but Tivo N00b

    Nov 27, 2005
    How does this work when you want to go from 2 harddrives to 1? (Original 40GB in RCA DVR40 plus 160GB add on)

    For the truly uninitiated: (Yes, that's me)
    /dev/hda is Primary Master drive
    /dev/hdb is Primary Slave drive
    /dev/hdc is Secondary Master drive
    /dev/hdd is Secondary Slave drive

    hda Primary Master - ????
    hdb Primary Slave - NEW 200GB plus drive
    hdc Secondary Master - Old Drive(s)????
    hdd Secondary Slave - CD-ROM Drive

    I'm wondering if I'm going to run out of bays! ??

    Or can I put the 2 old drives in serial and connect them to one IDE cable? Once these 2 drives were originally put together, do they actually just look like one big drive on Tivo and computers etc?
  13. goony

    goony New Member

    Nov 19, 2003
    There's no such thing as "serial" on a parallel IDE drive bus, although it may have that appearance - electrically, they are treated as two separate drives.

    When you have a cable with 3 connectors you can connect two drives - one as MASTER and one as SLAVE.

    Read all about this stuff here: http://en.wikipedia.org/wiki/AT_Attachment, especially the sections Multiple devices on a cable, Cable select and Master and slave clarification.

    From a user standpoint, on a Tivo, they look like one large storage space but at the operating system and electrical interface level they are two separate units.
  14. newbr

    newbr New Member

    Feb 18, 2004
    just to save people some time, you do get a speed increase by having the old drive and new drive on separate cables (after checking DMA is on with hdparm), I'm averaging about 40000kB / s.

    The other way I was only getting 30000kB / s.
  15. pitchford

    pitchford New Member

    Mar 10, 2007
    Does this DD_rescue work in a SATA environment for a series3 setup?
  16. pitchford

    pitchford New Member

    Mar 10, 2007
    I think I've found that the answer to this is "yes" using sda in place of hda.

    So if I successfully do DD_rescue from my original 250gig drive to a new 1T drive, will the full 1T be available to the Tivo, or do I have to do something else?
  17. ronsch

    ronsch New Member

    Sep 7, 2001
    You need to do something else. Check mfslive...
  18. pitchford

    pitchford New Member

    Mar 10, 2007
    Can I do it with WinMFS, or must I use the live tools?

    I did the dd_rescue copy with the arguments shown above except for the log part "-l /var/dd_rescue.log" and the new drive works fine in my S3. I just need to make the TiVo see the whole drive now (and do a backup).
  19. Heinrich

    Heinrich New Member

    Feb 28, 2002
    Holy Old Threads!!

    I know it's old, but, all he information seemed completely relevant and this thread got me going. Anyhoo, is it normal for this utility to start with "about to transfer 0.0 kbytes"

    then later

    starting positions: in 0.0k, out 0.0k

    but then to have ipos and opos and xferedd data counting in large numbers?
  20. ronsch

    ronsch New Member

    Sep 7, 2001
    I can't recall ever seeing it say that.....

Share This Page