Free web hosting with ftp - 164 Part II . Running the Show This
Tuesday, May 8th, 2007164 Part II . Running the Show This shows the basic format of the mount command you would use to mount a floppy disk. You can change msdos to any other supported file system type (described earlier in this chapter) to mount a floppy of that type. Instead of using floppy drive A: (/dev/fd0), you could use drive B: (/dev/fd1) or any other accessible drive. Instead of mounting on /mnt/floppy, you could create any other directory and mount the floppy there. Here are some other useful options you could add to the mount command: . -t auto If you aren t sure exactly what type of file system is contained on the floppy disk (or other medium you are mounting), use this option to indicate the file system type. The mount command will query the disk to try to ascertain what type of file system it contains. . -r If you don t want to make changes to the mounted file system (or can t because it is a read-only medium), use this option to mount it read-only. . -w This mounts the file system with read/write permission. Mounting a Disk Image in Loopback Another valuable way to use the mount command has to do with disk images. If you download a CD or floppy disk image from the Internet and you want to see what it contains, you can do so without burning it to CD or floppy. With the image on your hard disk, create a mount point and use the -o loop option to mount it locally. Here s an example: # mkdir /mnt/mycdimage # mount -o loop whatever-i386-disc1.iso /mnt/mycdimage In this example, the /mnt/mycdimage directory is created, and then the disk image file (whatever-i386-disc1.iso) residing in the current directory is mounted on it. I can now cd to that directory, view the contents of it, and copy or use any of its contents. This is useful for downloaded CD images from which you want to install software without having to burn the image to CD. When you are done, just type umount /mnt/cdimage to unmount it. Other options to mount are available only for specific file system types. See the mount manual page for those and other useful options. Using the umount Command When you are done using a temporary file system, or you want to unmount a permanent file system temporarily, use the umount command. This command detaches the file system from its mount point in your Linux file system. To use umount, you can give it either a directory name or a device name. For example: # umount /mnt/floppy
Note: In case you are looking for affordable webhost to host and run your servlet application check Vision mysql5 web hosting services