Changes

Jump to: navigation, search

OPS235 Lab 4 - Fedora17

457 bytes removed, 00:28, 26 September 2012
Investigation 3: Manually Mounting / Unmounting Filesystems
== Investigation 3: Manually Mounting / Unmounting Filesystems ==
'''Perform this investigation on the VM named ''<u>fedora2fedora1</u>''.'''
So far, we have simply assumed that when the Fedora OS boots-up, that its file-system is automatically available. In this investigation, you will learn how file-systems (or portions of file-systems) can be mounted or "connected" to existing file-systems. You will also learn how to unmount (or "disconnect") portions of file-systems from existing file-systems.
# Boot-up your '''Fedora2''' VM.
# Open a terminal and login as root.
# Issue the command called '''mount''' . This command provides information relating to various partitions (logical volumes) and corresponding "mount points" (directories).
# Record the information from issuing the <code>mount</code> command for both '''lv_root''' and '''lv_home'''. What commands would issue Can you write the command that will quickly find just the line you're interested in from all the output of the mount command? You need to quickly obtain know this information?(from ULI101).# Create the directories /archive and /archive2# Issue the command commands '''umount mount /dev/vdb1 /archive''' and '''mount /dev/vdb2 /archive2'''. Did anything happen? Issue the '''mount''' command again. Is there any difference with the command output?# View Copy some files to /archive and /archive2, then unmount the two partitions. After the online man pages for unmount is successful - look at the [http://linuxmanpagestwo directories.comWhere did your files go?# Note that CD/man8/mountDVD disks also need to be mounted for you to access files on them.8.php mount] command. Issue Try mounting a DVD manually (without using the GUI) on our host - you'll need to use the <code>mount</code> command with arguments to "re-connect" , and know the device name of your drive (it'''s probably /dev/mapper/vg_fedora2-lv_archive''' to the '''/archive''' directory (refer to the section '''Linux Command Online Reference''' abovesr0).
{{Admon/note|File-System Type Option No Longer Required for Mount Command|When viewing examples online, you may notice that the -t option is used with the mount command to indicate the version or type of file-system to mount.<br />'''The -t option is no longer required for the mount command''', However, it can be used Do ou know how to restrict use the mount command so that it only mounts the filesystem ''if'' it of the type listed in the -t option.|}} <ol> <li value="7">Explain how the ''mount'' command would be useful for Linux system administration.</li> <li>Unmount the '''/archive''' directory.</li> <li>Issue a command to verify that he '''/archive''' directory has been unmounted.</li></ol> '''Answer the Investigation 3 observations / questions umount commands? Make notes in your lab log book.'''
== Investigation 4: How Partitions are Automatically Mounted Upon Boot-up ==

Navigation menu