Open main menu

CDOT Wiki β

Changes

OPS235 Lab 5 - Fedora17

1,333 bytes removed, 11:00, 30 January 2012
no edit summary
[[Category:OPS235]]{{Draft}}=OPS235 Lab 5 - Loopback Filesystems, ArchivesArchiving Files, Compiling Software Packages from Source=
[[Category:OPS235]][[Category:OPS235 Labs]]
==Objectives==
#To create and use loopback filesystems in read-write mode
#To create and use archive files (tar and tar.gz)
#Compiling software packages from source code#Customizing Customising file-system startupstart-up
==Instructions==
===Investigation 1: How do you create and use a filesystem in a regular file?=== {{Admon/note|Use fedora3|Perform these steps in the '''fedora3''' virtual machine.}} #Login using your Learn ID#Create an empty file that is exactly 3 MB in size:#*<code>dd if=/dev/zero of=/tmp/fstest bs=1k count=3072</code>#How does this command ensure that the file is 3 MB in size? What is in the file at first?#Create an ext3 filesystem within the newly-created file <code>/tmp/fstest</code>. Note the warning message/question that appears#Mount the filesystem (remember to use the loopback option; refer to Lab 1 if required). Use a mountpoint of your choosing.#Copy the files <code>/etc/services</code> and <code>/etc/protocols</code> to the filesystem mounted in the previous step#Unmount the filesystem#Test your filesystem to be sure that the files <code>/etc/services</code> and <code>/etc/protocols</code> were in fact copied into the filesystem within the file named <code>/tmp/fstest</code>. #How much space is left in that filesystem? (Hint: <code>df -h</code>). Make sure that your lab notes answer the Investigation 1 question. ===Investigation 2: How do you create an archive file?===
{{Admon/note|Use fedora3|Perform these steps in the '''fedora3''' virtual machine.}}
{{Admon/important | Warning! | Don't miss the '''.''' at the end of the <code>tar</code> commands below! It specifies what should go into the archive: the contents of the current directory.}}
#Compare the sizes of <code>/tmp/archive1.tar.gz</code> and <code>/tmp/archive2.tgz</code>. Why are they so close in size?
Answer the Investigation 2 question.
 ===Investigation 32: How do you restore files from an archive?===
{{Admon/note|Use fedora3|Perform these steps in the '''fedora3''' virtual machine.}}
#Create the directory <code>/tmp/extract1</code> and make it your current working directory (change into that directory).
#Compare the <code>README</code> file in this directory with the original file. Are they exactly the same?
Answer the Investigation 3 question.
===Investigation 43: How do you build software from source code?===
{{Admon/note|Use fedora2|Perform these steps in the '''fedora2''' virtual machine.}}
#Test <code>nled</code> to make sure it works.
Answer the Investigation 4 question.
===Investigation 54: How do we turn system services on and off?===
{{Admon/note|Use fedora2|Perform these steps in the '''fedora2''' virtual machine.}}
}}
Answer the Investigation 5 question.
===Investigation 65: How do we automatically mount a new partition in Fedora?===
{{Admon/note|Use your Fedora host |Perform these steps on the '''Fedora Host''' (f13host).}}
#Confirm that the partition mounted and copy some files to it.
Answer the Investigation 6 question.
==Completing the Lab==
13,420
edits