Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

Formatting HDD from a set-top-box (protected?)


  • Please log in to reply
8 replies to this topic

#1 grovoar4

grovoar4

  • Members
  • 4 posts
  • OFFLINE
  •  
  • Local time:07:29 AM

Posted 19 July 2018 - 03:08 PM

Hi guys!

 

Do you know if it's possible to format an HDD that came from a set-top-box (some Sagemcomm DVB-T receiver)?

It's a 320GB Hitachi drive (the details are in the screenshots).

 

The disk gets detected and shows up as not formatted, but the issue is that when I try to initialize it, I get the "I/O device error" (screenshots). I tried creating a partition via EaseUS Partition Master, but to no effect. The progress bar just doesn't move from 0%. 

I also tried doing bad sectors scan in HDTune Pro and every sector comes back as bad - but I assume this is because the drive must be somehow protected. I also can't do any read tests either.

So the question is: Is there a way to forcefully format such an HDD?

 

Thanks in advance!  :thumbup2:

Attached Files



BC AdBot (Login to Remove)

 


#2 JohnC_21

JohnC_21

  • Members
  • 24,019 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:01:29 AM

Posted 19 July 2018 - 04:02 PM

I have never done this procedure but check the below page. It may work for your drive also.

 

https://datarecovery.com/rd/how-to-unlock-dvr-hard-drives-for-normal-use-directv-dish-network/

 

Edit: make sure you are working on the correct disk. In Gparted disk names are different and selected in a dropdown box in the upper right of the window.

 

gparted-choose-device.jpg


Edited by hamluis, 19 July 2018 - 04:55 PM.
Fixed typo - Hamluis/


#3 mjd420nova

mjd420nova

  • Members
  • 1,800 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:10:29 PM

Posted 19 July 2018 - 05:47 PM

I've had few that were just like that and gave up on trying to recover them, nothing seemed to work.  I do know that the mfgrs have special units that look for a certain code from the controller to allow access from the correct hardware.  



#4 grovoar4

grovoar4
  • Topic Starter

  • Members
  • 4 posts
  • OFFLINE
  •  
  • Local time:07:29 AM

Posted 20 July 2018 - 08:57 AM

I have never done this procedure but check the below page. It may work for your drive also.

 

https://datarecovery.com/rd/how-to-unlock-dvr-hard-drives-for-normal-use-directv-dish-network/

 

Edit: make sure you are working on the correct disk. In Gparted disk names are different and selected in a dropdown box in the upper right of the window.

 

gparted-choose-device.jpg

Thanks for that article! With my HDD the PUIS is already disabled, so the issue lies somewhere else, I think. I had no luck with Gparted whatsoever, all I get is "error fsyncing/closing/dev/sda: input/output error". All options are locked.

So I tried the HDAT2 (screenshots), but I'm also not able to do anything there. The HDD doesn't accept any commands sent to it. I think the CDO freeze may be the issue.

 

 

I've had few that were just like that and gave up on trying to recover them, nothing seemed to work.  I do know that the mfgrs have special units that look for a certain code from the controller to allow access from the correct hardware.  

I think you may be right...

 

I found some other forum posts and someone suggested firing up the DVR, letting the HDD spin up and complete the power cycle and then hot-swapping the SATA cable - I wonder if it will unfreeze the CDO, or if there will be any change at all visible in HDAT2. If I manage to do it, I'll post the results.

Attached Files

  • Attached File  1.jpg   174.41KB   0 downloads
  • Attached File  2.jpg   134.23KB   0 downloads
  • Attached File  3.jpg   145KB   0 downloads

Edited by grovoar4, 20 July 2018 - 08:58 AM.


#5 JohnC_21

JohnC_21

  • Members
  • 24,019 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:01:29 AM

Posted 20 July 2018 - 10:19 AM

Take a look at the hdparm linux command and see if that works for you but I have my doubts. 

 

http://man7.org/linux/man-pages/man8/hdparm.8.html

 

https://www.stevenmaude.co.uk/posts/securely-erasing-frozen-hard-disks-with-hdparm

 

https://superuser.com/questions/642637/harddrive-wipe-out-hidden-areas-like-hpa-and-dco-also-after-malware-infectio


Edited by JohnC_21, 20 July 2018 - 10:25 AM.


#6 grovoar4

grovoar4
  • Topic Starter

  • Members
  • 4 posts
  • OFFLINE
  •  
  • Local time:07:29 AM

Posted 21 July 2018 - 06:16 AM

@John

I tried hdparm and still nothing. All I get back is either:

read() failed: Input/output error

or

SG_IO: bad/missing sense data, sb[]:  70 00 05 00 00 00 00 0a 04 51 40 00 21 04 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

SG_IO: bad/missing sense data, sb[]:  70 00 05 00 00 00 00 0a 04 51 40 01 21 04 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

The disk only responds to simple commands regarding info about status, but does not accept any security commands.

I just don't know enough about it. I'm just trying all the commands that I find on the internet that would erase the data, but all I get are the lines above.

Although, what's interesting is that it doesn't show as frozen or locked... I don't get it.

ubuntu@ubuntu:~$ sudo hdparm -I /dev/sda



/dev/sda:



ATA device, with non-removable media

    Model Number:       Hitachi HCC543232A7A380                 

    Serial Number:      E20342BM02L85P

    Firmware Revision:  ES2OA60W

    Transport:          Serial, ATA8-AST, SATA 1.0a, SATA II Extensions, SATA Rev 2.5, SATA Rev 2.6; Revision: ATA8-AST T13 Project D1697 Revision 0b

Standards:

    Used: unknown (minor revision code 0x0028)

    Supported: 8 7 6 5

    Likely used: 8

Configuration:

    Logical        max    current

    cylinders    16383    16383

    heads        16    16

    sectors/track    63    63

    --

    CHS current addressable sectors:    16514064

    LBA    user addressable sectors:   268435455

    LBA48  user addressable sectors:   625142448

    Logical/Physical Sector size:           512 bytes

    device size with M = 1024*1024:      305245 MBytes

    device size with M = 1000*1000:      320072 MBytes (320 GB)

    cache/buffer size  = 8192 KBytes (type=DualPortCache)

    Form Factor: 2.5 inch

    Nominal Media Rotation Rate: 5400

Capabilities:

    LBA, IORDY(can be disabled)

    Queue depth: 32

    Standby timer values: spec'd by Vendor, no device specific minimum

    R/W multiple sector transfer: Max = 16    Current = 16

    Advanced power management level: 254

    DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 udma5 *udma6

         Cycle time: min=120ns recommended=120ns

    PIO: pio0 pio1 pio2 pio3 pio4

         Cycle time: no flow control=120ns  IORDY flow control=120ns

Commands/features:

    Enabled    Supported:

       *    SMART feature set

            Security Mode feature set

       *    Power Management feature set

       *    Write cache

       *    Look-ahead

       *    Host Protected Area feature set

       *    WRITE_BUFFER command

       *    READ_BUFFER command

       *    NOP cmd

       *    DOWNLOAD_MICROCODE

       *    Advanced Power Management feature set

            Power-Up In Standby feature set

       *    SET_FEATURES required to spinup after power up

            SET_MAX security extension

       *    48-bit Address feature set

       *    Device Configuration Overlay feature set

       *    Mandatory FLUSH_CACHE

       *    FLUSH_CACHE_EXT

       *    SMART error logging

       *    SMART self-test

            Media Card Pass-Through

       *    General Purpose Logging feature set

       *    WRITE_{DMA|MULTIPLE}_FUA_EXT

       *    64-bit World wide name

       *    URG for READ_STREAM[_DMA]_EXT

       *    URG for WRITE_STREAM[_DMA]_EXT

       *    IDLE_IMMEDIATE with UNLOAD

       *    WRITE_UNCORRECTABLE_EXT command

       *    {READ,WRITE}_DMA_EXT_GPL commands

       *    Segmented DOWNLOAD_MICROCODE

       *    Gen1 signaling speed (1.5Gb/s)

       *    Gen2 signaling speed (3.0Gb/s)

       *    Native Command Queueing (NCQ)

       *    Host-initiated interface power management

       *    Phy event counters

       *    NCQ priority information

            Non-Zero buffer offsets in DMA Setup FIS

            DMA Setup Auto-Activate optimization

            Device-initiated interface power management

            In-order data delivery

       *    Software settings preservation

       *    SMART Command Transport (SCT) feature set

       *    SCT Write Same (AC2)

       *    SCT Error Recovery Control (AC3)

       *    SCT Features Control (AC4)

       *    SCT Data Tables (AC5)

Security:

    Master password revision code = 65534

        supported

    not    enabled

    not    locked

    not    frozen

    not    expired: security count

        supported: enhanced erase

    80min for SECURITY ERASE UNIT. 82min for ENHANCED SECURITY ERASE UNIT.

Logical Unit WWN Device Identifier: 5000cca785c12d4d

    NAA        : 5

    IEEE OUI    : 000cca

    Unique ID    : 785c12d4d

Checksum: correct



#7 JohnC_21

JohnC_21

  • Members
  • 24,019 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:01:29 AM

Posted 21 July 2018 - 08:09 AM

I haven't used hdparm enough to really get into it. I think the drive is permanently locked but I don't know why after looking at that output. I assume you tried the command to reset the drive. And you did set a Null password, if it allows you, before using the erase command?

 

-dco-restore

Reset all drive settings, features, and accessible capacities
back to factory defaults and full capabilities. This command
will fail if DCO is frozen/locked, or if a -Np maximum size
restriction has also been set. This is EXTREMELY DANGEROUS
and will very likely cause massive loss of data. DO NOT USE
THIS COMMAND.


Edited by JohnC_21, 21 July 2018 - 02:19 PM.


#8 grovoar4

grovoar4
  • Topic Starter

  • Members
  • 4 posts
  • OFFLINE
  •  
  • Local time:07:29 AM

Posted 21 July 2018 - 02:08 PM

Yeah I tried it. It returns this

SG_IO: bad/missing sense data, sb[]:  70 00 05 00 00 00 00 0a 04 51 40 00 21 04 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

I tried NULL, 32 spaces, 0000 - basically any master pass that I found on the internet in relation to Hitachi.... and nothing. :(

 

Thanks for your help anyway. I don't think I can do this, the only other steps I find are related to messing with the firmware and stuff like that, which just flies over my head...



#9 JohnC_21

JohnC_21

  • Members
  • 24,019 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:01:29 AM

Posted 21 July 2018 - 02:24 PM

Okay, no problem. Sorry, we couldn't get the drive erased. 






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users