<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.fogproject.org/wiki/index.php?action=history&amp;feed=atom&amp;title=Adding_Storage_to_a_FOG_Server</id>
		<title>Adding Storage to a FOG Server - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.fogproject.org/wiki/index.php?action=history&amp;feed=atom&amp;title=Adding_Storage_to_a_FOG_Server"/>
		<link rel="alternate" type="text/html" href="https://wiki.fogproject.org/wiki/index.php?title=Adding_Storage_to_a_FOG_Server&amp;action=history"/>
		<updated>2026-04-17T21:07:17Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>https://wiki.fogproject.org/wiki/index.php?title=Adding_Storage_to_a_FOG_Server&amp;diff=4308&amp;oldid=prev</id>
		<title>Chad-bisd: fixed discuss value in call to Merge template</title>
		<link rel="alternate" type="text/html" href="https://wiki.fogproject.org/wiki/index.php?title=Adding_Storage_to_a_FOG_Server&amp;diff=4308&amp;oldid=prev"/>
				<updated>2011-10-17T06:11:33Z</updated>
		
		<summary type="html">&lt;p&gt;fixed discuss value in call to Merge template&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Merge|target=Moving your images directory/Adding Storage to the Images directory|discuss=Talk:Adding Storage to a FOG Server}}&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
This tutorial will cover how to add an additional hard disk to a server and mount it as /images.  For example if you installed the host operating system on a drive that was 80GB, now you wish to add a new 1TB hard disk to mount as /images keeping the rest of the OS on the 80GB disk.&lt;br /&gt;
&lt;br /&gt;
In this tutorial we are assuming you are using Ubuntu and that the disk you are installing is not formatted.  If the drive is formatted, it may mount automatically, if you does, right click on it and select dismount.  &lt;br /&gt;
&lt;br /&gt;
=== Preparing new disk ===&lt;br /&gt;
&lt;br /&gt;
*Connect the new drive to the host system.&lt;br /&gt;
*Determine device name by typing &lt;br /&gt;
 sudo fdisk -l&lt;br /&gt;
It should look something like /dev/sdb (without a number after it), we will refer to this as [yourdevice].  &lt;br /&gt;
&lt;br /&gt;
'''Make sure this is correct because we will be destroying everything on this device, so make sure the disk capacity matches, etc.'''&lt;br /&gt;
&lt;br /&gt;
*Lets wipe out the MBR and then some, type&lt;br /&gt;
 sudo dd if=/dev/zero of=[yourdevice] count=20 bs=512&lt;br /&gt;
&lt;br /&gt;
=== Partitioning ===&lt;br /&gt;
&lt;br /&gt;
*Now lets partition it&lt;br /&gt;
 sudo fdisk [yourdevice]&lt;br /&gt;
 n&lt;br /&gt;
 p&lt;br /&gt;
 1&lt;br /&gt;
 1&lt;br /&gt;
 [press enter]&lt;br /&gt;
 t&lt;br /&gt;
 83&lt;br /&gt;
 a&lt;br /&gt;
 1&lt;br /&gt;
 w&lt;br /&gt;
&lt;br /&gt;
=== Formating and Mounting ===&lt;br /&gt;
&lt;br /&gt;
*Put a filesystem on it&lt;br /&gt;
 sudo mkfs.ext3 [yourdevice]1 (add a 1 to the end of your device name!)&lt;br /&gt;
*Your device is setup!  Lets move your old images directory.&lt;br /&gt;
 sudo mv /images /images.old&lt;br /&gt;
*Create the new mountpoint&lt;br /&gt;
 sudo mkdir /images&lt;br /&gt;
*Now lets mount your new driver as /images&lt;br /&gt;
 sudo mount -t ext3 /dev/sdb1 /images&lt;br /&gt;
*Make sure the new driver is mounted&lt;br /&gt;
 mount&lt;br /&gt;
You are looking for '''[yourdevice] on /images'''&lt;br /&gt;
*Copy your old images and data to the new device&lt;br /&gt;
 sudo cp -av /images.old/* /images/&lt;br /&gt;
*Create the .mntcheck file in the new images folder&lt;br /&gt;
 sudo touch /images/.mntcheck&lt;br /&gt;
*Now make sure your new device gets mounted at system startup&lt;br /&gt;
 sudo gedit /etc/fstab&lt;br /&gt;
*Add the following line:&lt;br /&gt;
  [yourdevice]1	/images 	ext3   defaults   0   0&lt;br /&gt;
[yourdevice] should have the number 1 at the end of it.&lt;br /&gt;
*Change permissions on the device&lt;br /&gt;
 sudo chmod 777 -R /images&lt;br /&gt;
*Now restart and make sure the new image volume mounts.&lt;br /&gt;
&lt;br /&gt;
[[Category:Storage]][[Category:HowTo|AddStorage]]&lt;/div&gt;</summary>
		<author><name>Chad-bisd</name></author>	</entry>

	</feed>