LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 04-29-2010, 10:25 PM   #1
hbackus
LQ Newbie
 
Registered: Jan 2010
Location: United States
Distribution: OpenSUSE
Posts: 2

Rep: Reputation: 0
directories, file systems, and mount points


How can you tell what directory is on what file system or mount point.

example:
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
/home/ccsmith

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?

Thanks
 
Old 04-29-2010, 11:13 PM   #2
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 248Reputation: 248Reputation: 248
df -h /home/ccsmith
 
Old 04-30-2010, 02:55 PM   #3
hbackus
LQ Newbie
 
Registered: Jan 2010
Location: United States
Distribution: OpenSUSE
Posts: 2

Original Poster
Rep: Reputation: 0
Thumbs up 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.
 
  


Reply

Tags
df, directory, file, system


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Rebuilt RAID array with old mount points present; file system check fails on boot... mvb187 Linux - Software 3 12-04-2009 08:38 AM
How to Mount bin and sbin directories as readonly mounted file systems Larry James Fedora 8 10-21-2008 11:40 AM
Mount points on 2 Linux systems chasegger Linux - Newbie 2 07-03-2008 02:26 PM
Partitioning: File systems and Mount points Ice Dragon Linux - Newbie 3 03-11-2004 03:00 PM
Mount Points In File System pankajtakawale Linux - Newbie 2 10-08-2003 10:27 AM


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

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration