Changes

Jump to: navigation, search

OPS235 Lab 5

144 bytes added, 08:04, 27 June 2016
no edit summary
<ol><li value="8">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></li>
<li>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.</li>
<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 &nbsp; -t ext4 &nbsp; /dev/centos_centos2/archive &nbsp; /archive</span></code></b><br/li><brli>'''NOTE:''' If you are having problem mounting, use Use the ls command to view the contents of the /dev pathname listing in your /etc/fstab filearchive directory.<br><br>What do you see?</li><li>Confirm that this file-system has been properly mounted. Note: You could have also issued Unmount the /archive directory by issuing the following command: '''mount -a''' to <ubr><b>automatically</ucode> mount the file<span style="color:#3366CC;font-systems contained in the '''size:1.2em;">umount /etcarchive</fstab''' file.span><br/code><br/b>Tip: If you had to do manually configure </etc/fstab (eg. only in text-based mode - centos3), you could have issued li><li>Issue the following command (as root)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''' file.<br><br></li></ol>
13,420
edits

Navigation menu