Username:
Password:
Linux Professional Institute: Level 2 Tutorials

Files & Filesystems / Creating & Configuring Filesystem Options

Subtitles of the Movie

Exam objective 2.203.3 has a weight of 3, and verifies that candidates are able to configure automount file systems. This includes configuring and mounting network files systems, also file systems for devices such as CD-ROMs. So far, we've dealt with file systems being mounted at boot time, or being mounted manually, but there is another way. You can set file systems so they are automatically mounted when needed. If a file system is not mounted and an attempt is made to access something on that file system it is automatically mounted. This can be used for network file systems and removable media, such as floppies and CD-ROMs. The daemon process that handles automatic mounting is called Automount. Kernel support is required and support for Automounting has been included in the Linux kernel since Version 2.2. The master file, the one that defines Automounts is named Automaster. And this is what it looks like. It comes with some example entries commented out. I added this last one. This is the name of the directory containing the directory to be used as the Mount point. This is the period of time after which the file system will be unmounted. If you don't access the file system for forty seconds, it unmounts. Here in the middle is the name of the file that defines the map points. Here, let me show you. This file also comes with some example entries that I've commented out. I added the two at the bottom. One for the floppy and one for the CD. This first field is the name of the mount point. This second is the file system and the set of mount flags, like those in FSTab. The third column is the identification of the device. This first example here is an example of a network device. The name of the device itself follows the colon. If there is only a colon in the entry it means the device is local. Don't create any mount directories. They will appear as you need them. If you use this command to start the daemon running, CDs and Floppies will mount automatically when you refer to them as the directories you named in the configuration. The file system used for CD-ROMs is ISO 9660. It has become a portable, IF read-only file system available in most operating systems. It is possible to create such files systems and one of the reasons for doing so is to create a CD image prior to burning a CD. The program that does it is MKISOFS. You give it a directory full of files and it creates an image, either as a file on an existing file system or as a file system on a device. This program has lots of options, so you can choose exactly how you would like to have your CD written, but the defaults do work. This example command would construct a CD image containing the files from the directory named My Files. The DD command is a very low-level copy command with options that give you control over how the data is converted from the input to the output. It can be made to change case, swap bytes, change the block size, and do other things. It will read from a device when nothing else will. It has proven, over the years, to be handy in data recovery. Configure some auto mounts. Install AutoFS and the example configuration files will also be installed. Set up your CD-ROM to be automatically mounted and use LS to look at its files and directories. Select a directory that is small enough to fit on a floppy and then format that floppy with the data as an ISO9660 file system. You will be able to mount the floppy because the file type is automatically detected. Look at the list of mounted file systems, then, to verify the file type.

Tutorial Information

Course: Linux Professional Institute: Level 2
Author: Arthur Griffith
SKU: 33894
ISBN: 1-934743-79-8
Release Date: 2008-07-21
Duration: 7.5 hrs / 113 lessons
Captions: Available on CD and Online University
Compatibility: Vista/XP/2000, OS X, Linux
QuickTime 7, Flash 8

VTC Sign up & Benefits

  • Unlimited Access
  • 70,000 Video Tutorials (14,250 free)
  • Video Available as Flash or QuickTime
  • Over 650 Courses
  • $30 for One Month Access
  • Multi-User Discounts Available