1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Welcome to the new DBSTalk community platform. We have recently migrated to a community platform called Xenfono and hope you will find this change to your liking. There are some differences, but for the most part, if you just post and read, that will all be the same. If you have questions, please post them in the Forum Support area. Thanks!

How to: Copy and Replace Internal Hard Drive

Discussion in 'DIRECTV Tips and Resources' started by marty45714, Sep 25, 2007.

I have read the disclaimer and I understand that this process in NOT recommended

  1. YES - I agree I will not tamper with my leased equipment

    9.5%
  2. NO - I agree to accept full financial responsibility for breaking my Customer Agreement

    90.5%
  1. Nov 5, 2010 #241 of 747
    ntrance

    ntrance Legend

    149
    1
    Aug 18, 2006
    Did you run xfs_check first? What was the output?

    For xfs_repair, I believe you would need to specify an interval to use the -t option, like -t 1 for one minute intervals. I wouldn't think you would want to delete the log file -L unless you had too. What was the output of xfs_repair?
     
  2. Nov 5, 2010 #242 of 747
    jangell2

    jangell2 Godfather

    310
    2
    Apr 6, 2004
    I didn't run the check. The output of the xfs_repair is in the attached file. It spans 2 iphone pics and in the second you see the results of the attempted restore before the error messages started. They are the same as previous pics.
     

    Attached Files:

  3. Nov 5, 2010 #243 of 747
    ntrance

    ntrance Legend

    149
    1
    Aug 18, 2006
    I like the tip about leaving the DVR disconnected from the satellite because the DVR boot process sure is long. I wish the original instructions would get updated with working versions of gparted like I linked in post 220. Additionally, if the instructions were updated to include progress reporting (i.e. xfsdump -J - /mnt/hr20 | xfsrestore -J -p 600 - /mnt/fap) people would be able to spot problems much earlier.
    hdparm -i /dev/sd? (where ? is the letter of one of the drives) will give model number and serial number info, which is another way to distinguish drives of the same size.
    Just to clarify, getting the xfsdump|xfsrestore backwards will not destroy your recordings. Normally, it would be the target file system that would be left unclean during an aborted copy, so I'm not sure the -o ro on the source drive buys you any additional safety.
     
  4. Nov 5, 2010 #244 of 747
    ntrance

    ntrance Legend

    149
    1
    Aug 18, 2006
    Try using the DVR to fix the original disk using the instructions in this post:

    http://www.dbstalk.com/showthread.php?p=2504294#post2504294

    Follow that with a graceful shutdown, and retry the copy procedure. If that doesn't work try xfs_check, and report back. You can also try xfs_repair without deleting the log after that.
     
  5. Nov 6, 2010 #245 of 747
    jangell2

    jangell2 Godfather

    310
    2
    Apr 6, 2004
    It just so happens that yesterday the receiver did do a scan on it's own. When I booted it up with the original esata drive attached it said there was a problem with it and did a scan. When the receiver did boot up, it was running on the internal drive. So that's been done.

    I'll try your cut and past and do an xfs_check, than a repair without deleting the log, and then the restore. Try to do cut and pastes for everything.
     
  6. Nov 6, 2010 #246 of 747
    jangell2

    jangell2 Godfather

    310
    2
    Apr 6, 2004
    I'm running the xfs_check now. I first entered
    xfs_check /dev/sdb2
    and nothing seemed to be happening, so I reran it with the verbose command and now I'm getting a million messages. It's beein running for at least a couple of hours. I'm seeing messages like "setting block nnnn to free1" and "setting rtblock nnnn to rtfree." The "setting" implies it's making changes, is that true?
     
  7. Nov 6, 2010 #247 of 747
    jangell2

    jangell2 Godfather

    310
    2
    Apr 6, 2004
    Holy crap, it's still running. I guess it runs as long as a successful restore would.
     
  8. Nov 6, 2010 #248 of 747
    P Smith

    P Smith Mr. FixAnything

    21,341
    127
    Jul 25, 2002
    W.Mdtrn Sea
    Do you have first messages of the run ?

    I'm worried about a rtdev [sdb3] activation - if it not happened during first stage of xfs_check, you're in big trouble ...
     
  9. Nov 6, 2010 #249 of 747
    jangell2

    jangell2 Godfather

    310
    2
    Apr 6, 2004
    Post 226 and 242 contain my iphone photos of a restore (226) and an xfs_repair. Let me know what you think.
     
  10. Nov 6, 2010 #250 of 747
    P Smith

    P Smith Mr. FixAnything

    21,341
    127
    Jul 25, 2002
    W.Mdtrn Sea
    I'm concern about current run of xfs_check.
     
  11. Nov 6, 2010 #251 of 747
    jangell2

    jangell2 Godfather

    310
    2
    Apr 6, 2004
    I just re-read this and I misunderstood, you are asking about the xfs_check.

    When I first started it, nothing appeared on the screen and I wasn't sure if it was running or for how long it would run. So I ran it again in the same terminal screen with the verbose option. There have been a bazjillion mesages and I've mentioned them above.

    I wonder if this means I've got to checks running? It still is running.
     
  12. Nov 6, 2010 #252 of 747
    ntrance

    ntrance Legend

    149
    1
    Aug 18, 2006
    I'm not sure how extensive the test it does on it's own is, but there are more tests you can invoke yourself here:
    http://www.dbstalk.com/showthread.php?p=2614471#post2614471

    He posted that one of the messages is "setting rtblock nnnn to rtfree." Wouldn't that mean it is dealing with real-time blocks as well?
     
  13. Nov 6, 2010 #253 of 747
    P Smith

    P Smith Mr. FixAnything

    21,341
    127
    Jul 25, 2002
    W.Mdtrn Sea
    That's the point - if it got the linked rtdev partition then such messages in bulk are telling about big issue; if not - then releasing those block would destroy all recordings if xfs_check will allowed to write.
     
  14. Nov 6, 2010 #254 of 747
    jangell2

    jangell2 Godfather

    310
    2
    Apr 6, 2004
    Ok, it finished. I was able to do the cut and past and here are the results:
    dir 63217025 block 0 entry 0000000001174405120 54539117
    inode 54539117 add link, now 1
    dir 63217025 block 0 entry 0000000001191182336 54539118
    inode 54539118 add link, now 1
    dir 63217025 block 0 entry 0000000001207959552 54539119
    inode 54539119 add link, now 1
    dir 63217025 block 0 entry 0000000001224736768 54539120
    inode 54539120 add link, now 1
    dir 63217025 block 0 entry 0000000001241513984 54539121
    inode 54539121 add link, now 1
    dir 63217025 block 0 entry 0000000001258291200 54539122
    inode 54539122 add link, now 1
    dir 63217025 block 0 entry 0000000001275068416 54539123
    inode 54539123 add link, now 1
    dir 63217025 block 0 entry 0000000001291845632 54539124
    inode 54539124 add link, now 1
    dir 63217025 block 0 entry 0000000001308622848 54539125
    inode 54539125 add link, now 1
    dir 63217025 block 0 entry 0000000001325400064 54539126
    inode 54539126 add link, now 1
    dir 63217025 block 0 entry 0000000001342177280 54539127
    inode 54539127 add link, now 1
    dir 63217025 block 0 entry 0000000001358954496 54539128
    inode 54539128 add link, now 1
    dir 63217025 block 0 entry 0000000001375731712 54539129
    inode 54539129 add link, now 1
    dir 63217025 block 0 entry 0000000001392508928 54539130
    inode 54539130 add link, now 1
    dir 63217025 block 0 entry 0000000001409286144 54539131
    inode 54539131 add link, now 1
    dir 63217025 block 0 entry 0000000001426063360 54539132
    inode 54539132 add link, now 1
    dir 63217025 block 0 entry 0000000001442840576 54539133
    inode 54539133 add link, now 1
    dir 63217025 block 0 entry 0000000001459617792 54539134
    inode 54539134 add link, now 1
    dir 63217025 block 0 entry 0000000001476395008 54539135
    inode 54539135 add link, now 1
    dir 63217025 block 0 entry 0000000001493172224 54539744
    inode 54539744 add link, now 1
    dir 63217025 block 0 entry 0000000001509949440 54539745
    inode 54539745 add link, now 1
    dir 63217025 block 0 entry 0000000001526726656 54539746
    inode 54539746 add link, now 1
    inode 63217025 parent 12583040

    These are the last lines displayed. As I mentioned before, when I did the check without the verbose command, nothing was displayed and after about 5 minutes I ran it with the verbose command. I would interpret that to mean nothing was displayed at the start without the verbose command. I started getting messages immediately after starting check with verbose. Of course thoe lines came so quickly I would not have seen any unique messages at the beginning.

    Should I try the restore again or the fix or is it a lost cause?
     
  15. Nov 6, 2010 #255 of 747
    jangell2

    jangell2 Godfather

    310
    2
    Apr 6, 2004
    If you tell me to do the fix would you specify the exact command and parameters? If you tell me to restore, specify that too if it's different from the initial instructions in post 1.
     
  16. Nov 6, 2010 #256 of 747
    ntrance

    ntrance Legend

    149
    1
    Aug 18, 2006
    Might as well try the restore again. If you haven't done it already, delete the partitions off the new drive while in gparted, use the DVR to repartition it, and do a graceful shutdown. Then do the dump/restore as before, but add the -p 600 for progress reports every 10 minutes.
    xfsdump -J - /mnt/hr20 | xfsrestore -J -p 600 - /mnt/fap
     
  17. Nov 6, 2010 #257 of 747
    jangell2

    jangell2 Godfather

    310
    2
    Apr 6, 2004
    Is that just a case of telling gparted to delete each partion separately or is there a special command?
     
  18. Nov 6, 2010 #258 of 747
    ntrance

    ntrance Legend

    149
    1
    Aug 18, 2006
    Yes, delete each partition separately, then click apply. Just be sure to select the correct drive first.
     
  19. Nov 6, 2010 #259 of 747
    jangell2

    jangell2 Godfather

    310
    2
    Apr 6, 2004
    Heh, heh, heh. Yeah, I think so.:) The wife wants to watch a movie now. I hope to try this later tonight.
     
  20. Nov 6, 2010 #260 of 747
    ntrance

    ntrance Legend

    149
    1
    Aug 18, 2006
    Are going to reattach the old drive to the DVR so she can watch the movie? If so, check that all of your recordings are still there.
     

Share This Page