Mount is used to make a file system available to the operating system.
In Unix and Linux, all devices are mounted somewhere under the same directory tree. The tree is rooted at "/", and all devices are mounted somewhere from that.
If you have only one hard drive partition, then that partition is mounted at "/" and all directories on that partition fall directly beneath "/".
However, if you have multiple partitions, then the first one is mounted at "/" and the others are mounted elsewhere. For example you might have a second partition that gets mounted as "/bigdisk" and all directories on that drive will be accessible as "/bigdisk/dir1", "/bigdisk/dir2", etc..
You can mount and unmount partitions (other than the root partition) at any time assuming they are not being used by a process.
Another common device that gets mounted/unmounted frequently is a CDROM device:
mount /dev/cdrom /mnt/cdrom
The above command says to mount the device /dev/cdrom and place its contents in the directory /mnt/cdrom. So if the CD that is in the CDROM has a file system and that filesystem has a directory named "bob", then after mounting the filesystem with the above command you would be able to:
cd /mnt/cdrom/bob
or
ls /mnt/cdrom/bob
Essentially it is telling Unix/Linux to make the contents of the CD available at /mnt/cdrom.
You can also unmount a filesystem using the "umount" command (notice the lack of an "n" in "umount"...aren't Unix folks so smart?!?!).
2006-11-28 16:45:04
·
answer #1
·
answered by RGB_Mars 3
·
0⤊
0⤋
the mount command on linux is used to mount seperate file systems, or hard disks, etc. Example. Before all these new additions to linux, usually the cd-rom was not mounted, so you would have to use mount -r /dev/hda /mnt/cdrom so you could cd to /mount/cdrom and view the contents of a disk that is in your cdrom.
Also, many people have a dual-boot setup, with both Windows and Linux operating systems installed on one machine, using partitions. Often the partitions are labeled /dev/hda1, /dev/hda2, /dev/hda3, and so on. Usually /dev/hda1 is for the primary linux partition, with /dev/hda7 being a linux swap partition, and another partition might be called /dev/hda3 which would be the partition Windows is installed on. People who would be using linux at a time, and would want to access files that are on the Windows partition, might mount the Windows partition, assuming its labeled /dev/hda3, with mount /dev/hda3 /mnt/windows, then they could type cd /mnt/windows and access their files that way. Otherwise they cannot access the data without mounting the logical drives.
2006-11-28 16:39:35
·
answer #2
·
answered by Anonymous
·
0⤊
0⤋
Its basically used for mounting the filesystem. This is similar to "Map drive" funda in MS Windows systems.
The mount command in Linux has extra facilities to mount different filesystems. Each file system can be mounted as a partition. You can mount Windows FAT, NTFS, and Linux's Ext2,3 file systems.
2006-11-28 16:42:59
·
answer #3
·
answered by srini007 2
·
1⤊
0⤋
In Linux you must mount inserted devices or disks before you be able to use them.
But some Desktop Managers, like Gnome, mount them for you when you try to open these devices.
So, use Gnome and do not bother to mount devices.
Be careful to umount the floppy disk before removing it from the drive.
2006-11-28 16:48:29
·
answer #4
·
answered by IZECKSOHN 3
·
0⤊
0⤋
you are able to no longer do this. As of impressive now, it particularly is impossible to do. although, Linux has a homestead windows emulator observed as WINE. it is not "authentic" homestead windows, yet you are able to run homestead windows courses (like Winamp) in Linux this way. To open WINE, merely variety "WINE" in a command line.
2016-10-04 12:16:24
·
answer #5
·
answered by ? 4
·
0⤊
0⤋
u can use dis to mount any unmounted disk
4 eg wen u insert a floppy disk
u needa mount it in order to use its content
2006-11-28 16:36:09
·
answer #6
·
answered by Vishal Kashyap 3
·
0⤊
0⤋