[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Finding out what partition/device a file is on?



On Wed, 2005-03-23 at 11:50 +0100, Nicos Gollan wrote:
> Hi,
> 
> A friend of mine brought up a nice little problem. He's working on a machine 
> that has three disks mounted to /usr (don't ask), and now he'd like to know  

3 disks?  Like with lvm, md, "mount --bind" or "mount --move"?

> what partition a certain file is on. So far, we've only found the "Device" 
> entry in stat, but that only gives a numeric value that doesn't have a 
> directly visible translation to anything mount can show.
> 
> Is there any existing tool that can answer the original question?

Wouldn't we have to know how the 3 disks are mounted to /usr before
answering your question?

-- 
-----------------------------------------------------------------
Ron Johnson, Jr.
Jefferson, LA USA
PGP Key ID 8834C06B I prefer encrypted mail.

"Since when do business goals (profit) come before values,
ethics, and decency?"
Dr. Laura Schlessinger
Since the time of the writing of the Old Testament...

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: