LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-22-2006, 03:19 PM   #1
esuparno
LQ Newbie
 
Registered: Nov 2006
Posts: 3

Rep: Reputation: 0
How to know number/types of drives and NIC?


Hi all,

I hope I post in the correction forum.

I need to know how many number/types of drives (sata or ide) and NIC card for a clean new installation.
OS: centos 4.4_64 bit

how do I do that?
1. read off BIOS?
how? if I need to write script to do that, what command do invoke to call BIOS information?

2. read off dmesg?
how do i do that if the drives is a clean installation?


3. if there is a better solution, please help.

thanks so much,
esuparno
 
Old 11-22-2006, 03:33 PM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 57
Quote:
Originally Posted by esuparno
Hi all,

I hope I post in the correction forum.

I need to know how many number/types of drives (sata or ide) and NIC card for a clean new installation.
OS: centos 4.4_64 bit

how do I do that?
1. read off BIOS?
how? if I need to write script to do that, what command do invoke to call BIOS information?
The BIOS can show this by a number of means in most cases, the easiest to use the key for your system to enter into the BIOS (maybe the 'DEL' key or F2 key) when the very first splash screen is displayed at power on.

Quote:
3. if there is a better solution, please help.
Boot the system using the Installation media into rescue mode by typing 'linux rescue' minus the single quotemarks when the CentOS menu screen is displayed.

When done booting use the commands;

lspci -v
fdisk -l


thanks so much,
esuparno[/QUOTE]
 
Old 11-22-2006, 03:51 PM   #3
esuparno
LQ Newbie
 
Registered: Nov 2006
Posts: 3

Original Poster
Rep: Reputation: 0
Thank you for the answer.

Maybe I did not explain too clearly.

I want to do a new "clean" custom installation by having multiple kickstart files.
when the computer boot from a CD, it will automatically read off "appropriate" kickstart file without having user to touch the keyboard (unattended).

For example, machine has 2 sata drives.
I have kickstart files such as sata.cfg, ide.cfg, etc.
in boot time, the machine will detect on its own which to choose base on number of drives and type of drives. Of course i will need to create a script to probe devices (using e.g. 'dmesg') or its even better if I connect to bios and read device information.
But how?
is there a way?


thanks,
esuparno
 
Old 11-22-2006, 04:36 PM   #4
esuparno
LQ Newbie
 
Registered: Nov 2006
Posts: 3

Original Poster
Rep: Reputation: 0
I think I found the solution.

I need to modify the image file of centos to call some script before calling kickstart.
But now, where can I find the source code (uncompiled) image for centos 4.4?

Is there a better solution?
Help is highly appeciated


thanks,
esuparno
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Maximum number of hard drives in OpenBSD? Gethyn *BSD 2 07-10-2006 05:43 PM
Number of hard disks/drives info? mali Linux - Enterprise 3 01-10-2005 04:59 PM
maximum number of Hard drives Spyder_doo Linux - Hardware 5 08-19-2004 03:46 PM
why there is a need for minor number and major number for monitor/keyboard in pc? tripathi Solaris / OpenSolaris 1 11-07-2003 10:36 AM
number of hard drives on a network sadiboyz Linux - Software 0 08-11-2003 05:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:48 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration