Re: How to locate which hard drive having certain program?

"Oisin C. Feeley" <[email protected]>
Newsgroups gmane.linux.redhat.release.enigma
Message-ID <[email protected]>

On Wed, 12 Mar 2003, HL wrote:

>Just accept a new Linux system. How to find how many hard drives the server
>has ? 

dmesg | egrep hd[:alpha:]

How to find which kind of programs is located which hard drives ?

which <programname>    \
                          +--------  match up the outputs from these
more /etc/fstab          /           to find which partition a prorgam
                                     is on.  The partitions are named 
                                     according to a scheme which allows
                                     you to tell which drive they are
                                     on.  hda == 1st IDE drive etc.

Read the documentation about partition/drive naming schemes and then you 
should have enough information with what I've given you here.

HTH,
Oisin Feeley
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.