Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Any way to set the host protected area (HPA)?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
c00l.wave
Apprentice
Apprentice


Joined: 24 Aug 2003
Posts: 264

PostPosted: Tue Mar 19, 2013 4:28 pm    Post subject: Any way to set the host protected area (HPA)? Reply with quote

I want to try enabling a HPA on an external drive but unfortunately, hdparm depends on deprecated IDE modules which I can't get enabled.

I'm expecting something like:

Code:
# hdparm -N /dev/sdb
/dev/sdb:
 max sectors   = 65134/1953525168, HPA is enabled

But all I get is:

Code:
# hdparm -N /dev/sdd

/dev/sdd:
The running kernel lacks CONFIG_IDE_TASK_IOCTL support for this device.
 READ_NATIVE_MAX_ADDRESS_EXT failed: Invalid argument

Compiling IDE support as a module, loading it and re-attaching the USB drive did not help.

Kernel version is 3.6.11-gentoo, hdparm has been updated to 9.43 (latest available version). Is there any way to manipulate the HPA from modern kernels or do I have to use an old live CD from around 2009?
_________________
nohup nice -n -20 cp /dev/urandom /dev/null &
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54423
Location: 56N 3W

PostPosted: Tue Mar 19, 2013 7:19 pm    Post subject: Reply with quote

c00l.wave,

External drives USB/Fireware/eSATA, have always been on the SCSI software stack.
As well as hdparam, there is sdparam ... that may be worth a try.

Be warned that many USB/IDE or USB/SATA converters to not support all the commands you might need.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum