Jump to content


Welcome to DBSTalk


Sign In 

Create Account
Welcome to DBSTalk. Our community covers all aspects of video delivery solutions including: Direct Broadcast Satellite (DBS), Cable Television, and Internet Protocol Television (IPTV). We also have forums to discuss popular television programs, home theater equipment, and internet streaming service providers. Members of our community include experts who can help you solve technical problems, industry professionals, company representatives, and novices who are here to learn.

Like most online communities you must register to view or post in our community. Sign-up is a free and simple process that requires minimal information. Be a part of our community by signing in or creating an account. The Digital Bit Stream starts here!
  • Reply to existing topics or start a discussion of your own
  • Subscribe to topics and forums and get email updates
  • Send private personal messages (PM) to other forum members
  • Customize your profile page and make new friends
 
Guest Message by DevFuse

Photo
- - - - -

Removing / Replacing / Copying Hard Drive of HR2* Receiver [Photo Tutorial]


  • Please log in to reply
581 replies to this topic

#121 OFFLINE   zackboll

zackboll

    Cool Member

  • Registered
  • 14 posts
Joined: Feb 20, 2010

Posted 20 February 2010 - 02:10 PM

post 3

...Ads Help To Support This SIte...

#122 OFFLINE   zackboll

zackboll

    Cool Member

  • Registered
  • 14 posts
Joined: Feb 20, 2010

Posted 20 February 2010 - 02:10 PM

post 4

#123 OFFLINE   zackboll

zackboll

    Cool Member

  • Registered
  • 14 posts
Joined: Feb 20, 2010

Posted 20 February 2010 - 02:11 PM

post 5

should be able to post links now

#124 OFFLINE   zackboll

zackboll

    Cool Member

  • Registered
  • 14 posts
Joined: Feb 20, 2010

Posted 20 February 2010 - 02:11 PM

http://community.wdc...5EARS/td-p/6395

#125 OFFLINE   P Smith

P Smith

    Mr. FixAnything

  • Registered
  • 19,845 posts
  • LocationMediterranean Sea
Joined: Jul 25, 2002

Posted 20 February 2010 - 02:51 PM

I see hans1967 answered the question:

fdisk using this parameters creates all partitions aligned to 4 KByte blockboundaries:



fdisk -H 224 -S 56 /dev/sdb

Create Partitions and for security reasons test them in the end.



gparted-gui does not work. You have to use parted in console. You have to ensure that your partitions begin and end at 4 KByte blockboundaries. You manage that by swiching parted showing all units in KByte. Dead shot exactly in Kibibyte (http://en.wikipedia.org/wiki/Kibibyte). All Numbers you give in then have to be divisible by 4.

Example for an HDD with one partition (Notice the command "unit kib"):
....
It is absolutely necessary, that start- and end-parameter are divisible by 4. Default settings in fdisk, parted and Windows XP do not manage that problem. For Windows XP you need this separate Utility: http://www.wdc.com/e...ormat/index.asp



#126 OFFLINE   zackboll

zackboll

    Cool Member

  • Registered
  • 14 posts
Joined: Feb 20, 2010

Posted 21 February 2010 - 01:43 AM

After doing a little bit of homework apparently it is not really possible to resize xfs file systems online.

Currently, i am just trying to create the partitions myself to see how that works.

# Create partitions aligned of 4KiB boundaries
parted /dev/sda
unit kib
mkpart primary xfs 36 530116
mkpart primary xfs 530120 16269248
mkpart primary xfs 16269252 1465138584

# Create FS
sudo mkfs.xfs -l logdev=/dev/sda1,size=134217728 -r rtdev=/dev/sda3 /dev/sda2

#
do xfsrestore and xfsdump steps from tutorial

#127 OFFLINE   zackboll

zackboll

    Cool Member

  • Registered
  • 14 posts
Joined: Feb 20, 2010

Posted 21 February 2010 - 02:53 AM

I am betting that you can just use an internal log device for the xfs partition. I ended up making partition 1 smaller, and modifying some of the parameters to make it look more like the filesysystem that the directv hd-dvr creates.

mkfs.xfs -d agcount=16 -f -r rtdev=/dev/sda3,extsize=1048576 /dev/sda2

#128 OFFLINE   P Smith

P Smith

    Mr. FixAnything

  • Registered
  • 19,845 posts
  • LocationMediterranean Sea
Joined: Jul 25, 2002

Posted 21 February 2010 - 11:03 AM

I missed your point(s) from your last post - what exactly you try to achieve ?
Making manually formatting of new disk instead of allow do that by DVR's OS ? Because of the 4 KB sector size ?

#129 OFFLINE   zackboll

zackboll

    Cool Member

  • Registered
  • 14 posts
Joined: Feb 20, 2010

Posted 21 February 2010 - 11:44 AM

Yes, because when the DVR formats the disk, it does not make the partitions 4kiB aligned, so performance will be degraded.

#130 OFFLINE   zackboll

zackboll

    Cool Member

  • Registered
  • 14 posts
Joined: Feb 20, 2010

Posted 21 February 2010 - 12:47 PM

Ok, that did not work for me and the DVR reformatted.

I am currently trying

1.) leave partition 1 alone as-is mis-aligned (I am not sure what directv has on there)
2.) delete partition 2 and 3 and make them 4kiB aligned
3.) create filesystem

sudo mkfs.xfs -d agcount=16 -i attr=0 -f -r rtdev=/dev/sda3,extsize=1048576 -l version=1 /dev/sda2

(note I believe are the options supplied are necessary to make the partition compatible with older version of linux the hd-dvr is using)

4.) run xfsdump | xfsrestore

I will let you know how it works out after I am finished copying my old hard-drive.

#131 OFFLINE   CCarncross

CCarncross

    Hall Of Fame

  • Registered
  • 7,058 posts
  • LocationJackson
Joined: Jul 19, 2005

Posted 21 February 2010 - 01:40 PM

I see what you are trying to do but personally I would have returned that EARS drive about 20 posts ago and gotten an EADS or EAVS model instead since they work right out of the box.

#132 OFFLINE   P Smith

P Smith

    Mr. FixAnything

  • Registered
  • 19,845 posts
  • LocationMediterranean Sea
Joined: Jul 25, 2002

Posted 21 February 2010 - 04:16 PM

Let him do that experiment, we will know soon how it would be finished. Perhaps he is smart enough to fight with 'black box' - DTV's Linux flavor.
If he will find a solution, that would benefit all prospective DVR owners.

I would add to that tests - try to stick close to DVR partitioning as you could, usually ppl who wrote internal verification 'correct-incorrect', included tight control of sizes/boundaries/parameters of mkfs. If some bit is off - whole disk will be repartitioned and formatted.

#133 OFFLINE   zackboll

zackboll

    Cool Member

  • Registered
  • 14 posts
Joined: Feb 20, 2010

Posted 21 February 2010 - 04:21 PM

FYI, my previous post appears to have worked and my DVR is functioning with the EARS drive.

I couldn't really return the drive where I bought it and I didn't really trust adding it to my MDADM raid as I don't really trust this early adoption drive. I suspect that in the coming months, we will begin to see less of the 512byte drives and more of the 4kib drives. Hope these posts are able to help someone out.

#134 OFFLINE   zackboll

zackboll

    Cool Member

  • Registered
  • 14 posts
Joined: Feb 20, 2010

Posted 21 February 2010 - 04:24 PM

Let him do that experiment, we will know soon how it would be finished. Perhaps he is smart enough to fight with 'black box' - DTV's Linux flavor.
If he will find a solution, that would benefit all prospective DVR owners.

I would add to that tests - try to stick close to DVR partitioning as you could, usually ppl who wrote internal verification 'correct-incorrect', included tight control of sizes/boundaries/parameters of mkfs. If some bit is off - whole disk will be repartitioned and formatted.


I would not blame this on the writers of the internal partitioning scheme, this hard-drive does not report the correct sector size via hdparam which is why linux has trouble with this drive. I suppose a firmware update could fix this, though i doubt we will see this from WD and only the next gen will be correct.

#135 OFFLINE   zackboll

zackboll

    Cool Member

  • Registered
  • 14 posts
Joined: Feb 20, 2010

Posted 21 February 2010 - 10:22 PM

I have started to notice lagging in the Menu of the DVR. I think I am ready to give up and have ordered the WD 2TB EADS model. Perhaps I will create a partition on my EARS model to use as a spare drive in my mdadm raid.

Does anyone know what directv puts on the first partition? I am going to try an experiment of 4kib aligning partition 1 (517 MB partition) when upgrading to my 2TB drive to see if that is causing the menu lags.

From what I can gather, partition 2 is the xfs data partition and partition 3 is the real time device partition.

#136 OFFLINE   P Smith

P Smith

    Mr. FixAnything

  • Registered
  • 19,845 posts
  • LocationMediterranean Sea
Joined: Jul 25, 2002

Posted 22 February 2010 - 01:29 AM

Part1 should be swap.

#137 OFFLINE   zackboll

zackboll

    Cool Member

  • Registered
  • 14 posts
Joined: Feb 20, 2010

Posted 22 February 2010 - 05:52 PM

ok, then this drive might just work. I have already aligned partition 2 and 3 by manually creating them. If I move partition 1 to start 1 sector later, it should also be 4 kib aligned. I am not sure what the RAM specs of the HR21 are, but this could explain the laggy menu, if it requires going to swap often.

#138 OFFLINE   gmc9512

gmc9512

    Mentor

  • Registered
  • 37 posts
Joined: Aug 19, 2006

Posted 25 February 2010 - 10:22 AM

Need help please. I've tried the copy from my HR20-700 to a WD20EADS drive several times and get an error message at the same point every time. I don't have SATA 0 port on my pc so I used SATA 1 port which has the HDD to the computer and the next one on the board is SATA 2. Do I need to enter different command prompts if not using SATA 0? Gpart shows the devices properly. Here are some screen shots up to the error.

Attached Thumbnails

  • phpjhL6iaAM[1].jpg
  • phpu1EpBIAM[1].jpg
  • phppRK4TRAM[1].jpg
  • phpRyJKHVAM[1].jpg
  • phppiC6zsAM[1].jpg

_____________________________________
Slimline 3 Dish
Channel Master 4228 8 Bay Antenna
Whole home DVR Setup
HR24-500 Networked To Toshiba 50'' Projection
HR20-700 networked To Sony KDL- 55HX800
HR24-500 networked To Sony KDL-55HX800
HR20-700 To Sharp 42" Lcd

All are hard wired to linksys router.
Windstream DSL 6 Mbps Down, 1 Mbps Up

Dell XPS M1530

Iphone 4 verizon

#139 OFFLINE   P Smith

P Smith

    Mr. FixAnything

  • Registered
  • 19,845 posts
  • LocationMediterranean Sea
Joined: Jul 25, 2002

Posted 25 February 2010 - 10:41 AM

Post result of 'df' cmd after mounts.
Also you mistyped the command "xfsdump -J - /mnt/hr20 | xfsrestore -J - /mnt/fap" - see those spaces after each "-J" parameter ?

#140 OFFLINE   gmc9512

gmc9512

    Mentor

  • Registered
  • 37 posts
Joined: Aug 19, 2006

Posted 25 February 2010 - 12:03 PM

Post result of 'df' cmd after mounts.
Also you mistyped the command "xfsdump -J - /mnt/hr20 | xfsrestore -J - /mnt/fap" - see those spaces after each "-J" parameter ?



Thanks, I didn't see the extra spaces. It seems to be copying now...keeping my fingers crossed.
_____________________________________
Slimline 3 Dish
Channel Master 4228 8 Bay Antenna
Whole home DVR Setup
HR24-500 Networked To Toshiba 50'' Projection
HR20-700 networked To Sony KDL- 55HX800
HR24-500 networked To Sony KDL-55HX800
HR20-700 To Sharp 42" Lcd

All are hard wired to linksys router.
Windstream DSL 6 Mbps Down, 1 Mbps Up

Dell XPS M1530

Iphone 4 verizon




Protected By... spam firewall...And...