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

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



Greetings,
	Well, this sounds like a very odd situation, but the 'df' command with the
local directory should help:

debian:/usr/local/src$ df ./
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/hda4              5216348    634052   4317320  13% /usr

HTH,

Brooks

| 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
| 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?



Reply to: