From: Etienne Lorrain <etienne_lorrain@yahoo.fr>
To: linux-kernel@vger.kernel.org, linux-ide@vger.kernel.org
Cc: jeff@garzik.org
Subject: [RFC] ATA host-protected area (HPA) device mapper?
Date: Fri, 9 Jun 2006 12:47:59 +0200 (CEST) [thread overview]
Message-ID: <20060609104759.26001.qmail@web26913.mail.ukl.yahoo.com> (raw)
Jeff Garzik wrote:
> libata should -- like drivers/ide -- call the ATA "set max" command to
> fully address the hard drive, including the special "host-protected
> area" (HPA). We should do this because the Linux standard is to export
> the raw hardware directly, making 100% of the hardware capability
> available to the user (and, in this case, Linux-based BIOS and recovery
> tools).
> .....
> Comments? Questions? Am I completely insane? ;-)
Your hard disk is a lot more powerfull than what you think, only very old
hard disks only have ATA set max command. Nowadays, you can not only set the
maximum size of the hard disk by HPA, but you can also protect the change of
the HPA by password and even freeze the HPA (i.e. unmodifiable without power
cycle).
Changing the accessible size of the disk using the HPA is relatively safe
because the disk is still reporting it complete size, so the BIOS and Linux
do not have disks changing their size during use.
You can also read and write the configuration of the hard disk, and so hide
the fact that your hard disk has the HPA feature, change the real size of
the hard disk (so hide the end, and none of Linux or the BIOS will know the
hidden part) independantly of the HPA, make the HPA area appear as a complete
hard disk by offseting the LBA (for a safety recovery), manage the noise
level and protect the content of the disk by password.
All this is documented in the ATA specification, available for free at least
at http://www.t13.org/. If you want a (GPL only) source code showing how to
use it, have a look at the Gujin bootloader at http://gujin.org : in the way
I am using it, the bootloader installs itself into an HPA and keep a copy of
the current MBR in the HPA so is nearly indestructible, if the MBR is
overwritten another floppy or CDROM booting with Gujin will propose to restore
the MBR. You may want to run a DOS floppy, run the gujin provided dbgdisk.exe,
go to the setup menu and enable IDE probing, go back to the kernel selection,
and exit the dbgdisk.exe software by ^C. Then, have a look at the "A:\DBG" file
created to see what your hard disk is reporting.
Gujin can also install in a partition if there is no unused space after your
extended partition at the end of the disk to create a HPA.
Gujin also do the absolutely needed setup of the IDE hard disk which is to freeze
the password system _and_ the config system of all the IDE hard disks present, so
that no virus can put a random password and send you an E-mail with the address
where to send the money to get the password to unlock the hard disk and so access
again your data. Again, freezing means no more modifiable until next power cycle,
so IMO it is the job of the bootloader to setup the hard disk, before running
anything like Linux, a commercial OS, a bootable CDROM...
Gujin is assuming that your hard disk are accessible by the documented ATA ide
system, and some (or all?) IDE SATA interface have (volumtary?) broken
implementation: they are not IDE register compatible.
If you buy broken hardware, Gujin will not help you and cannot take care of the
details for you - it is another win{modem,video,sensor} device.
Etienne.
__________________________________________________
Do You Yahoo!?
En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible contre les messages non sollicités
http://mail.yahoo.fr Yahoo! Mail
next reply other threads:[~2006-06-09 10:48 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-09 10:47 Etienne Lorrain [this message]
2006-06-09 14:48 ` Jeff Garzik
2006-06-09 15:55 ` RE : " Etienne Lorrain
2006-06-09 17:22 ` Alan Cox
2006-06-09 20:10 ` RE : " Etienne Lorrain
2006-06-10 11:56 ` Etienne Lorrain
2006-06-11 15:48 ` Arjan van de Ven
2006-06-13 10:00 ` Etienne Lorrain
-- strict thread matches above, loose matches on Subject: below --
2006-06-09 20:41 Etienne Lorrain
[not found] <1149751860.29552.79.camel@forrest26.sh.intel.com>
[not found] ` <44883BAE.7070406@pobox.com>
[not found] ` <1149820043.5721.7.camel@forrest26.sh.intel.com>
[not found] ` <4488E6F6.10306@pobox.com>
2006-06-09 3:43 ` Jeff Garzik
2006-06-09 4:51 ` Matthew Frost
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060609104759.26001.qmail@web26913.mail.ukl.yahoo.com \
--to=etienne_lorrain@yahoo.fr \
--cc=jeff@garzik.org \
--cc=linux-ide@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®