xbox-scene.com archived forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

xbox-scene.com forum restored.  registration disabled.  thanks to xboxexpert for the db dump and netham45 for cleaning it up!

Pages: 1 2 [3]

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

ldotsfan

  • Guest
Locking Hdd With Usb-(s)ata Adapter.
« Reply #30 on: May 12, 2011, 07:45:21 AM »


I get "HDIO_DRIVE_CMD(identify) failed: Invalid exchange"

This is using an IDE xbox HD with the JMicron JM20337/8 (USB->SATA+PATA, USB+SATA->PATA) adapter.

I'm gonna try some more experimenting on a computer tho now.

A quick Google seems to suggest kernel config problem, seems like live version of 10.10 and hdd install of 10.10 use different kernel .config?

This is the lsusb output for my adapter:
CODE

Bus 001 Device 005: ID 152d:2338 JMicron Technology Corp. / JMicron USA Technology Corp. JM20337 Hi-Speed USB to SATA & PATA Combo Bridge


Is yours the same?




Logged

xboxmods2977

  • Guest
Locking Hdd With Usb-(s)ata Adapter.
« Reply #31 on: May 12, 2011, 11:24:16 AM »


It appears to be the same
CODE
ubuntu@ubuntu:~$ lsusb
Bus 001 Device 002: ID 152d:2338 JMicron Technology Corp. / JMicron USA Technology Corp. JM20337 Hi-Speed USB to SATA & PATA Combo Bridge

My device number is the only thing that varies.




Edited by xboxmods2977, 12 May 2011 - 07:25 PM.


Logged

xboxmods2977

  • Guest
Locking Hdd With Usb-(s)ata Adapter.
« Reply #32 on: May 13, 2011, 07:08:14 AM »


OK. update:
I bit the bullet and set up ubuntu 10.10 on my laptop dual-booting it, and backtrack 4, just to test this stuff further and even with a clean install of ubuntu maverick, I get the same error as before.

So I guess maybe this doesn't work for IDE HD's? or I am missing something. Prerequisites? Kernel modules?

Just to confirm, I used the guide you posted in this thread but since I already had a fully working xbox HD, I skipped right to steps 12 and 13. Is this ok? I get the errors noted above when I try those 2 commands.

Something else I noticed. I can't copy and paste the commands directly or I get "permission denied", even after cd'ing to the hdm2.3 dir and sudo su'ing. I have to type them this way:
CODE
hdparm --security-eeprom-lock eeprom.bin /dev/sdb (sdb is my drive)


note that I had to leave out the "./" at the beginning.




Edited by xboxmods2977, 13 May 2011 - 03:17 PM.


Logged

ldotsfan

  • Guest
Locking Hdd With Usb-(s)ata Adapter.
« Reply #33 on: May 13, 2011, 08:59:08 PM »


My kernel details from uname: 2.6.35-28-generic-pae

The IDE hdd should work as well. While testing, I unlocked an IDE hdd with the same adapter.

Without the ./ in the command, it may be running the resident copy of hdparm in Maverick rather than the copy in the dir. Unless your shell env already has . in its $PATH

Can you try granting permission with chmod a+x hdparm in the hdm2.3 dir and run with the ./ prefix?




Logged

xboxmods2977

  • Guest
Locking Hdd With Usb-(s)ata Adapter.
« Reply #34 on: May 14, 2011, 06:32:56 PM »


Yep. Worked like a charm. So now, I am gonna go back to the live CD environment and see if maybe the whole reason it didn't work before was because I hadn't given the new hdparm execute permissions.  Thanks man. You're the shit! Keep up the good work!

EDIT: Nope. No live environments. Install only.




Edited by xboxmods2977, 15 May 2011 - 03:02 AM.


Logged

ldotsfan

  • Guest
Locking Hdd With Usb-(s)ata Adapter.
« Reply #35 on: May 15, 2011, 03:21:18 AM »


Great! Thanks to your testing, now we know this really works and the requirements for using it, an installed Ubuntu and the JMicron based adapter.

I'll update the earlier post with the chmod instruction to make things clearer.




Logged

ldotsfan

  • Guest
Locking Hdd With Usb-(s)ata Adapter.
« Reply #36 on: May 16, 2011, 09:33:49 PM »


This works under virtualization as well.

I executed Ubuntu Natty installed to hdd as guest OS in Virtualbox under Windows 7 host OS and was able to lock and unlock a stock seagate hdd with hdparm.






Logged

ldotsfan

  • Guest
Locking Hdd With Usb-(s)ata Adapter.
« Reply #37 on: May 18, 2011, 05:48:05 AM »


Smartmontools has better support for USB than hdparm.

Nevertheless hdparm should have SAT ATA pass-through as well as JMicron but lacking in Sunplus and Cypress.

I'll be interested to hear from testers with access to USB adapters using ASMedia, Initio, Oxford and other such chipsets.




Logged

sfgsgvs

  • Guest
Locking Hdd With Usb-(s)ata Adapter.
« Reply #38 on: August 27, 2011, 03:34:10 PM »


This works under virtualization as well.

I executed Ubuntu Natty installed to hdd as guest OS in Virtualbox under Windows 7 host OS and was able to lock and unlock a stock seagate hdd with hdparm.


Could you please upload a Virtualbox hard drive image like the one you used? It would be of great help for us that don't know how to install and setup Linux, and a big timesaver aswell if we all could use the same setup. Building drives works great using xboxhdm 1.9 in Virtual PC, I only need to be able to lock/unlock drives. It's kind of a hassle to dig out an old computer every time just for the locking/unlocking part wink.gif




Logged

sfgsgvs

  • Guest
Locking Hdd With Usb-(s)ata Adapter.
« Reply #39 on: August 29, 2011, 12:36:45 PM »


I think I got it setup the right way now through VirtualBox, but I can't lock or unlock the drives. If I try to lock/unlock a Seagate HDD from an old Xbox I get this error message:

CODE
The running kernel lacks CONFIG_IDE_TASK_IOCTL support for this device.
SECURITY_UNLOCK: Invalid argument


Does this mean my USB -> IDE/SATA-adapter isn't compatible, or is something else giving me this error? The chipset in my adapter is Genesys Logic GL830. ./hdparm -I /dev/sdb is working though and gives me the right model, serial number, firmware revision etc. ./hdparm -I /dev/sdb didn't work with another external USB HDD I tried, so I'm hoping something else (preferably something easy to fix) is wrong with my setup.




Logged

ldotsfan

  • Guest
Locking Hdd With Usb-(s)ata Adapter.
« Reply #40 on: March 16, 2012, 05:40:05 PM »


Could you please upload a Virtualbox hard drive image like the one you used?

Virtualbox images are available here: http://virtualboxes.org/images/ubuntu/




Logged

ldotsfan

  • Guest
Locking Hdd With Usb-(s)ata Adapter.
« Reply #41 on: August 25, 2012, 10:06:22 PM »


Mark K ( donut123 ) posted a patch against hdparm for non-ascii passwords in a file. I'll have a go at code merging the patch into the jmicron branch of hdparm since it's a logical fit. donut123's other comments for hdparm are equally interesting from xbox1 hdd security's perpective.




Logged

ldotsfan

  • Guest
Locking Hdd With Usb-(s)ata Adapter.
« Reply #42 on: August 25, 2012, 10:31:33 PM »


A list of devices with a good chance of being supported: those in the list using the flag -dusbjmicron for smartmontools. hdparm's jmicron support is based on similar code.




Logged
Pages: 1 2 [3]
 

Page created in 0.148 seconds with 15 queries.