Author Topic: Set-top box HDD rehab.  (Read 2530 times)

0 Members and 1 Guest are viewing this topic.

Offline shakalnokturnTopic starter

  • Super Contributor
  • ***
  • Posts: 2197
  • Country: fr
Set-top box HDD rehab.
« on: June 02, 2020, 09:11:10 am »
I have a couple of Western Digital 500GB WD5000LUCT disks pulled from set top boxes, unfortunately these run a specific firmware that prevents use elsewhere.

I don't care for the data that may be on the disks but would like to be able to use them in laptops or for backups, I've identified the WD5000LPLX and WD5000LPCX as being at least very physically similar.

Would it be as simple as getting the right "standard" firmware onto the SPI Flash or is it likely to have more twists in it than that?
Any chances of screwing the magnetic side of the disk control for good by trying the wrong FW?
 

Online tautech

  • Super Contributor
  • ***
  • Posts: 29364
  • Country: nz
  • Taupaki Technologies Ltd. Siglent Distributor NZ.
    • Taupaki Technologies Ltd.
Re: Set-top box HDD rehab.
« Reply #1 on: June 02, 2020, 10:17:16 am »
Goto WD and get one of their drive tools:
https://support.wdc.com/downloads.aspx?lang=en
Avid Rabid Hobbyist.
Some stuff seen @ Siglent HQ cannot be shared.
 

Offline Wuerstchenhund

  • Super Contributor
  • ***
  • Posts: 3088
  • Country: gb
  • Able to drop by occasionally only
Re: Set-top box HDD rehab.
« Reply #2 on: June 02, 2020, 01:01:33 pm »
I have a couple of Western Digital 500GB WD5000LUCT disks pulled from set top boxes, unfortunately these run a specific firmware that prevents use elsewhere.

I don't care for the data that may be on the disks but would like to be able to use them in laptops or for backups, I've identified the WD5000LPLX and WD5000LPCX as being at least very physically similar.

Would it be as simple as getting the right "standard" firmware onto the SPI Flash or is it likely to have more twists in it than that?
Any chances of screwing the magnetic side of the disk control for good by trying the wrong FW?

This is unlikely to work.

For once, just because they appear similar from the outside doesn't mean the drives use the same internals (the housing/chassis is often common across models). The WD5000LUCT is an AV Series drive with 5400rpm specifically aimed at DVR use, and quite often the hardware is very specific (very low power, very low noise, focus on stable sustained data rates instead of raw performance, and sometimes even with lack of support of certain SATA features). The WD5000LPCX is a 5400rpm desktop drive of the WD Blue Series and the WD5000LPLX is WD Black Series desktop drive with 7200rpm, both which are unlikely to use the same chipsets as the AV Series.

The other thing is that on may modern drives not always is the firmware in a ROM, but often parts or even all of it might be located on the magnetic media (the ROM then only contains software to initiate the firmware download from the platters).

Lastly, your issue might not be the firmware (the AV Series can, after all, be used as regular SATA drives), it's more likely that the drives have been firmware locked, which is a common thing on many DVR platforms to prevent people from directly accessing recordings,. thereby circumventing the settop box DRM.

If you're really sure it's a firmware issue then I would suggest looking for the AV Series firmware for that drive.
« Last Edit: June 02, 2020, 01:03:22 pm by Wuerstchenhund »
 

Offline Syntax Error

  • Frequent Contributor
  • **
  • Posts: 584
  • Country: gb
Re: Set-top box HDD rehab.
« Reply #3 on: June 02, 2020, 03:03:43 pm »
Although optimised for AV work, the specs of the WD500LUCT suggest it should work for any PC/MAC. A 'green' 5400rpm, so not the fastest, but with 16Mb buffer, quick enough for any file or media server on your network.  :-+

+ Use the utils to do a full erase and surface test.
« Last Edit: June 02, 2020, 03:34:28 pm by Syntax Error »
 

Offline shakalnokturnTopic starter

  • Super Contributor
  • ***
  • Posts: 2197
  • Country: fr
Re: Set-top box HDD rehab.
« Reply #4 on: June 02, 2020, 11:18:35 pm »
Thanks for the replies, it looks as if I may have posted too fast:
Of the two WD5000LUCT drives I have one is working as expected and accessible on the Windows 7 OS, the other shows up with correct name in device manager but is listed as "Unknown - Not initialized" in disk management. It cant be initialized from there.

Having read somewhere that this model was factory locked by WD to only allow use in AV equipment I fooled myself into thinking that another firmware would solve the problem.

I'll try the WD tools and see if they get me any further.
 

Offline Wuerstchenhund

  • Super Contributor
  • ***
  • Posts: 3088
  • Country: gb
  • Able to drop by occasionally only
Re: Set-top box HDD rehab.
« Reply #5 on: June 03, 2020, 12:59:01 pm »
Of the two WD5000LUCT drives I have one is working as expected and accessible on the Windows 7 OS, the other shows up with correct name in device manager but is listed as "Unknown - Not initialized" in disk management. It cant be initialized from there.

Having read somewhere that this model was factory locked by WD to only allow use in AV equipment I fooled myself into thinking that another firmware would solve the problem.

This suggests that the 2nd drive is either ATA locked (password locked) or might indeed use a modified firmware (which is possible, but unlikely because of the extreme price sensitivity of the settop box market).

Have you tried to access the drive under Linux? I also believe there are some brute-force tools for cracking hard disk passwords.
 

Online magic

  • Super Contributor
  • ***
  • Posts: 7170
  • Country: pl
Re: Set-top box HDD rehab.
« Reply #6 on: June 04, 2020, 01:52:37 pm »
Not familiar with Windows, but could it mean that there is simply no partition table on it?
 

Offline Jeroen3

  • Super Contributor
  • ***
  • Posts: 4172
  • Country: nl
  • Embedded Engineer
    • jeroen3.nl
Re: Set-top box HDD rehab.
« Reply #7 on: June 04, 2020, 01:58:44 pm »
Try "diskpart clean" or erase the first few mb it with killdisk.

The main difference is probably just the platter topology or seeking algorithm which is optimized for multi-threaded sequential read/writes instead of short random read/writes.

I suspect it will behave terrible in raid
« Last Edit: June 04, 2020, 02:02:14 pm by Jeroen3 »
 
The following users thanked this post: wraper

Offline Johnny10

  • Frequent Contributor
  • **
  • Posts: 900
  • Country: us
Re: Set-top box HDD rehab.
« Reply #8 on: June 04, 2020, 02:03:18 pm »
I have restored 2 of these drives from Direct TV boxes.
I used gParted on a Live Linux disk.
There are youTube videos on this.
This one looks similar to what I used.
The disks don't startup because they are in standby mode.

https://www.wikihow.com/Reformat-and-Use-a-Dish-Network-DVR-Hard-Drive-with-HDPARM-Tool

Did it a couple years back, same make and size drives.
« Last Edit: June 04, 2020, 02:28:02 pm by Johnny10 »
Tektronix TDS7104, DMM4050, HP 3561A, HP 35665, Tek 2465A, HP8903B, DSA602A, Tek 7854, 7834, HP3457A, Tek 575, 576, 577 Curve Tracers, Datron 4000, Datron 4000A, DOS4EVER uTracer, HP5335A, EIP534B 20GHz Frequency Counter, TrueTime Rubidium, Sencore LC102, Tek TG506, TG501, SG503, HP 8568B
 

Offline edy

  • Super Contributor
  • ***
  • Posts: 2387
  • Country: ca
    • DevHackMod Channel
Re: Set-top box HDD rehab.
« Reply #9 on: June 28, 2020, 07:11:52 am »
Wish I saw this post a few days ago when I gutted an old PVR/DVR cable box (see below). The drive was only 80gb so I didn't work too hard and ended up trashing it. I tried Gparted on Linux, at first it saw the drive and was going through a repartitioning to msdos, and froze. I tried to mount it again numerous ways but it kept saying read/write input/output errors. I tried wiping first and last part of drive writing all zeros. Nothing seemed to work, I attributed it to just being an old drive (circa 2004). Not a major loss but still would have enjoyed being able to "hack" this thing. Did I even have a chance or was I way out of my league?

« Last Edit: June 28, 2020, 07:14:19 am by edy »
YouTube: www.devhackmod.com LBRY: https://lbry.tv/@winegaming:b Bandcamp Music Link
"Ye cannae change the laws of physics, captain" - Scotty
 

Online magic

  • Super Contributor
  • ***
  • Posts: 7170
  • Country: pl
Re: Set-top box HDD rehab.
« Reply #10 on: June 28, 2020, 09:04:37 am »
Try to get SMART data from it.
 

Offline Halcyon

  • Global Moderator
  • *****
  • Posts: 5915
  • Country: au
Re: Set-top box HDD rehab.
« Reply #11 on: June 28, 2020, 11:06:55 pm »
Are you sure it's the firmware?

Some older power supplies provide 3.3 volts on a specific pin which causes the drive to never initialise, it's known as the "power disable feature". The fix is insulating (or cutting) that pin on the hard drive power connector, changing power supplies or using a power adapter/splitter cable that only supplies 12 and 5 volts to the drive. If you google the relevant keywords, there are plenty of articles and photos about this issue.

There is a document from WD which addresses this issue: https://documents.westerndigital.com/content/dam/doc-library/en_us/assets/public/western-digital/collateral/tech-brief/tech-brief-western-digital-power-disable-pin.pdf

From WD: Legacy SATA power cables used P3 (Pin 3) to supply 3.3V power to the HDD. The new feature uses P3 (Pin 3) to perform a hard reset. So if you plug a new drive into an old system... P3 (Pin 3) may be hard wired to keep the drive in “Hard Reset” mode, so that the drive will never spin up. Changing the power connector effectively removes power from P3 (Pin 3), and allows the drive to spin up normally.
 

Online NiHaoMike

  • Super Contributor
  • ***
  • Posts: 9204
  • Country: us
  • "Don't turn it on - Take it apart!"
    • Facebook Page
Re: Set-top box HDD rehab.
« Reply #12 on: June 29, 2020, 12:53:27 pm »
From WD: Legacy SATA power cables used P3 (Pin 3) to supply 3.3V power to the HDD. The new feature uses P3 (Pin 3) to perform a hard reset. So if you plug a new drive into an old system... P3 (Pin 3) may be hard wired to keep the drive in “Hard Reset” mode, so that the drive will never spin up. Changing the power connector effectively removes power from P3 (Pin 3), and allows the drive to spin up normally.
Sounds like bad design, what they should have done was make the reset active low with a pullup, so it has to be pulled to ground to do a reset.
Cryptocurrency has taught me to love math and at the same time be baffled by it.

Cryptocurrency lesson 0: Altcoins and Bitcoin are not the same thing.
 

Offline Halcyon

  • Global Moderator
  • *****
  • Posts: 5915
  • Country: au
Re: Set-top box HDD rehab.
« Reply #13 on: June 29, 2020, 10:18:41 pm »
From WD: Legacy SATA power cables used P3 (Pin 3) to supply 3.3V power to the HDD. The new feature uses P3 (Pin 3) to perform a hard reset. So if you plug a new drive into an old system... P3 (Pin 3) may be hard wired to keep the drive in “Hard Reset” mode, so that the drive will never spin up. Changing the power connector effectively removes power from P3 (Pin 3), and allows the drive to spin up normally.
Sounds like bad design, what they should have done was make the reset active low with a pullup, so it has to be pulled to ground to do a reset.

Well, just like Western Digital's attempt at hiding shingled magnetic recording on consumer drives, it's just another "feature".
 

Online NiHaoMike

  • Super Contributor
  • ***
  • Posts: 9204
  • Country: us
  • "Don't turn it on - Take it apart!"
    • Facebook Page
Re: Set-top box HDD rehab.
« Reply #14 on: June 30, 2020, 02:22:54 am »
Well, just like Western Digital's attempt at hiding shingled magnetic recording on consumer drives, it's just another "feature".
I thought it was Seagate who is infamous for slow SMR technology.
« Last Edit: June 30, 2020, 09:45:45 am by Halcyon »
Cryptocurrency has taught me to love math and at the same time be baffled by it.

Cryptocurrency lesson 0: Altcoins and Bitcoin are not the same thing.
 

Offline Halcyon

  • Global Moderator
  • *****
  • Posts: 5915
  • Country: au
Re: Set-top box HDD rehab.
« Reply #15 on: June 30, 2020, 09:45:55 am »
Well, just like Western Digital's attempt at hiding shingled magnetic recording on consumer drives, it's just another "feature".
I thought it was Seagate who is infamous for slow SMR technology.

Seagate and Toshiba both have SMR drives but I believe they included it in their specs. WD chose to omit it from technical specifications. Furthermore their WD Red "NAS" drives used SMR in their 2-6 TB models which causes problems with many RAIDs during rebuilds, particularly if you're using ZFS. This pissed a lot of people off. Only the Red Pro and Purple drives didn't use SMR, all the rest of their product series did (across various models).

The complete list of which WD drives use SMR is here: https://blog.westerndigital.com/wd-red-nas-drives/

Also, sorry for editing your post. The "Modify" and "Quote" buttons are next to each other.
« Last Edit: June 30, 2020, 09:48:57 am by Halcyon »
 

Offline Twoflower

  • Frequent Contributor
  • **
  • Posts: 742
  • Country: de
Re: Set-top box HDD rehab.
« Reply #16 on: June 30, 2020, 10:34:03 am »
A friend of mine tried to upgrade his set-top box with a new HDD. It turned out the box wasn't happy with the new drive but before complaining it set a ATA-drive password. So it was useless after that try.

The solution was a bit unorthodox: Connect the HDD to the set-top box, power the box up. Now disconnect only the data cable and connect the HDD data to the PC and clear the ATA password. That works because once the password is set it opens the drive until the next power down (or request via ATA command). Of course you need to be a bit careful to do that.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf