Monday, July 11, 2011

Mounting and Filesystem

The concept of devices - mount point and filesystem.

Mounting a Filesystem with the mount Command

Lets look at the process of mounting a floppy disk from the command line:

$ su
# mount -t vfat /dev/fd0 /media/floppy


The mount command loads a device´s filesystem into our servers filesystem.
The floppy device at /dev/fd0, and the devices filesystem is loaded in to /media/floppy mount point. We also need to tell Linux what kind of filesystem it needs to expect, in this case its a FAT32 filesystem (vfat).

Before removing a floppy we could unmount it, thereby removing it from the filesystem We can do so using the unmount command.

$ unmount /media/floppy

No comments:

Post a Comment