However, depending on the type of desktop you are using, CDs and floppy disks may be mounted
for you automatically when you insert them. (In some cases, the autorun program may also run
automatically. For example, autorun may start a CD music player or software package installer to
handle the data on the medium.)
Mounting Removable Media
If you want to mount a file system manually, the /etc/fstab file helps make it simple to mount a
floppy disk or a CD. In some cases, you can use the mount command with a single option to indicate
what you want to mount, and information is taken from the /etc/fstab file to fill in the
169
Learning Basic Administration 4
other options. There are probably already entries in your /etc/fstab file to let you do these
quick mounts in the following two cases:
CD??”If you are mounting a CD that is in the standard ISO 9960 format (as most software
CD-ROMs are), you can mount that CD by placing it in your CD-ROM drive and
typing one of the following:
# mount /media/cd*
# mount /mnt/cdrom
By default, a CD is usually mounted on the /mnt/cdrom directory (Linux 2.4 kernels) or
a subdirectory of /media (Linux 2.6 kernels). (The file system type, device name, and
other options are filled in automatically.) To see the contents, type cd /mnt/cdrom or cd
/media/cd*, and then type ls.
Pages:
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392