Changes

Jump to: navigation, search

OPS235 Lab 5 - CentOS7

37 bytes added, 10:36, 24 June 2015
no edit summary
# Note the line that automatically mounts a file-system (''/dev/sda3'', type ''ext4'') to '''/archive'''. This was automatically performed for you via the '''system-config-lvm''' utility.
# View and record the fields for the '''/archive''' mount in your lab logbook, and then issue the following command to reconnect or mount '''/archive''':<br><b><code><span style="color:#3366CC;font-size:1.2em;">mount &nbsp; -t ext4 &nbsp; /dev/centos/archive &nbsp; /archive</span></code></b><br><br>'''NOTE:''' If you are having problem mounting, use the /dev pathname listing in your /etc/fstab file.<br><br>
# Confirm that this file-system has been properly mounted. Note: You could have also issued the command: '''mount -a''' to <u>automatically</u> mount the file-systems contained in the '''/etc/fstab''' file.<br><br>Tip: If you had to do manually configure /etc/fstab (eg. only in text-based mode - centos3), you could have issued the command(as root):<br> <b><code><span style="color:#3366CC;font-size:1.2em;">echo "/dev/centos/archive /archive ext4 defaults 1 12" >> /etc/fstab</span></code></b> (although we don't need to do this, since it was already done).<br><br>
# '''A curious question''': If root needs to unmount the '''/home''' directory for maintenance (i.e. prevent regular users from logging in), but were forced to login as a regular user, then open a terminal and su into '''root''', then we wouldn't be able to unmount /home, since we are still logged in! How can we as a Linux System Administrator get around the problem (hint: you already learned it somewhere in lab3!!! Wow, using what we already taught can pay-off in the future ... lol!).
13,420
edits

Navigation menu