LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 08-24-2001, 08:10 AM   #1
maros
LQ Newbie
 
Registered: Aug 2001
Posts: 2

Rep: Reputation: 0
Question identifying controller type of given hard drive (scsi or ide)


I'm trying to code a small tool in C for identifying the type of controller associated with a given drive in DOS. Specifically I'm trying to automate generation of a LOADLIN command line and I need the program to be able to identify whether the root will be (for example) a /dev/hda device (IDE) or a /dev/sda device (SCSI). Presumably this answer can be derived from something stored in memory. I just need to know where to find it and how the info is formatted. Thanks in advance for any help you can provide.
 
Old 08-24-2001, 10:51 PM   #2
crabboy
Moderator
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,822

Rep: Reputation: 120Reputation: 120
I would guess that the kernel source code will have the answer to your question. Try greping out patterns that you see in the dmesg output when your drives initalize and take a look at the source that writes the messages.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Second Hard Drive IDE vs SCSI OrganicX General 7 01-17-2006 07:23 AM
GRUB or LILO boot to SCSI drive on SCSI system w/ IDE card mkl838 Linux - General 1 03-06-2005 09:01 PM
How to config ide-scsi on hard drive david_deng Red Hat 2 09-14-2004 06:07 PM
SCSI controller and 200gb hard drive zetsui Linux - Hardware 8 09-23-2003 04:47 PM
ide hard dsik controller suggestion elbe3321 Linux - Hardware 2 07-28-2003 06:37 AM


All times are GMT -5. The time now is 01:50 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration