How to get device name with device id?

ashish mahamuni ashitpro at
Thu Mar 20 10:51:04 UTC 2008

Hi all,

I want to open a device(/dev/sda1, /dev/hda2 etc) in which my file exists.
I've used 'stat' system call to get the device id.

But now I want the device name from this id(st_dev).
How to get that one?
Do you have any other method to know the device name where my file resides?


      Bollywood, fun, friendship, sports and more. You name it, we have it on  

More information about the Ext3-users mailing list