Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 06-29-2012
Registered User
 
Join Date: Jun 2012
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Mounting File System

Hi Team ,

Team Can any give me a good explanation of mount file system.if we have do a df -k it show /var/orcl/abc/txt mounted on /var/orcl.

example :

Filesystem 1K-blocks Used Available Use% Mounted on
tmpfs 4021876 0 4021876 0% /dev/shm

Kindly explain me what does Filesystem,Mounted on Means in the above example .


Thanks,
Anudeep
Sponsored Links
    #2  
Old 06-30-2012
Lem Lem is offline
Registered User
 
Join Date: Jun 2012
Location: Lombardia, Italy
Posts: 179
Thanks: 5
Thanked 38 Times in 38 Posts
Quote:
Originally Posted by kkabc789 View Post
Filesystem 1K-blocks Used Available Use% Mounted on
tmpfs 4021876 0 4021876 0% /dev/shm

Kindly explain me what does Filesystem,Mounted on Means in the above example .
The first field shows the type of the filesystem. "tmpfs" is a virtual filesystem that uses a portion of your RAM[*]. So it's extremely fast (but volatile).

The second field shows how big the filesystem is: 4021876 * 1kB, so about 4GB. Be careful: this does NOT mean that the filesystem blocks are actually 1kB each. You told df to show dimension in 1k blocks, using the "-k" option.

Third field shows the number of used (1k) blocks. 0 means that the fs is empty.

Fourth field shows the number of available (1k) blocks. In your example, all blocks are empty and available.

Fifth field shows the how much the filesystem is used, in percentage. Again, 0% means empty.

Last field shows the mount point of this filesystem. This tmpfs filesystem is mounted on /dev/shm, which is a directory on your primary filesystem (that is on your root partition). Even if this directory is not empty on the disk (however any mountpoint should be empty), as long as another filesystem is mounted on it you can't see (nor access to) the content of this directory on the disk: you will see the content of the mounted filesystem instead.

If you write, for instance, to /dev/shm/filetest, you're not writing to one of your disks, but to your virtual filesystem in RAM.

Try:

Code:
dd if=/dev/zero of=/dev/shm/filetest bs=16M count=50

Fast, isnt'it?

[*] More info about tmpfs here:
http://www.kernel.org/doc/Documentat...tems/tmpfs.txt
Sponsored Links
    #3  
Old 06-30-2012
vbe's Avatar
vbe vbe is offline Forum Staff  
Moderator
 
Join Date: Sep 2005
Location: Switzerland - GE
Posts: 4,686
Thanks: 122
Thanked 264 Times in 253 Posts
Do you mind telling us on what platform and OS? I have doubts about your df -k output...
And next time use code tags and not fancy colors that doesnt help the search engines...
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Facts about mounting remote file system swmk UNIX for Dummies Questions & Answers 2 10-20-2008 11:09 PM
mounting file system /etc/vfstab panchpan Solaris 4 10-17-2007 02:39 AM
File system not mounting at bootup m223464 AIX 2 07-31-2007 11:48 AM
mounting windows(vfat) file system ajoy patel Solaris 1 03-04-2006 04:22 AM
Mounting an ISO As a file system in AIX murdaugh UNIX for Advanced & Expert Users 1 01-11-2002 03:32 AM



All times are GMT -4. The time now is 03:13 AM.