13,420
edits
Changes
no edit summary
<li>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_centos2/archive /archive</span></code></b></li><li>Use the ls command to view the contents of the /archive directory. What do you see?</li><li>Unmount the /archive directory by issuing the following command: <br><b><code><span style="color:#3366CC;font-size:1.2em;">umount /archive</span></code></b></li>
<li>Issue the following command to add an entry to automatically mount the /archive directory upon bootup:<br><b><code><span style="color:#3366CC;font-size:1.2em;">echo "/dev/centos_centos2/archive /archive ext4 defaults 1 2" >> /etc/fstab</span></code></b><br>(although we don't need to do this, since it was already done).</li>
<li>Reboot your centos2 VM so see if the /archive directory is automatically mounted.<br><br>'''Note:''' You could have also issued the command: '''mount -a''' to <u>automatically</u> mount the file-systems contained in the '''/etc/fstab''' filewithout booting the VM (good for testing before trying a reboot).<br><br></li>
</ol>