Jump to content


Photo

Locking Hdd With Usb-(s)ata Adapter.


  • Please log in to reply
42 replies to this topic

#31 aliaric

aliaric

    X-S Enthusiast

  • Members
  • 2 posts
  • Xbox Version:v1.6
  • 360 version:unknown

Posted 08 September 2012 - 04:26 PM

I have demounted Seagate Free Agent Go board. I try to test it with your solution.

#32 ldotsfan

ldotsfan

    X-S Messiah

  • Dev/Contributor
  • PipPipPipPipPipPipPip
  • 3,100 posts
  • Xbox Version:v1.1
  • 360 version:unknown

Posted 09 September 2012 - 01:35 PM

I noticed the latest version of smartmontools had security freeze lock capability so I extended it to do the rest of the security feature set:

CODE

smartmontools-5.43 # ./smartctl --get=security /dev/sdc
smartctl 5.43 2012-06-30 r3573 [x86_64-linux-3.5.0] (local build)
Copyright (C) 2002-12 by Bruce Allen, http://smartmontools.sourceforge.net

ATA Security is:  Disabled, NOT FROZEN [SEC1]
smartmontools-5.43 # ./smartctl --set=security-setpass,XBOXSCENE /dev/sdc
PASSWORD XBOXSCENE
smartctl 5.43 2012-06-30 r3573 [x86_64-linux-3.5.0] (local build)
Copyright (C) 2002-12 by Bruce Allen, http://smartmontools.sourceforge.net

ATA Security setpass
smartmontools-5.43 # ./smartctl --get=security /dev/sdc
smartctl 5.43 2012-06-30 r3573 [x86_64-linux-3.5.0] (local build)
Copyright (C) 2002-12 by Bruce Allen, http://smartmontools.sourceforge.net

ATA Security is:  ENABLED, PW level MAX, not locked, not frozen [SEC5]
smartmontools-5.43 # ./smartctl --set=security-disable,XBOXSCENE /dev/sdc
PASSWORD XBOXSCENE
smartctl 5.43 2012-06-30 r3573 [x86_64-linux-3.5.0] (local build)
Copyright (C) 2002-12 by Bruce Allen, http://smartmontools.sourceforge.net

ATA Security disabled
smartmontools-5.43 # ./smartctl --get=security /dev/sdc
smartctl 5.43 2012-06-30 r3573 [x86_64-linux-3.5.0] (local build)
Copyright (C) 2002-12 by Bruce Allen, http://smartmontools.sourceforge.net

ATA Security is:  Disabled, NOT FROZEN [SEC1]


What this means is that all usb chipsets supported by smartmontools: sat, cypress, sunplus, jmicron are now available. It is also supported on various OS/platforms:

QUOTE

It should run on any modern Darwin (Mac OS X), Linux, FreeBSD, NetBSD, OpenBSD, Solaris, OS/2, Cygwin, QNX, eComStation or Windows system.

Windows and OS X are especially interesting. I will try to patch eeprom support before releasing the changes. I will try to release a Windows executable at a later stage.

Edited by ldotsfan, 09 September 2012 - 01:37 PM.


#33 shambles1980

shambles1980

    X-S Freak

  • Members
  • PipPipPipPipPip
  • 1,092 posts
  • Location:wales uk
  • Xbox Version:v1.2
  • 360 version:v4.0 (jasper)

Posted 09 September 2012 - 04:49 PM

keep up the good work smile.gif

#34 ldotsfan

ldotsfan

    X-S Messiah

  • Dev/Contributor
  • PipPipPipPipPipPipPip
  • 3,100 posts
  • Xbox Version:v1.1
  • 360 version:unknown

Posted 11 September 2012 - 04:11 PM

Windows 64-bit version with eeprom support.

CODE

D:\>smartctl.exe --set=security-eeprom-setpass,eeprom.bin /dev/sdc
smartctl 5.43 2012-06-30 r3573 [x86_64-w64-mingw32-win7-sp1] (local build)
Copyright (C) 2002-12 by Bruce Allen, http://smartmontools.sourceforge.net

ATA Security setpass

D:\>smartctl.exe --get=security /dev/sdc
smartctl 5.43 2012-06-30 r3573 [x86_64-w64-mingw32-win7-sp1] (local build)
Copyright (C) 2002-12 by Bruce Allen, http://smartmontools.sourceforge.net

ATA Security is:  ENABLED, PW level MAX, not locked, not frozen [SEC5]

D:\>smartctl.exe --set=security-eeprom-disable,eeprom.bin /dev/sdc
smartctl 5.43 2012-06-30 r3573 [x86_64-w64-mingw32-win7-sp1] (local build)
Copyright (C) 2002-12 by Bruce Allen, http://smartmontools.sourceforge.net

ATA Security disable


I'll be creating the 32bit version as well.


#35 ldotsfan

ldotsfan

    X-S Messiah

  • Dev/Contributor
  • PipPipPipPipPipPipPip
  • 3,100 posts
  • Xbox Version:v1.1
  • 360 version:unknown

Posted 12 September 2012 - 04:12 PM

1. Windows 32bit version with eeprom support compiled.
2. Linux version with eeprom support compiled.

An empty 8Gb stock FATX image compressed with 7zip is only 1.2MB. Combined with a disk cloning program of your choice(Acronis or HDD Raw Copy Tool etc) this opens up the possibility of formatting a xbox hdd entirely from Windows - provided you have a compatible USB/ATA adapter but now the list of supported models is much larger. You'll still need xplorer360 to copy files over though.

Edited by ldotsfan, 12 September 2012 - 04:13 PM.


#36 ldotsfan

ldotsfan

    X-S Messiah

  • Dev/Contributor
  • PipPipPipPipPipPipPip
  • 3,100 posts
  • Xbox Version:v1.1
  • 360 version:unknown

Posted 13 September 2012 - 02:42 PM

Uploaded Windows version of files to here.

You'll need a compatible usb/ata adapter, see list at smartmontools
Basic instructions:
1. Unzip files with 7-zip to a given folder, for example hdd folder. Copy eeprom.bin to this folder.
2. Restore 8gb.bin (empty 8GB FATX hdd image created by xboxdumper) to target hdd connected via usb adapter. Use raw mode or bit-level restore. Example of such a tool: HDD Raw Copy Tool. EDIT: Alternative method in the next post.
3. Copy desired files to target hdd with xplorer360.
4. Lock target hdd with these instructions by running the command below in Command Prompt with Administrative Rights. You can do a search for Command Prompt in Windows and right-click on the item for the "Run As Administrator" option.
a.
CODE

smartctl -i /dev/sdX

where sdX is target hdd. Make sure the output matches your expectations of the target hdd in terms of size and model.
Possible values of sdX: sda, sdb, sdc and so on. If you are using Windows 32 bit, use smartctl-w32 instead.
b. Then lock once identity is confirmed
CODE

smartctl --set=security-eeprom-setpass,eeprom.bin /dev/sdX

where sdX could be sda or sdb and so on, matching the value in part a.
c. Confirm hdd is locked
CODE

smartctl --get=security /dev/sdX

where sdX could be sda or sdb and so on, matching the value in part a.

Edited by ldotsfan, 17 September 2012 - 02:01 PM.


#37 ldotsfan

ldotsfan

    X-S Messiah

  • Dev/Contributor
  • PipPipPipPipPipPipPip
  • 3,100 posts
  • Xbox Version:v1.1
  • 360 version:unknown

Posted 17 September 2012 - 02:11 PM

Alternative method of creating a xbox hdd:

Option:
1. Shell Script: See this thread
2. Create.c. A Linux/Windows program that does the same thing. But you'll need smartctl to identify the right hdd on Windows:
CODE

smartctl -i /dev/pd#

where # is 0,1,2,3 and so on. Identifying the target hdd to be partitioned/formatted with FATX.
CODE

create #

# has to be the same number used in smartctl.

Edited by ldotsfan, 17 September 2012 - 03:20 PM.


#38 ldotsfan

ldotsfan

    X-S Messiah

  • Dev/Contributor
  • PipPipPipPipPipPipPip
  • 3,100 posts
  • Xbox Version:v1.1
  • 360 version:unknown

Posted 06 October 2012 - 07:50 AM

The versions uploaded were buggy when tested with a locked hdd from a xbox. I've cross-checked against the code from xbox linux and corrected the bug.

I will upload Windows and Linux versions once I've rebuilt them. Uploaded version 1.1 to here.

Edited by ldotsfan, 06 October 2012 - 04:59 PM.


#39 ldotsfan

ldotsfan

    X-S Messiah

  • Dev/Contributor
  • PipPipPipPipPipPipPip
  • 3,100 posts
  • Xbox Version:v1.1
  • 360 version:unknown

Posted 22 October 2012 - 03:17 PM

smartmontools version 6.0 was released on Oct 10. I have patched the security and eeprom features to this version as well and will update the executables for Windows and Linux.

#40 guileppc

guileppc

    X-S Enthusiast

  • Members
  • 1 posts

Posted 11 December 2012 - 01:21 AM

Hi guys. I came here because i only got Intel mobos so it's a no go to try locking drives with the Xcalibur boot cd.

I tried hdparm and smartctl using usb on my laptop but it didn't work (using Debian 6), both commands hanged. I tried on my Mac with Parallels and same problem, so it's my usb adapter.
Finally i tried with an Ubuntu Live CD (x64) and i managed to get the "smartctl --set=security-eeprom-setpass,eeprom.bin /dev/sdX" command working, but the drive is still not locked. The "funniest" thing is that hdparm launched on my laptop (Debian x86), but using my Live CD it keeps showing "command not found". Strange.
Really not easy. My XBox has already a modded drive but is only 8gb and i want to replace it with a 40gb.

I'm downloading a Debian x86 Live CD to test with hdparm. After that i think i won't have any more ideas. Anyone sees what i'm doing wrong ? (i know pretty much shell, but i'm totally new to XBox hacking)

Thanks wink.gif

#41 ldotsfan

ldotsfan

    X-S Messiah

  • Dev/Contributor
  • PipPipPipPipPipPipPip
  • 3,100 posts
  • Xbox Version:v1.1
  • 360 version:unknown

Posted 31 October 2013 - 01:25 PM

Version bump to 6.2 to be in sync with smartmontools. Grab files from here

#42 kezrwaw

kezrwaw

    X-S Enthusiast

  • Members
  • 2 posts

Posted 02 November 2013 - 01:09 PM

Hi. How can i unlock hdd if i have eeprom on my pc hdd?
and i can create new xbox hdd via usb jmicron adapter?

Edited by kezrwaw, 02 November 2013 - 01:52 PM.


#43 kezrwaw

kezrwaw

    X-S Enthusiast

  • Members
  • 2 posts

Posted 02 November 2013 - 07:30 PM

and disable option is not working




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users