Difference between revisions of "User:Chris Tyler/OPS235 Practical 1 Practice"

From CDOT Wiki
Jump to: navigation, search
(Created page with 'Here is a practice exercise for OPS235 practical test #1: # Create the file <code>partitions.txt</code> containing a list of all of your partitions, as displayed by the <code>fd…')
 
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
Here is a practice exercise for OPS235 practical test #1:
+
Here is a sample exercise for OPS235 practical test #1:
  
 
# Create the file <code>partitions.txt</code> containing a list of all of your partitions, as displayed by the <code>fdisk</code> command.
 
# Create the file <code>partitions.txt</code> containing a list of all of your partitions, as displayed by the <code>fdisk</code> command.
# Create the file <code>lvm.txt</code> containing a list of your physical volumes, volume groups, and logical volumes.
+
# Create the file <code>lvm.txt</code> containing a list of your physical volumes, volume groups, and logical volumes, as displayed by the appropriate LVM commands, plus the amount of space used in each filesystem.
# Change the system configuration so that each newly-created user automatically has a file named "readme.txt" in their home directory containing a welcome message.
+
# Change the system configuration so that each newly-created user account automatically has a file named "readme.txt" in their home directory containing a welcome message.
 
# Extend your root filesystem by 100M.
 
# Extend your root filesystem by 100M.
# Create the file <code>resized-lvm.txt</code> containing a list of your physical volumes, volume groups, and logical volumes after the completing the previous step.
+
# Create the file <code>resized-lvm.txt</code> containing a list of your physical volumes, volume groups, and logical volumes, and the amount of space used in each filesystem, after completing the previous step.
 
# Create the file <code>bash-files.txt</code> containing a list of all of the files that were installed as part of the <code>bash</code> RPM package.
 
# Create the file <code>bash-files.txt</code> containing a list of all of the files that were installed as part of the <code>bash</code> RPM package.
# Create a 2MB ext3 filesystem in an image file named <code>practical-1-practice.img</code>
+
# Create a 2MB ext3 filesystem in an image file named <code>p1-practice.img</code>
# Place the three <code>.txt</code> files into the ext3 filesystem that you created. Ensure that <code>root</code> owns the file <code>partitions.txt</code> and that your regular user account owns the other two files.
+
# Mount that filesystem image file.
# Ensure that the filesystem is closed properly (think about what this means!).
+
# Create the directory <code>lvm-info</code>. Place the <code>lvm.txt</code> and <code>resized-lvm.txt</code> files into that directory. Make that directory and its contents owned by <code>root</code>.
 +
# Create the directory <code>misc</code>. Place the <code>partitions.txt</code> and <code>bash-files.txt</code> files into that directory. Make that directory and its contents owned by your normal user account.
 +
# Unmount the filesystem (this is critically important. Why?)
 
# Compress the filesystem image file.
 
# Compress the filesystem image file.
 
# Exchange the filesystem image file with a colleague in your class for checking.
 
# Exchange the filesystem image file with a colleague in your class for checking.

Latest revision as of 22:18, 23 February 2011

Here is a sample exercise for OPS235 practical test #1:

  1. Create the file partitions.txt containing a list of all of your partitions, as displayed by the fdisk command.
  2. Create the file lvm.txt containing a list of your physical volumes, volume groups, and logical volumes, as displayed by the appropriate LVM commands, plus the amount of space used in each filesystem.
  3. Change the system configuration so that each newly-created user account automatically has a file named "readme.txt" in their home directory containing a welcome message.
  4. Extend your root filesystem by 100M.
  5. Create the file resized-lvm.txt containing a list of your physical volumes, volume groups, and logical volumes, and the amount of space used in each filesystem, after completing the previous step.
  6. Create the file bash-files.txt containing a list of all of the files that were installed as part of the bash RPM package.
  7. Create a 2MB ext3 filesystem in an image file named p1-practice.img
  8. Mount that filesystem image file.
  9. Create the directory lvm-info. Place the lvm.txt and resized-lvm.txt files into that directory. Make that directory and its contents owned by root.
  10. Create the directory misc. Place the partitions.txt and bash-files.txt files into that directory. Make that directory and its contents owned by your normal user account.
  11. Unmount the filesystem (this is critically important. Why?)
  12. Compress the filesystem image file.
  13. Exchange the filesystem image file with a colleague in your class for checking.