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

"jdow" <[email protected]>
Newsgroups gmane.linux.redhat.release.enigma
Message-ID <[email protected]>
From: "Oisin C. Feeley" <[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.

Easier
which <programname>
df <program's path from the which results>

eg
[YYYY@XX ~]$ which Mail
/usr/bin/Mail
[YYYY@XX ~]$ df /usr/bin
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/hda9              5044156   2351092   2436832  50% /usr
[YYYY@XX ~]$

This has the handy side effect of telling you some additional useful data.

{^_-}
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.