-->
Previous | Table of Contents | Next |
Whenever a CD-ROM is to be made available to the system, it is mounted on the file system with a command like this:
mount type device mount_point
type is any special instruction that applies to the CD-ROM (such as USO9660 file system or read-only), device is the device name, and mount_point is where the CD-ROM contents are to be placed in the Linux file system. For example, to mount an ISO9660 (which is the standard for CD-ROM contents) CD on the first CD device /dev/cd0 to the mount point /usr/cdrom, you would issue this command:
mount -t ISO9660 /dev/cd0 /usr/cdrom
From then on, all queries to the /usr/cdrom directory and its subdirectories are steered to the CD-ROM and its contents. When you want to change the CD to another one, you should not just eject the first and insert the second (in fact, many CD-ROM drives will not allow you to do this if the disk is in use). Instead, you have to unmount the CD with the umount command, specifying either the mount point or the device. One of these two commands would unmount the CD-ROM mounted with the preceding command:
umount /dev/cd0 umount /usr/cdrom
Both commands accomplish the same task.
This chapter has looked at a few issues, including using the package management tools to add new software to your system and using multiple CD-ROM drives. This chapter rounds out the installation section of this book. From here, we move on to look at how you can use the Linux system youve just installed. You may want to bounce around and look up other useful information, instead of continuing on in sequence.
Previous | Table of Contents | Next |