13,420
edits
Changes
no edit summary
# View the contents of the file-system table /etc/fstab by issuing the following command:<br><b><code><span style="color:#3366CC;font-size:1.2em;">cat /etc/fstab</span></code></b>
# 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 -t ext4 /dev/centos/archive /archive</span></code><br><br>'''NOTE:''' If you are having problem mounting, use the /dev pathname listing in your /etc/fstab file.<br><br></b># Confirm that this file-system has been properly mounted. Note: You could have also issue 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:<br> <b><code><span style="color:#3366CC;font-size:1.2em;">echo "/archive ext4 defaults 1 1" >> /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!).