> > > >> Hello, I'm looking for a way to get the list of the hard-drives an the
> > > >> list for all the partitions in each hard-disk. I think the is a system
> > > >> call to to this.
> > > >What about "fdisk -l" ?
> > > Or cat /proc/partitions ?
> > yes but I would like a function to do this (if there isn't, I
> > will code it)
> ??? You want to write a function to retrieve information which is
> already there ???
> Hey, this is Linux, not any other OS!
I want to write a C-Program that needs to know all hard-disk on the
current system and all partitions in each hard-disk;
I can write a function that reads /proc/partitions or maybe, if it
exists, I can use a function that does the same.
Sorry if it was not clear.
thanks to answer me
Quote:> --
> Josef M?llers (Pinguinpfleger bei FSC)
> If failure had no penalty success would not be a prize (T. Pratchett)
--
--------------------------------------------------------
Oce-Industries SA
1, rue Jean Lemoine
94015 Creteil cedex France
phone: 33-1-48988000 fax: 33-1-48985450
--------------------------------------------------------