xboxscene.org forums

Pages: [1] 2 3

Author Topic: Locking Hdd With Usb-(s)ata Adapter.  (Read 151 times)

ldotsfan

  • Archived User
  • Hero Member
  • *
  • Posts: 2072
Locking Hdd With Usb-(s)ata Adapter.
« on: September 03, 2012, 07:42:00 AM »

QUOTE

those in the list using the flag -dusbjmicron for smartmontools.

Logged

ldotsfan

  • Archived User
  • Hero Member
  • *
  • Posts: 2072
Locking Hdd With Usb-(s)ata Adapter.
« Reply #1 on: September 06, 2012, 07:40:00 AM »

QUOTE(ldotsfan @ Sep 3 2012, 09:42 PM) View Post

Only JMicron chipset is supported. Is Oxford chip mentioned? You did see this part of the post right

Turned out I'm wrong  tongue.gif I just locked a Western Digital Elements external hdd over usb with hdparm and this is straight from the smartmontools list under -dsat which means SCSI-ATA Translation. In a nutshell the list of supported chipsets now expands to all those listed under -dsat. The odds of the Oxford chip working increases accordingly.
Logged

aliaric

  • Archived User
  • Newbie
  • *
  • Posts: 1
Locking Hdd With Usb-(s)ata Adapter.
« Reply #2 on: September 08, 2012, 09:26:00 AM »

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

ldotsfan

  • Archived User
  • Hero Member
  • *
  • Posts: 2072
Locking Hdd With Usb-(s)ata Adapter.
« Reply #3 on: September 09, 2012, 06:35:00 AM »

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.

This post has been edited by ldotsfan: Sep 9 2012, 01:37 PM
Logged

shambles1980

  • Recovered User
  • Hero Member
  • *
  • Posts: 943
Locking Hdd With Usb-(s)ata Adapter.
« Reply #4 on: September 09, 2012, 09:49:00 AM »

keep up the good work smile.gif
Logged

ldotsfan

  • Archived User
  • Hero Member
  • *
  • Posts: 2072
Locking Hdd With Usb-(s)ata Adapter.
« Reply #5 on: September 11, 2012, 09:11:00 AM »

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.
Logged

ldotsfan

  • Archived User
  • Hero Member
  • *
  • Posts: 2072
Locking Hdd With Usb-(s)ata Adapter.
« Reply #6 on: September 12, 2012, 09:12:00 AM »

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.

This post has been edited by ldotsfan: Sep 12 2012, 04:13 PM
Logged

ldotsfan

  • Archived User
  • Hero Member
  • *
  • Posts: 2072
Locking Hdd With Usb-(s)ata Adapter.
« Reply #7 on: September 13, 2012, 07:42:00 AM »

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.

This post has been edited by ldotsfan: Sep 17 2012, 02:01 PM
Logged

ldotsfan

  • Archived User
  • Hero Member
  • *
  • Posts: 2072
Locking Hdd With Usb-(s)ata Adapter.
« Reply #8 on: September 17, 2012, 07:11:00 AM »

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.

This post has been edited by ldotsfan: Sep 17 2012, 03:20 PM
Logged

ldotsfan

  • Archived User
  • Hero Member
  • *
  • Posts: 2072
Locking Hdd With Usb-(s)ata Adapter.
« Reply #9 on: October 06, 2012, 12:50:00 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.

This post has been edited by ldotsfan: Oct 6 2012, 04:59 PM
Logged

ldotsfan

  • Archived User
  • Hero Member
  • *
  • Posts: 2072
Locking Hdd With Usb-(s)ata Adapter.
« Reply #10 on: October 22, 2012, 08:17:00 AM »

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.
Logged

ldotsfan

  • Archived User
  • Hero Member
  • *
  • Posts: 2072
Locking Hdd With Usb-(s)ata Adapter.
« Reply #11 on: October 31, 2013, 06:25:00 AM »

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

kezrwaw

  • Archived User
  • Newbie
  • *
  • Posts: 1
Locking Hdd With Usb-(s)ata Adapter.
« Reply #12 on: November 02, 2013, 12:30:00 PM »

and disable option is not working
Logged

Riggity Ryan

  • Archived User
  • Newbie
  • *
  • Posts: 2
Locking Hdd With Usb-(s)ata Adapter.
« Reply #13 on: August 10, 2015, 04:42:00 PM »

Pretty sad... it's 2015 and I go ahead and resurrect this topic.  Haha.

Logged

T2Steve

  • Archived User
  • Full Member
  • *
  • Posts: 215
Locking Hdd With Usb-(s)ata Adapter.
« Reply #14 on: August 11, 2015, 01:27:00 AM »

what kind of hard drive are you using? I'd be inclined to use xboxhdm to manually lock it. Does your box have a chip in it?

Logged
Pages: [1] 2 3