If you download a
CD or floppy disk image from the Internet and you want to see what it contains, you can do so
without burning it to CD or floppy. With the image on your hard disk, create a mount point and
use the -o loop option to mount it locally. Here??™s an example:
# mkdir /mnt/mycdimage
# mount -o loop whatever-i386-disc1.iso /mnt/mycdimage
In this example, the /mnt/mycdimage directory is created, and then the disk image file
(whatever-i386-disc1.iso) residing in the current directory is mounted on it. You can
now cd to that directory, view the contents of it, and copy or use any of its contents. This is useful
for downloaded CD images from which you want to install software without having to burn the
image to CD. You could also share that mountpoint over NFS, so you could install the software
from another computer. When you are done, just type umount /mnt/cdimage to unmount it.
Other options to mount are available only for specific file system types. See the mount manual
page for those and other useful options.
Using the umount Command
When you are done using a temporary file system, or you want to unmount a permanent file system
temporarily, use the umount command. This command detaches the file system from its
mount point in your Linux file system.
Pages:
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395