We need to unmount the new hard drive from the /mnt/test mount mount point with this command
umount /mnt/test
Run the df -h
command to ensure that sdb1 has been unmounted.
Then clean up the test folder (not needed anymore) with rmdir /mnt/test
Now we need to mount our new hard drive over the /images folder. We can do this with the following command
mount -t ext4 /dev/sdb1 /images
Change to the /images folder and you should see all of your host image files.
At this point we are almost done. If we were to reboot the FOG server this manual mount command would not be active after the reboot. So lets make this change permanent.
You will need to edit the fstab in /etc Insert the following line info fstab at the bottom.
/dev/sdb1 /images ext4 defaults 0 1
Now lets unmount the images folder with all of the host image files.
umount /images
If you show the files in the /images folder it should be blank.
ls -la /images
Now lets mount the /images folder again using the following command
mount -a
Us the df -h
command to show that we’ve mounted /dev/sdb1 on /images.
Reboot your fog server and use the df command to make sure your images are remounted over the /images folder.