[ale] File help

Jeff Lightner jlightner at water.com
Mon Mar 10 12:03:49 EDT 2008


df <filename>

Should show you the filesystem information for the file which would
include the device on which you mounted.  I gather from what you wrote
you're mounting partitions rather than using software RAID metadisks,
LVs or loopbacks.

 

________________________________

From: ale-bounces at ale.org [mailto:ale-bounces at ale.org] On Behalf Of
Joshua Kite
Sent: Monday, March 10, 2008 11:16 AM
To: Atlanta Linux Enthusiasts
Subject: [ale] File help

 

Hello all,

I'm hoping that there's a simple answer to this question.

Is there a command which identifies the physical drive on which a
particular file is located?

Due to the way that my system has grown (and the fact that it's a home
server administered by me and not a professional), I have four drives
hda1, hdb1, hdc1, and hdd1.  I may have /home/me mounted on hda1, but I
may have created an entry in fstab so that /home/me/somedirectory is
actually mounted on hdb1.  I'm wondering if I can query a file in
/home/me/somedirectory to determine that it is on hdb1 without having to
sift through fstab to figure out where it is.

Thank you for your help,

Josh Kite
----------------------------------
CONFIDENTIALITY NOTICE: This e-mail may contain privileged or confidential information and is for the sole use of the intended recipient(s). If you are not the intended recipient, any disclosure, copying, distribution, or use of the contents of this information is prohibited and may be unlawful. If you have received this electronic transmission in error, please reply immediately to the sender that you have received the message in error, and delete it. Thank you.
----------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.ale.org/pipermail/ale/attachments/20080310/1e8c412f/attachment.html 


More information about the Ale mailing list