Free web hosting with ftp - 158Part IIRunning the ShowIf you want to add
158Part IIRunning the ShowIf you want to add an additional local disk or partition, you can create an entry forit in the /etc/fstabfile. See Chapter 26 for information on mounting Samba, NFS, and other remount file systems from /etc/fstab. Using the mount Command to Mount File SystemsLinux systems automatically run mount -a(mount all file systems) each time youboot. For that reason, you generally use the mountcommand only for special situa- tions. In particular, the average user or administrator uses mountin two ways: .To display the disks, partitions, and remote file systems that are currentlymounted. .To temporarily mount a file system. Any user can type mount(with no options) to see what file systems are currentlymounted on the local Linux system. The following is an example of the mountcom- mand. It shows a single hard disk partition (/dev/hda1) containing the root (/) filesystem, and proc and devpts file system types mounted on /procand /dev, respec- tively. The last entry shows a floppy disk, formatted with a standard Linux file system(ext3) mounted on the /mnt/floppydirectory. $ mount/dev/hda3 on / type ext3 (rw) none on /proc type proc (rw) none on /sys type sysfs (rw) none on /dev/shm type tmpfs (rw) /dev/hda2 on /boot type ext3 (rw) none on /dev/pts type devpts (rw,gid=5,mode=0620) /dev/fd0 on /mnt/floppy type ext3 (rw) The most common devices to mount by hand are your floppy disk and your CD-ROM. However, depending on the type of desktop you are using, CD-ROMs and floppydisks 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 aCD music player or software package installer to handle the data on the medium.) Mounting Removable MediaIf you want to mount a file system manually, the /etc/fstabfile helps make it simpleto mount a floppy disk or a CD-ROM. In some cases, you can use the mountcommandwith a single option to indicate what you want to mount, and information is taken fromthe /etc/fstabfile to fill in the other options. There are probably already entriesin your /etc/fstabfile to let you do these quick mounts in the following two cases: .CD-ROM If you are mounting a CD-ROM that is in the standard ISO 9960 for- mat (as most software CD-ROMs are), you can mount that CD-ROM by placingit in your CD-ROM drive and typing the following: # mount /mnt/cdrom10_