Mounting and unmounting media using Linux

The following section describes how to mount and unmount media using aLinux operating system.

Note: These procedures are based on a default installation of Red Hat Enterprise Linux ES 2.1. The file names, structures, and commands might be different for other versions of Red Hat Linux or other types of Linux operating systems.

Complete the following steps if the medium to be mounted is a CD:

  1. Make sure that the /mnt/cdrom directory exists on your server. If this directory does not exist, type mkdir /mnt/cdrom and then press Enter.
  2. To mount the CD, type mount /dev/scd0 –t iso9660 –o ro /mnt/cdrom and then press Enter.

Complete the following steps if the medium to be mounted is a diskette:

  1. Make sure that the /mnt/floppy directory exists on your server. If this directory does not exist, type
                         mkdir /mnt/floppy
                      
    and then press Enter.
  2. To mount the diskette, type
                         mount /dev/sda –o auto /mnt/floppy
                      
    and then press Enter.

Complete the following steps to unmount media:

  1. Type cd and then press Enter.
  2. Type one of the following commands:
    • If the medium to be unmounted is a CD, type
                                 umount /mnt/cdrom
                              
      and then press Enter.
    • If the medium to be unmounted is a diskette, type
                                 umount /mnt/floppy
                              
      and then press Enter.