xbox-scene.com - your xbox news information source
Quick Links: Main Forums | Xbox360 Forums | Xbox1 Forums | PS3 Forums
Xbox-Scene Forum Help  Search Xbox-Scene Forums   Xbox-Scene Forum Members   Xbox-Scene Calendar

Giganews Usenet Offers: +1150 days binary retention, 99%+ Completion, and Unlimited Speed/Access!

360 ODD Emulators: X360 Key $99 | Wasabi360 FAT $99 | Wasabi360 Slim $99
C4E's iXtreme Burner MAX Drive: LiteOn iHAS124 DROPPED TO JUST $17


Welcome Guest ( Log In | Register )

 Forum Rules Rules
3 Pages V < 1 2 3 >  
Reply to this topicStart new topic
> Locking Hdd With Usb-(s)ata Adapter.
xboxmods2977
post May 12 2011, 07:24 PM
Post #16


X-S Freak
*****

Group: Members
Posts: 1144
Joined: 28-March 06
Member No.: 277234
Xbox Version: v1.0
360 version: none



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.

This post has been edited by xboxmods2977: May 12 2011, 07:25 PM
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
xboxmods2977
post May 13 2011, 03:08 PM
Post #17


X-S Freak
*****

Group: Members
Posts: 1144
Joined: 28-March 06
Member No.: 277234
Xbox Version: v1.0
360 version: none



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.

This post has been edited by xboxmods2977: May 13 2011, 03:17 PM
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
ldotsfan
post May 14 2011, 04:59 AM
Post #18


X-S Messiah
*******

Group: Dev/Contributor
Posts: 3098
Joined: 23-March 08
Member No.: 376711
Xbox Version: v1.1
360 version: unknown



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?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
xboxmods2977
post May 15 2011, 02:32 AM
Post #19


X-S Freak
*****

Group: Members
Posts: 1144
Joined: 28-March 06
Member No.: 277234
Xbox Version: v1.0
360 version: none



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.

This post has been edited by xboxmods2977: May 15 2011, 03:02 AM
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
ldotsfan
post May 15 2011, 11:21 AM
Post #20


X-S Messiah
*******

Group: Dev/Contributor
Posts: 3098
Joined: 23-March 08
Member No.: 376711
Xbox Version: v1.1
360 version: unknown



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.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
ldotsfan
post May 17 2011, 05:33 AM
Post #21


X-S Messiah
*******

Group: Dev/Contributor
Posts: 3098
Joined: 23-March 08
Member No.: 376711
Xbox Version: v1.1
360 version: unknown



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.

User is offlineProfile CardPM
Go to the top of the page
+Quote Post
ldotsfan
post May 18 2011, 01:48 PM
Post #22


X-S Messiah
*******

Group: Dev/Contributor
Posts: 3098
Joined: 23-March 08
Member No.: 376711
Xbox Version: v1.1
360 version: unknown



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.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
sfgsgvs
post Aug 27 2011, 11:34 PM
Post #23


X-S Enthusiast


Group: Members
Posts: 12
Joined: 2-November 09
Member No.: 422378



QUOTE(ldotsfan @ May 17 2011, 06:33 AM) *

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
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
sfgsgvs
post Aug 29 2011, 08:36 PM
Post #24


X-S Enthusiast


Group: Members
Posts: 12
Joined: 2-November 09
Member No.: 422378



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.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
ldotsfan
post Mar 17 2012, 01:40 AM
Post #25


X-S Messiah
*******

Group: Dev/Contributor
Posts: 3098
Joined: 23-March 08
Member No.: 376711
Xbox Version: v1.1
360 version: unknown



QUOTE(sfgsgvs @ Aug 28 2011, 06:34 AM) *

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

Virtualbox images are available here: http://virtualboxes.org/images/ubuntu/
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
ldotsfan
post Aug 26 2012, 06:06 AM
Post #26


X-S Messiah
*******

Group: Dev/Contributor
Posts: 3098
Joined: 23-March 08
Member No.: 376711
Xbox Version: v1.1
360 version: unknown



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.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
ldotsfan
post Aug 26 2012, 06:31 AM
Post #27


X-S Messiah
*******

Group: Dev/Contributor
Posts: 3098
Joined: 23-March 08
Member No.: 376711
Xbox Version: v1.1
360 version: unknown



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.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
aliaric
post Sep 2 2012, 06:05 PM
Post #28


X-S Enthusiast


Group: Members
Posts: 2
Joined: 2-September 12
Member No.: 465071
Xbox Version: v1.6
360 version: unknown



This looks really interesting. I have an Oxford chip and I will also get JMicron from dx.com
Hope you sure that this is work.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
ldotsfan
post Sep 3 2012, 02:42 PM
Post #29


X-S Messiah
*******

Group: Dev/Contributor
Posts: 3098
Joined: 23-March 08
Member No.: 376711
Xbox Version: v1.1
360 version: unknown



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

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

User is offlineProfile CardPM
Go to the top of the page
+Quote Post
ldotsfan
post Sep 6 2012, 02:40 PM
Post #30


X-S Messiah
*******

Group: Dev/Contributor
Posts: 3098
Joined: 23-March 08
Member No.: 376711
Xbox Version: v1.1
360 version: unknown



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

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.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post





3 Pages V < 1 2 3 >
Reply to this topicStart new topic

 

Lo-Fi Version Time is now: 25th May 2013 - 10:39 PM