-   Linux - Newbie (
-   -   directories, file systems, and mount points (

hbackus 04-29-2010 10:25 PM

directories, file systems, and mount points
How can you tell what directory is on what file system or mount point.

Filesystem Size Used Avail Use% Mounted on
/dev/sda3 4.9G 2.7G 2.0G 59% /
/dev/sda1 99M 29M 65M 31% /boot
none 131M 0 131M 0% /dev/shm
/dev/sda2 2.0G 110M 1.8G 6% /var/log

bash-2.05b$ pwd

I see there is a file system /dev/sda3 mounted on '/' with 2GB available
But how do I know that /home/ccsmith is also on /dev/sda3. I can tell when I copy files and the available space on '/' shrinks in size.

I am looking for away to tell what mount point a directory is on before I copy files. I was copying files and filled up the file system because I did not understand what file system the directory belonged too.

Truely a newbie question right? :o


smoker 04-29-2010 11:13 PM

df -h /home/ccsmith

hbackus 04-30-2010 02:55 PM

forest in the way of the trees
Your compassion and understanding is a shining example for all.;)

Oh, and thanks.. I never would have thought to use a path after the df command.

All times are GMT -5. The time now is 11:03 AM.