X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: Jim Michaels Newsgroups: comp.os.msdos.djgpp Subject: Re: get drive id string for ide/sata? Date: Thu, 15 Mar 2012 16:32:40 -0700 (PDT) Organization: http://groups.google.com Lines: 15 Message-ID: <18130523.80.1331854360105.JavaMail.geo-discussion-forums@pbij6> References: <99dc6164-e6fb-43b3-9381-2715c6b3c5d9 AT q11g2000vbu DOT googlegroups DOT com> NNTP-Posting-Host: 24.22.56.37 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1331854470 2103 127.0.0.1 (15 Mar 2012 23:34:30 GMT) X-Complaints-To: groups-abuse AT google DOT com NNTP-Posting-Date: Thu, 15 Mar 2012 23:34:30 +0000 (UTC) In-Reply-To: <99dc6164-e6fb-43b3-9381-2715c6b3c5d9@q11g2000vbu.googlegroups.com> Complaints-To: groups-abuse AT google DOT com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=24.22.56.37; posting-account=05hOMwoAAAB6R8xtiQKzEljSMzgOhVF1 User-Agent: G2/1.0 Bytes: 1804 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Wednesday, March 14, 2012 3:57:57 PM UTC-7, RayeR wrote: > I don't know what ID string you exactly mean but probably the ID in > drive firmware, so you have to send proper ATA command identify drive > to get structure with various info data about the drive. You need to > access drive controller directly via inportb/outportb functions to > read/write from/to IO space... something akin to Seagate ST225R the make and model number. something really nice would be the SATA or IDE drive and channel number. this sounds like it's going to be absolutely gigantic code... and I don't have any information to go by.