Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

why do i need to mout a file system ???

Status
Not open for further replies.

dotprofile

Programmer
Mar 18, 2003
5
US

why do i need to mount a file system after formatting it..
what i meant was.....why should i mount the file system on a directory and then accress it using that directory...
like i have mounted my slice c0d0s0 on /root and then i will use /root/myfilename to access a file on that file system..insted of using that why can't u say directly /dev/dsk/c0d0s0/myfilename.
 
i meant... what the extra adventage i am getting after mounting it on a directory...
or else what difficulty i will have if i do not mount the slice.
 
If you don't mount the slice, and you start putting files into the mount point, pretty soon you are going to fill up your root filesystem and you will probably come to a standstill.

You might want to check docs.sun.com and look for manuals on file systems. I think you need to get a better understanding of file systems, logical volume manager, etc.
 
The advantage is that you can change the device without having to change all your scripts and config files and everything else that refers to it.

For example, say you have a user home directory mounted at [tt]/export/home[/tt]. Say it's on a 2 Gig drive. When you start to run out of space, you just back up the files on it, unmount it, mount your new 1 Terabyte array at [tt]/export/home[/tt], then restore the files. Now everyone has 1 TB to play with and there are no scripts to change or config files to mess with.

The mount points are a logical reference to a physical device. This makes it easy to change the physical devices when you need to.

Plus, I don't think you CAN save something to [tt]/dev/dsk/c0t0d0s0[/tt]! On my systems, these are just links to block special devices in [tt]/devices[/tt]. They aren't directories. You can't save anything there.

Hope this helps.

 
The format command and newfs simply prepare the media for use. They interact with the disk at a hardware level but have no concept of files or directories. The OS is responsible for maintaining the contents of the filesystem in a hierarchical structure. There are some applications that deal with disk slices at a lower level (so called raw devices) such as databases where the database has its own I/O mechanism that bypasses that of the OS. These simply assign whole disk slices to a database or log files.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top