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

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

    88.8%
  1. P Smith

    P Smith Mr. FixAnything

    27,033
    644
    Jul 25, 2002
    E.Mdtrn Sea
    BIOS can't block reading SMART.

    Try to boot the MHDD CD (4.6 is the latest); it could be worst case for you - BAD SMART ie dying drive(s).

    Actually, this is a way to get assurance of ANY drive - take SMART data first, make decision later.
     
  2. mocarob

    mocarob Legend

    321
    2
    Jul 26, 2007
    I booted using mhdd and the the drives in my pc look good. (from what i can tell) f8 for smart attributes.
    Reallocated Sectors Count = 0
    Temperature 44
    CRC error rate 0
    I pressed f10 for a screenshot but where are they saved? Are these the key items to look for? Now just waiting for the DVR drive to arrive so I can run MHDD on it. Also, I remember SMART enabled/disabled option in my bios from awhile back. it's there and it's enabled.
     
  3. P Smith

    P Smith Mr. FixAnything

    27,033
    644
    Jul 25, 2002
    E.Mdtrn Sea
    It will save to MHDD\Logs folder, to get it out (better boot from USB, it will keep the files) you'll need floppy drive (remember what is that ? ;)

    BTW, you could run Victoria under Windows and post screen shot easily.
     
  4. mocarob

    mocarob Legend

    321
    2
    Jul 26, 2007
    ive booted into gparted. even though ive done this before-i'm a little rusty on this command line stuff.

    I see the 2 drives in gparted so i closed it and opened up terminal.
    It opened at root so I typed in mkdir /mnt/sda (i didnt follow instructions)

    Then I thought i'd better follow the directions perfectly..
    So i typed in mkdir /mnt/fap

    So now is where things are confusing.
    do i now mount 'sda' then 'fap' and then dump from 'fap' to 'sda' ?

    Or can I just create new directories with the correct names in the instructions? (hr20,fap)
     
  5. P Smith

    P Smith Mr. FixAnything

    27,033
    644
    Jul 25, 2002
    E.Mdtrn Sea
    Just start from beginning - print first page of the thread and reboot Gparted.
     
  6. mocarob

    mocarob Legend

    321
    2
    Jul 26, 2007
    I'm having superblock error when trying to mount. i assume that means i need to gracefully shut down the drive. the problem is, this external drive was starting to have problems-thats why im trying to copy it to a new drive.
    When re-connect it to boot the dvr it first takes about 10min to finish the self check screen then gets hung up on 'acquiring data'. (20min still no go)
    Without it finishing booting i cant get to the menu to shut it down properly..
    any ideas?

    I can still see the programs on the drive and play them back. its just stuck on acquiring data. the bedroom receiver works so i know its not the dish. the cabling is good its booting from the internal drive.. any ideas?
     
  7. P Smith

    P Smith Mr. FixAnything

    27,033
    644
    Jul 25, 2002
    E.Mdtrn Sea
    There was a procedure to clean journal and find a copy of super-block. Print that posts and try again.

    Would you post SMART of the bad drive ? Whole table.
     
  8. mocarob

    mocarob Legend

    321
    2
    Jul 26, 2007
    Are you referring to this?
    SHould I post results here or just delete the log file?

    xfs_check /dev/sd?2 (where ? is the letter of the drive with the error)
    Post the results of that here, and see if anyone can help identify the problem. If you rather proceed immediately, you can delete the log file using the following command:
    xfs_repair -L -r /dev/sd?3 /dev/sd?2
    A couple people including me have had success with that command.
     
  9. P Smith

    P Smith Mr. FixAnything

    27,033
    644
    Jul 25, 2002
    E.Mdtrn Sea
    Yes.

    I did clean the journal [log file] without issues, it was error on a drive what prevent to shutdown correctly. Your case could be different, but I would try.
     
  10. Tidalcloud

    Tidalcloud Mentor

    47
    0
    Sep 18, 2007
    the sticks...
    Hi all. Long long string and so I just wanted to report in that I just upgraded from a 1TB to a 2TB moving all programs, settings etc.
    Details that may be of interest:
    New drive: Western Digital WD20EURS
    New enclosure: Rosewill MetaS
    Transfer method: GParted Live 0.4.6-1
    Other: drives were listed in GParted in reverse of what appears in the instructions (old drive was listed as sda and new as sdb). I reversed the instructions in order to insure this was recognized as such and utilized the copy command exactly as provided.
    I'd like to thank the original author and the author w/screenshots Both helped as did reviewing various comments, questions and answers etc. I could not find anything discussing what to do if the drives appeared in GParted in reverse order and so I took a shot at reversing what I thought would be the appropriate instructions and it worked out and came off without a hitch.
    Good luck to all.

    ps: the Rosewill enclosure is nice. The tray holding the hard drive is a little flimsy but once it's in it's in and the rest of the enclosure is solid ... with a nice variable speed 80mm fan.
     
  11. P Smith

    P Smith Mr. FixAnything

    27,033
    644
    Jul 25, 2002
    E.Mdtrn Sea
    You could swap the SATA ports/cables, but it's really doesn't matter if you know (by size) which is which.
     
  12. Tidalcloud

    Tidalcloud Mentor

    47
    0
    Sep 18, 2007
    the sticks...
    I really couldn't swap. The old hard drive was a sealed Acomdata unit. The only connection I could make was to the esata port. Swapping commands was easy enough ... once I locked in on which ones to swap (with no real knowledge of Linux).
     
  13. Sep 1, 2011 #393 of 804
    mocarob

    mocarob Legend

    321
    2
    Jul 26, 2007
    I finally had a chance to try this and once i typed in
    xfs_check /dev/sd2 (and i tried xfs_check /dev/sd3)
    both said 'no such file or directory' fatal error couldnt initialise xfs directory.

    is there a typo above?
    should there be a 'a' after sd? example: xfs_check /dev/sda2
     
  14. Sep 1, 2011 #394 of 804
    mocarob

    mocarob Legend

    321
    2
    Jul 26, 2007
    ok, i see my mistake now. add the drive letter in front of the number.
    i thought the number depended on the drive. duh.

    disregard for now.
     
  15. Sep 2, 2011 #395 of 804
    mocarob

    mocarob Legend

    321
    2
    Jul 26, 2007
    ok, i've tried a few times. it starts to restore then it gets an interrupt error each time.

    note: dump interrupted: 4 seconds elapsed: may resume later using -R option

    any ideas?
     
  16. Sep 2, 2011 #396 of 804
    P Smith

    P Smith Mr. FixAnything

    27,033
    644
    Jul 25, 2002
    E.Mdtrn Sea
    Nope. It's more serious case, need logs ... not the short extortion.
     
  17. Sep 2, 2011 #397 of 804
    mocarob

    mocarob Legend

    321
    2
    Jul 26, 2007
    couldnt figure out how to save to usb. so i typed it..
    am i supposed to use the default setting of gparted? (im using 0461)
    mkdir /mnt/fap
    mkdir /mnt/hr20
    mount -t xfs -o rtdev=/dev/sda3 /dev/sda2 /mnt/fap
    mount -t xfs -o rtdev=/dev/sdb3 /dev/sdb2 /mnt/hr20

    xfsdump -J - /mnt/hr20 | xfsrestore -J - /mnt/fap

    using file dump (drive simple) strategy
    version 2.2.48 (dump format 3.0) - Running single-threaded
    level 0 dump of debian:/mnt/hr20
    dump date
    session id xxxxxxxxxxxxxxxxxxxxx
    session label ""
    ino map phase 1 constructing initial dump list
    error -r option required to resume
    restore status : error
    ino map phase 2 skipping
    ino map phase 3 skipping
    ino map construction complete
    est dump size xxxxxxxxxxxx
    /var/lib/xfsdump/inventory created
    creating dump session mmedia file 0 (media 0, file 0)
    dumping ino map
    dumping directories
    dump size (non-dir files) : 0bytes
    note dump interrupted 4 seconds elapsed may resume later using -r
    dump status : interrupt
     
  18. Sep 2, 2011 #398 of 804
    P Smith

    P Smith Mr. FixAnything

    27,033
    644
    Jul 25, 2002
    E.Mdtrn Sea
    Lets step back.
    Did you finish xfs check and it didn't show errors ?
    If there was errors, did you run xfs repair ?
     
  19. Sep 2, 2011 #399 of 804
    mocarob

    mocarob Legend

    321
    2
    Jul 26, 2007
    Thats right almost forgot.. I ran the xfs check on the old drive. it had errors. I ran the xfs repair and it finished.
    Then I rebooted the hr20 with the drive. See if it would work again. it did.
    graceful shutdown. connect to the pc. boot gparted 0461.
    hopefully that gets us up to my last post..
     
  20. Sep 2, 2011 #400 of 804
    mocarob

    mocarob Legend

    321
    2
    Jul 26, 2007
    well after reading about what others went thru while attempting to copy ~ I decided to delete the partitions on the new drive with gparted and rebooted the hr20 with it to re-create the partitions. back to gparted for the dump/restore.. This time it went a little further into the process.
    things like:
    xfsrestore: session id: xxxxxxxxxxxx
    xfsrestore: media id: xxxxxxxxxxxxx
    xfsrestore: searching media for directory dump
    xfsrestore: reading directories
    xfsdump: dumping non-directory files
    xfsrestore: 530 directories and 54700 entries processed
    xfsrestore: directory post-processing
    xfsrestore: restoring non-directory files

    Thats where I left it. I didnt use status reports every 300 or 600 seconds so I dont see anything happening on the screen (within10min) but my pc led is flashing like its active.. off to bed. we'll see what the results are tomorrow morning..
     

Share This Page

spam firewall

Advertisements