<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.amahi.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Carl+Greenstreet</id>
	<title>Amahi Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.amahi.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Carl+Greenstreet"/>
	<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php/Special:Contributions/Carl_Greenstreet"/>
	<updated>2026-04-08T08:43:20Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.34.2</generator>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=FreeNX&amp;diff=63074</id>
		<title>FreeNX</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=FreeNX&amp;diff=63074"/>
		<updated>2012-11-10T00:24:30Z</updated>

		<summary type="html">&lt;p&gt;Carl Greenstreet: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;NX is a technology for secure remote access - for example, you may want to run your Amahi Server headless (no monitor) and access a full graphical desktop environment on your server from another computer such as a Windows, Apple or Linux machine.  NX provides both security and near local speed application responsiveness over high latency, low bandwidth links.  The core libraries for NX are provided by NoMachine under the GPL.  FreeNX is a GPL implementation of the NX Server and NX Client Components.  More information can be found [http://freenx.berlios.de FreeNX project page] or [http://en.wikipedia.org/wiki/NX_technology Wikipedia].&lt;br /&gt;
&lt;br /&gt;
Some users have found FreeNX gives far superior responsiveness to alternative VNC remote access approaches.  &lt;br /&gt;
&lt;br /&gt;
Following are the steps to get FreeNX up and running. It is fairly straight forward and easy, although there is one point that can be a little confusing but that is during the client setup, not the server. Basically, you need to install and configure the FreeNX Server onto your Amahi / FreeNX Server machine and then install a FreeNX client on every computer you may want to initiate the remote access from.&lt;br /&gt;
&lt;br /&gt;
=Installation - FreeNX Server=&lt;br /&gt;
&lt;br /&gt;
== Fedora==&lt;br /&gt;
First, log into your hda and open a terminal window.&lt;br /&gt;
&lt;br /&gt;
Second, run this command to install FreeNX:&lt;br /&gt;
&lt;br /&gt;
{{Code|yum install freenx-server}}&lt;br /&gt;
&lt;br /&gt;
That's it. FreeNX should now be installed and running on your HDA. In order to use FreeNX, you will need a client to connect with. Go to http://www.nomachine.com/download.php and select the one for your appropriate operating system.&lt;br /&gt;
&lt;br /&gt;
After downloading and installing the client, you will need to copy the client.id_dsa.key into the client. What I did was to scp the key from my server (/etc/nxserver/client.id_dsa.key) to my local system, open the file in a text editor, copy everything in it and paste it into the client. In my client this was under &amp;quot;Configure&amp;quot; then on the &amp;quot;General&amp;quot; tab, there is a button labeled &amp;quot;Key&amp;quot;. This is where I pasted the client key information. &lt;br /&gt;
&lt;br /&gt;
*NOTE* If you miss or overlook the step for the client key configuration, the client will attempt to use a default key for the HDA, and this does not work. &lt;br /&gt;
&lt;br /&gt;
Finally, save the configuration, and then run the client to log into the HDA.&lt;br /&gt;
&lt;br /&gt;
Since the Fedora 12 update some users have reported the following error when trying to log into their HDA after installing using the method above.&lt;br /&gt;
 cat: /var/lib/nxserver/db/running/sessionId{(STDIN)}: &lt;br /&gt;
    No such file or directory NX&amp;gt; 280 Exiting on signal: 15&lt;br /&gt;
A work around for this is to open:&lt;br /&gt;
 /etc/nxserver/node.conf&lt;br /&gt;
And add the following to the end of the file:&lt;br /&gt;
{{Text|Text=COMMAND_MD5SUM&amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt;&amp;quot;md5sum&amp;quot;}}&lt;br /&gt;
.&lt;br /&gt;
&lt;br /&gt;
===Alternative Approach - Install NoMachine NX Free Server===&lt;br /&gt;
'''In case you receive any error messages or notification from Fedora that some applications (like gnome-settings-daemon) crashed, you might want to install free NX server from Nomachine web site.'''  Note the main difference with this software is that NX Free Edition is licensed as proprietary ( 2 connections limit) unlike FreeNX which is completely free Open Source Software &lt;br /&gt;
&lt;br /&gt;
Go to Nomachine's web site and download NoMachine NX Free Server (http://www.nomachine.com/download-package.php?Prod_Id=1352) for Linux i386 RPM. It consists of three separate downloads: client RPM, node RPM and Server RPM. You can read on their web site detailed info on how to install it and in what order - pretty straightforward. Here is what you need to do to get it installed on Fedora 12:&lt;br /&gt;
&lt;br /&gt;
1) Uninstall completely FreeNX server from your HDA (use Add/Remove software);&lt;br /&gt;
&lt;br /&gt;
2) Go to your System Preferences--&amp;gt;Add Remove Software and do search for &amp;quot;audiofile&amp;quot; (without quotes). It will find for you a piece of software &amp;quot;audiofile-1:0.2.6&amp;quot; and &amp;quot;audiofile-devel-1:0.2.6. Install both development files and a library (Note: this should no longer be necessary after release 3.5).&lt;br /&gt;
&lt;br /&gt;
3) Do search (the same Add/remove software) for &amp;quot;libstdc&amp;quot;. It will find C++ libraries, different versions. Install latest ones in case they are not yet installed;&lt;br /&gt;
&lt;br /&gt;
4) Do search (same place) for &amp;quot;GLIBC&amp;quot; - it will find a few libraries there. Install the latest ones in case they are not yet installed&lt;br /&gt;
&lt;br /&gt;
That's it. Then go to terminal and do &amp;quot;sudo rpm -i&amp;quot; command for all three packages that you downloaded before. Here are the commands (you need to run these from the folder where you have dowloaded them):&lt;br /&gt;
&lt;br /&gt;
;[root@localhost ~]# cd /folder_where_files_were_downloaded, example: &lt;br /&gt;
:cd /home/frank/Downloads/&lt;br /&gt;
&lt;br /&gt;
*[root@localhost Downloads]#  rpm -Uvh nxclient-3.4.0-5.i386.rpm&lt;br /&gt;
*[root@localhost Downloads]#  rpm -Uvh nxnode-3.4.0-6.i386.rpm&lt;br /&gt;
*[root@localhost Downloads]#  rpm -Uvh nxserver-3.4.0-8.i386.rpm&lt;br /&gt;
&lt;br /&gt;
You need to install them in order: client, node, server.&lt;br /&gt;
&lt;br /&gt;
It may complain something about permissions for CUPS that you may just ignore. Or if you want, you can follow the instructions the installer gives you, and fix permission problem and re-install. Keep in mind, that these three packages are easily removable thru Add/Remove interface in System Preferences.&lt;br /&gt;
&lt;br /&gt;
==Ubuntu==&lt;br /&gt;
&lt;br /&gt;
You are in luck!  A chap named Shannon VanWagner created a script that makes the installation and configuration on Ubuntu 12.04 super easy.  His page (including instructions on how to install manually) and the link for the script can be found at [http://www.humans-enabled.com/2012/05/how-to-install-freenx-on-ubuntu-1204.html FreeNX How to Install FreeNx on Ubuntu 12.04]&lt;br /&gt;
&lt;br /&gt;
To Run Script:&lt;br /&gt;
# Download script to the Amahi Server&lt;br /&gt;
# Extract script from downloaded tar file&lt;br /&gt;
#Open terminal window, go to director with the script and type&lt;br /&gt;
{{Code|sudo sh heInstallFreeNX.sh}}&lt;br /&gt;
&lt;br /&gt;
If the script runs successfully, it should return a message saying &lt;br /&gt;
'''Script Complete! Now you should be able to connect to this server using qtnx or the NX free client from nomachine.com.'''&lt;br /&gt;
&lt;br /&gt;
If you receive errors running the script, it may be that you have a previous failed installation of FreeNx on your system.  Try to completely remove FreeNx before attempting this script.  &lt;br /&gt;
&lt;br /&gt;
=FreeNX Client Installation=&lt;br /&gt;
&lt;br /&gt;
Last step: you'll need to install a FreeNx client on each computer that you want to initiate remote access into your Amahi / FreeNX Server.  &lt;br /&gt;
&lt;br /&gt;
The simplest way is to get a client for various Operating System platforms (Mac OS, Windows, Linux) is downloading a proprietary but free client from NoMachines website.  An alternative is the open source qtnx.&lt;br /&gt;
&lt;br /&gt;
Download and install NX client software from the same [http://www.nomachine.com/download.php Nomachine's web site]. You need to install client software on the machine that you want to access your HDA from.  Once installed, you can run it with default Key and default settings. Just choose Configure button, and on General tab, choose UNIX---Gnome for the desktop. No need to export/import Keys - can run with default installed keys. For added security, you can later change Keys as described in their knowledge base (article #AR01C00126).&lt;br /&gt;
&lt;br /&gt;
When the gnome desktop loads, you will may get a message that Gnome Power Manager crashed. Ignore it - everything works fine.&lt;br /&gt;
&lt;br /&gt;
=Troubleshooting NX=&lt;br /&gt;
&lt;br /&gt;
#The /etc/hosts file must contain an entry for your HDA which may not be there.  If NX is failing to connect to your HDA, check /etc/hosts for an entry as follows: [IP address] [localhost.localdomain] [localhost alias]. This info can be easily entered from your gnome desktop: System &amp;gt; Administration &amp;gt; Network &amp;gt; Hosts Tab.&lt;br /&gt;
#The default security keys should match in the server and client, but that could be a reason for not connecting.  Check the documentation on the NoMachine website for how to copy the key.&lt;br /&gt;
#There is a detailed server administration manual on the NoMachine website, but the information above is sufficient for an install with basic security.&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
[[Category:Apps]]&lt;/div&gt;</summary>
		<author><name>Carl Greenstreet</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=FreeNX&amp;diff=63068</id>
		<title>FreeNX</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=FreeNX&amp;diff=63068"/>
		<updated>2012-11-10T00:23:03Z</updated>

		<summary type="html">&lt;p&gt;Carl Greenstreet: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;NX is a technology for secure remote access - for example, you may want to run your Amahi Server headless (no monitor) and access a full graphical desktop environment on your server from another computer such as a Windows, Apple or Linux machine.  NX provides both security and near local speed application responsiveness over high latency, low bandwidth links.  The core libraries for NX are provided by NoMachine under the GPL.  FreeNX is a GPL implementation of the NX Server and NX Client Components.  More information can be found [http://freenx.berlios.de FreeNX project page] or [http://en.wikipedia.org/wiki/NX_technology Wikipedia].&lt;br /&gt;
&lt;br /&gt;
Some users have found FreeNX gives far superior responsiveness to alternative VNC remote access approaches.  &lt;br /&gt;
&lt;br /&gt;
Following are the steps to get FreeNX up and running. It is fairly straight forward and easy, although there is one point that can be a little confusing but that is during the client setup, not the server. Basically, you need to install and configure the FreeNX Server onto your Amahi / FreeNX Server machine and then install a FreeNX client on every computer you may want to initiate the remote access from.&lt;br /&gt;
&lt;br /&gt;
=Installation - FreeNX Server=&lt;br /&gt;
&lt;br /&gt;
== Fedora==&lt;br /&gt;
First, log into your hda and open a terminal window.&lt;br /&gt;
&lt;br /&gt;
Second, run this command to install FreeNX:&lt;br /&gt;
&lt;br /&gt;
{{Code|yum install freenx-server}}&lt;br /&gt;
&lt;br /&gt;
That's it. FreeNX should now be installed and running on your HDA. In order to use FreeNX, you will need a client to connect with. Go to http://www.nomachine.com/download.php and select the one for your appropriate operating system.&lt;br /&gt;
&lt;br /&gt;
After downloading and installing the client, you will need to copy the client.id_dsa.key into the client. What I did was to scp the key from my server (/etc/nxserver/client.id_dsa.key) to my local system, open the file in a text editor, copy everything in it and paste it into the client. In my client this was under &amp;quot;Configure&amp;quot; then on the &amp;quot;General&amp;quot; tab, there is a button labeled &amp;quot;Key&amp;quot;. This is where I pasted the client key information. &lt;br /&gt;
&lt;br /&gt;
*NOTE* If you miss or overlook the step for the client key configuration, the client will attempt to use a default key for the HDA, and this does not work. &lt;br /&gt;
&lt;br /&gt;
Finally, save the configuration, and then run the client to log into the HDA.&lt;br /&gt;
&lt;br /&gt;
Since the Fedora 12 update some users have reported the following error when trying to log into their HDA after installing using the method above.&lt;br /&gt;
 cat: /var/lib/nxserver/db/running/sessionId{(STDIN)}: &lt;br /&gt;
    No such file or directory NX&amp;gt; 280 Exiting on signal: 15&lt;br /&gt;
A work around for this is to open:&lt;br /&gt;
 /etc/nxserver/node.conf&lt;br /&gt;
And add the following to the end of the file:&lt;br /&gt;
{{Text|Text=COMMAND_MD5SUM&amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt;&amp;quot;md5sum&amp;quot;}}&lt;br /&gt;
.&lt;br /&gt;
&lt;br /&gt;
===Alternative Approach - Install NoMachine NX Free Server===&lt;br /&gt;
'''In case you receive any error messages or notification from Fedora that some applications (like gnome-settings-daemon) crashed, you might want to install free NX server from Nomachine web site.'''  Note the main difference with this software is that NX Free Edition is licensed as proprietary ( 2 connections limit) unlike FreeNX which is completely free Open Source Software &lt;br /&gt;
&lt;br /&gt;
Go to Nomachine's web site and download NoMachine NX Free Server (http://www.nomachine.com/download-package.php?Prod_Id=1352) for Linux i386 RPM. It consists of three separate downloads: client RPM, node RPM and Server RPM. You can read on their web site detailed info on how to install it and in what order - pretty straightforward. Here is what you need to do to get it installed on Fedora 12:&lt;br /&gt;
&lt;br /&gt;
1) Uninstall completely FreeNX server from your HDA (use Add/Remove software);&lt;br /&gt;
&lt;br /&gt;
2) Go to your System Preferences--&amp;gt;Add Remove Software and do search for &amp;quot;audiofile&amp;quot; (without quotes). It will find for you a piece of software &amp;quot;audiofile-1:0.2.6&amp;quot; and &amp;quot;audiofile-devel-1:0.2.6. Install both development files and a library (Note: this should no longer be necessary after release 3.5).&lt;br /&gt;
&lt;br /&gt;
3) Do search (the same Add/remove software) for &amp;quot;libstdc&amp;quot;. It will find C++ libraries, different versions. Install latest ones in case they are not yet installed;&lt;br /&gt;
&lt;br /&gt;
4) Do search (same place) for &amp;quot;GLIBC&amp;quot; - it will find a few libraries there. Install the latest ones in case they are not yet installed&lt;br /&gt;
&lt;br /&gt;
That's it. Then go to terminal and do &amp;quot;sudo rpm -i&amp;quot; command for all three packages that you downloaded before. Here are the commands (you need to run these from the folder where you have dowloaded them):&lt;br /&gt;
&lt;br /&gt;
;[root@localhost ~]# cd /folder_where_files_were_downloaded, example: &lt;br /&gt;
:cd /home/frank/Downloads/&lt;br /&gt;
&lt;br /&gt;
*[root@localhost Downloads]#  rpm -Uvh nxclient-3.4.0-5.i386.rpm&lt;br /&gt;
*[root@localhost Downloads]#  rpm -Uvh nxnode-3.4.0-6.i386.rpm&lt;br /&gt;
*[root@localhost Downloads]#  rpm -Uvh nxserver-3.4.0-8.i386.rpm&lt;br /&gt;
&lt;br /&gt;
You need to install them in order: client, node, server.&lt;br /&gt;
&lt;br /&gt;
It may complain something about permissions for CUPS that you may just ignore. Or if you want, you can follow the instructions the installer gives you, and fix permission problem and re-install. Keep in mind, that these three packages are easily removable thru Add/Remove interface in System Preferences.&lt;br /&gt;
&lt;br /&gt;
==Ubuntu==&lt;br /&gt;
&lt;br /&gt;
You are in luck!  A chap named Shannon VanWagner created a script that makes the installation and configuration on Ubuntu 12.04 super easy.  His page (including instructions on how to install manually) and the link for the script can be found at [http://www.humans-enabled.com/2012/05/how-to-install-freenx-on-ubuntu-1204.html FreeNX How to Install FreeNx on Ubuntu 12.04]&lt;br /&gt;
&lt;br /&gt;
To Run Script:&lt;br /&gt;
# Download script to the Amahi Server&lt;br /&gt;
# Extract script from downloaded tar file&lt;br /&gt;
#Open terminal window, go to director with the script and type&lt;br /&gt;
{{Code|sudo sh heInstallFreeNX.sh}}&lt;br /&gt;
&lt;br /&gt;
If the script runs successfully, it should return a message saying &lt;br /&gt;
'''Script Complete! Now you should be able to connect to this server using qtnx or the NX free client from nomachine.com.'''&lt;br /&gt;
&lt;br /&gt;
If you receive errors running the script, it may be that you have a previous failed installation of FreeNx on your system.  Try to completely remove FreeNx before attempting this script.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=FreeNX Client Installation=&lt;br /&gt;
&lt;br /&gt;
Last step: you'll need to install a FreeNx client on each computer that you want to initiate remote access into your Amahi / FreeNX Server.  &lt;br /&gt;
&lt;br /&gt;
The simplest way is to get a client for various Operating System platforms (Mac OS, Windows, Linux) is downloading a proprietary but free client from NoMachines website.  An alternative is the open source qtnx.&lt;br /&gt;
&lt;br /&gt;
Download and install NX client software from the same [http://www.nomachine.com/download.php Nomachine's web site]. You need to install client software on the machine that you want to access your HDA from.  Once installed, you can run it with default Key and default settings. Just choose Configure button, and on General tab, choose UNIX---Gnome for the desktop. No need to export/import Keys - can run with default installed keys. For added security, you can later change Keys as described in their knowledge base (article #AR01C00126).&lt;br /&gt;
&lt;br /&gt;
When the gnome desktop loads, you will may get a message that Gnome Power Manager crashed. Ignore it - everything works fine.&lt;br /&gt;
&lt;br /&gt;
=Troubleshooting NX=&lt;br /&gt;
&lt;br /&gt;
#The /etc/hosts file must contain an entry for your HDA which may not be there.  If NX is failing to connect to your HDA, check /etc/hosts for an entry as follows: [IP address] [localhost.localdomain] [localhost alias]. This info can be easily entered from your gnome desktop: System &amp;gt; Administration &amp;gt; Network &amp;gt; Hosts Tab.&lt;br /&gt;
#The default security keys should match in the server and client, but that could be a reason for not connecting.  Check the documentation on the NoMachine website for how to copy the key.&lt;br /&gt;
#There is a detailed server administration manual on the NoMachine website, but the information above is sufficient for an install with basic security.&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
[[Category:Apps]]&lt;/div&gt;</summary>
		<author><name>Carl Greenstreet</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=FreeNX&amp;diff=63062</id>
		<title>FreeNX</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=FreeNX&amp;diff=63062"/>
		<updated>2012-11-10T00:22:16Z</updated>

		<summary type="html">&lt;p&gt;Carl Greenstreet: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;NX is a technology for secure remote access - for example, you may want to run your Amahi Server headless (no monitor) and access a full graphical desktop environment on your server from another computer such as a Windows, Apple or Linux machine.  NX provides both security and near local speed application responsiveness over high latency, low bandwidth links.  The core libraries for NX are provided by NoMachine under the GPL.  FreeNX is a GPL implementation of the NX Server and NX Client Components.  More information can be found [http://freenx.berlios.de FreeNX project page] or [http://en.wikipedia.org/wiki/NX_technology Wikipedia].&lt;br /&gt;
&lt;br /&gt;
Some users have found FreeNX gives far superior responsiveness to alternative VNC remote access approaches.  &lt;br /&gt;
&lt;br /&gt;
Following are the steps to get FreeNX up and running. It is fairly straight forward and easy, although there is one point that can be a little confusing but that is during the client setup, not the server. Basically, you need to install and configure the FreeNX Server onto your Amahi / FreeNX Server machine and then install a FreeNX client on every computer you may want to initiate the remote access from.&lt;br /&gt;
&lt;br /&gt;
=Installation - FreeNX Server=&lt;br /&gt;
&lt;br /&gt;
== Fedora==&lt;br /&gt;
First, log into your hda and open a terminal window.&lt;br /&gt;
&lt;br /&gt;
Second, run this command to install FreeNX:&lt;br /&gt;
&lt;br /&gt;
{{Code|yum install freenx-server}}&lt;br /&gt;
&lt;br /&gt;
That's it. FreeNX should now be installed and running on your HDA. In order to use FreeNX, you will need a client to connect with. Go to http://www.nomachine.com/download.php and select the one for your appropriate operating system.&lt;br /&gt;
&lt;br /&gt;
After downloading and installing the client, you will need to copy the client.id_dsa.key into the client. What I did was to scp the key from my server (/etc/nxserver/client.id_dsa.key) to my local system, open the file in a text editor, copy everything in it and paste it into the client. In my client this was under &amp;quot;Configure&amp;quot; then on the &amp;quot;General&amp;quot; tab, there is a button labeled &amp;quot;Key&amp;quot;. This is where I pasted the client key information. &lt;br /&gt;
&lt;br /&gt;
*NOTE* If you miss or overlook the step for the client key configuration, the client will attempt to use a default key for the HDA, and this does not work. &lt;br /&gt;
&lt;br /&gt;
Finally, save the configuration, and then run the client to log into the HDA.&lt;br /&gt;
&lt;br /&gt;
Since the Fedora 12 update some users have reported the following error when trying to log into their HDA after installing using the method above.&lt;br /&gt;
 cat: /var/lib/nxserver/db/running/sessionId{(STDIN)}: &lt;br /&gt;
    No such file or directory NX&amp;gt; 280 Exiting on signal: 15&lt;br /&gt;
A work around for this is to open:&lt;br /&gt;
 /etc/nxserver/node.conf&lt;br /&gt;
And add the following to the end of the file:&lt;br /&gt;
{{Text|Text=COMMAND_MD5SUM&amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt;&amp;quot;md5sum&amp;quot;}}&lt;br /&gt;
.&lt;br /&gt;
&lt;br /&gt;
===Alternative Approach - Install NoMachine NX Free Server===&lt;br /&gt;
'''In case you receive any error messages or notification from Fedora that some applications (like gnome-settings-daemon) crashed, you might want to install free NX server from Nomachine web site.'''  Note the main difference with this software is that NX Free Edition is licensed as proprietary ( 2 connections limit) unlike FreeNX which is completely Free Open Source Software &lt;br /&gt;
&lt;br /&gt;
Go to Nomachine's web site and download NoMachine NX Free Server (http://www.nomachine.com/download-package.php?Prod_Id=1352) for Linux i386 RPM. It consists of three separate downloads: client RPM, node RPM and Server RPM. You can read on their web site detailed info on how to install it and in what order - pretty straightforward. Here is what you need to do to get it installed on Fedora 12:&lt;br /&gt;
&lt;br /&gt;
1) Uninstall completely FreeNX server from your HDA (use Add/Remove software);&lt;br /&gt;
&lt;br /&gt;
2) Go to your System Preferences--&amp;gt;Add Remove Software and do search for &amp;quot;audiofile&amp;quot; (without quotes). It will find for you a piece of software &amp;quot;audiofile-1:0.2.6&amp;quot; and &amp;quot;audiofile-devel-1:0.2.6. Install both development files and a library (Note: this should no longer be necessary after release 3.5).&lt;br /&gt;
&lt;br /&gt;
3) Do search (the same Add/remove software) for &amp;quot;libstdc&amp;quot;. It will find C++ libraries, different versions. Install latest ones in case they are not yet installed;&lt;br /&gt;
&lt;br /&gt;
4) Do search (same place) for &amp;quot;GLIBC&amp;quot; - it will find a few libraries there. Install the latest ones in case they are not yet installed&lt;br /&gt;
&lt;br /&gt;
That's it. Then go to terminal and do &amp;quot;sudo rpm -i&amp;quot; command for all three packages that you downloaded before. Here are the commands (you need to run these from the folder where you have dowloaded them):&lt;br /&gt;
&lt;br /&gt;
;[root@localhost ~]# cd /folder_where_files_were_downloaded, example: &lt;br /&gt;
:cd /home/frank/Downloads/&lt;br /&gt;
&lt;br /&gt;
*[root@localhost Downloads]#  rpm -Uvh nxclient-3.4.0-5.i386.rpm&lt;br /&gt;
*[root@localhost Downloads]#  rpm -Uvh nxnode-3.4.0-6.i386.rpm&lt;br /&gt;
*[root@localhost Downloads]#  rpm -Uvh nxserver-3.4.0-8.i386.rpm&lt;br /&gt;
&lt;br /&gt;
You need to install them in order: client, node, server.&lt;br /&gt;
&lt;br /&gt;
It may complain something about permissions for CUPS that you may just ignore. Or if you want, you can follow the instructions the installer gives you, and fix permission problem and re-install. Keep in mind, that these three packages are easily removable thru Add/Remove interface in System Preferences.&lt;br /&gt;
&lt;br /&gt;
==Ubuntu==&lt;br /&gt;
&lt;br /&gt;
You are in luck!  A chap named Shannon VanWagner created a script that makes the installation and configuration on Ubuntu 12.04 super easy.  His page (including instructions on how to install manually) and the link for the script can be found at [http://www.humans-enabled.com/2012/05/how-to-install-freenx-on-ubuntu-1204.html FreeNX How to Install FreeNx on Ubuntu 12.04]&lt;br /&gt;
&lt;br /&gt;
To Run Script:&lt;br /&gt;
# Download script to the Amahi Server&lt;br /&gt;
# Extract script from downloaded tar file&lt;br /&gt;
#Open terminal window, go to director with the script and type&lt;br /&gt;
{{Code|sudo sh heInstallFreeNX.sh}}&lt;br /&gt;
&lt;br /&gt;
If the script runs successfully, it should return a message saying &lt;br /&gt;
'''Script Complete! Now you should be able to connect to this server using qtnx or the NX free client from nomachine.com.'''&lt;br /&gt;
&lt;br /&gt;
If you receive errors running the script, it may be that you have a previous failed installation of FreeNx on your system.  Try to completely remove FreeNx before attempting this script.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=FreeNX Client Installation=&lt;br /&gt;
&lt;br /&gt;
Last step: you'll need to install a FreeNx client on each computer that you want to initiate remote access into your Amahi / FreeNX Server.  &lt;br /&gt;
&lt;br /&gt;
The simplest way is to get a client for various Operating System platforms (Mac OS, Windows, Linux) is downloading a proprietary but free client from NoMachines website.  An alternative is the open source qtnx.&lt;br /&gt;
&lt;br /&gt;
Download and install NX client software from the same [http://www.nomachine.com/download.php Nomachine's web site]. You need to install client software on the machine that you want to access your HDA from.  Once installed, you can run it with default Key and default settings. Just choose Configure button, and on General tab, choose UNIX---Gnome for the desktop. No need to export/import Keys - can run with default installed keys. For added security, you can later change Keys as described in their knowledge base (article #AR01C00126).&lt;br /&gt;
&lt;br /&gt;
When the gnome desktop loads, you will may get a message that Gnome Power Manager crashed. Ignore it - everything works fine.&lt;br /&gt;
&lt;br /&gt;
=Troubleshooting NX=&lt;br /&gt;
&lt;br /&gt;
#The /etc/hosts file must contain an entry for your HDA which may not be there.  If NX is failing to connect to your HDA, check /etc/hosts for an entry as follows: [IP address] [localhost.localdomain] [localhost alias]. This info can be easily entered from your gnome desktop: System &amp;gt; Administration &amp;gt; Network &amp;gt; Hosts Tab.&lt;br /&gt;
#The default security keys should match in the server and client, but that could be a reason for not connecting.  Check the documentation on the NoMachine website for how to copy the key.&lt;br /&gt;
#There is a detailed server administration manual on the NoMachine website, but the information above is sufficient for an install with basic security.&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
[[Category:Apps]]&lt;/div&gt;</summary>
		<author><name>Carl Greenstreet</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=FreeNX&amp;diff=63056</id>
		<title>FreeNX</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=FreeNX&amp;diff=63056"/>
		<updated>2012-11-10T00:05:37Z</updated>

		<summary type="html">&lt;p&gt;Carl Greenstreet: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;NX is a technology for secure remote access - for example, you may want to run your Amahi Server headless (no monitor) and access a full graphical desktop environment on your server from another computer such as a Windows, Apple or Linux machine.  NX provides both security and near local speed application responsiveness over high latency, low bandwidth links.  The core libraries for NX are provided by NoMachine under the GPL.  FreeNX is a GPL implementation of the NX Server and NX Client Components.  More information can be found [http://freenx.berlios.de FreeNX open source page] or [http://en.wikipedia.org/wiki/NX_technology Wikipedia].&lt;br /&gt;
&lt;br /&gt;
Some users have found FreeNX gives far superior responsiveness to alternative VNC remote access approaches.  &lt;br /&gt;
&lt;br /&gt;
=Installation - FreeNX Server=&lt;br /&gt;
&lt;br /&gt;
Here are the steps to get FreeNX up and running. It is fairly straight forward and easy, although there is one point that can be a little confusing but that is during the client setup, not the server. Basically, you need to install the FreeNX &lt;br /&gt;
&lt;br /&gt;
== Fedora==&lt;br /&gt;
First, log into your hda and open a terminal window.&lt;br /&gt;
&lt;br /&gt;
Second, run this command to install FreeNX:&lt;br /&gt;
&lt;br /&gt;
{{Code|yum install freenx-server}}&lt;br /&gt;
&lt;br /&gt;
That's it. FreeNX should now be installed and running on your HDA. In order to use FreeNX, you will need a client to connect with. Go to http://www.nomachine.com/download.php and select the one for your appropriate operating system.&lt;br /&gt;
&lt;br /&gt;
After downloading and installing the client, you will need to copy the client.id_dsa.key into the client. What I did was to scp the key from my server (/etc/nxserver/client.id_dsa.key) to my local system, open the file in a text editor, copy everything in it and paste it into the client. In my client this was under &amp;quot;Configure&amp;quot; then on the &amp;quot;General&amp;quot; tab, there is a button labeled &amp;quot;Key&amp;quot;. This is where I pasted the client key information. &lt;br /&gt;
&lt;br /&gt;
*NOTE* If you miss or overlook the step for the client key configuration, the client will attempt to use a default key for the HDA, and this does not work. &lt;br /&gt;
&lt;br /&gt;
Finally, save the configuration, and then run the client to log into the HDA.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Since the Fedora 12 update some users have reported the following error when trying to log into their HDA after installing using the method above.&lt;br /&gt;
 cat: /var/lib/nxserver/db/running/sessionId{(STDIN)}: &lt;br /&gt;
    No such file or directory NX&amp;gt; 280 Exiting on signal: 15&lt;br /&gt;
A work around for this is to open:&lt;br /&gt;
 /etc/nxserver/node.conf&lt;br /&gt;
And add the following to the end of the file:&lt;br /&gt;
{{Text|Text=COMMAND_MD5SUM&amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt;&amp;quot;md5sum&amp;quot;}}&lt;br /&gt;
.&lt;br /&gt;
&lt;br /&gt;
===Alternative Approach - Install NoMachine NX Free Server===&lt;br /&gt;
'''In case you receive any error messages or notification from Fedora that some applications (like gnome-settings-daemon) crashed, you might want to install free NX server from Nomachine web site.'''  Note the main difference with this software is that NX Free Edition is licensed as proprietary ( 2 connections limit) unlike FreeNX which is completely Free Open Source Software &lt;br /&gt;
&lt;br /&gt;
Go to Nomachine's web site and download NoMachine NX Free Server (http://www.nomachine.com/download-package.php?Prod_Id=1352) for Linux i386 RPM. It consists of three separate downloads: client RPM, node RPM and Server RPM. You can read on their web site detailed info on how to install it and in what order - pretty straightforward. Here is what you need to do to get it installed on Fedora 12:&lt;br /&gt;
&lt;br /&gt;
1) Uninstall completely FreeNX server from your HDA (use Add/Remove software);&lt;br /&gt;
&lt;br /&gt;
2) Go to your System Preferences--&amp;gt;Add Remove Software and do search for &amp;quot;audiofile&amp;quot; (without quotes). It will find for you a piece of software &amp;quot;audiofile-1:0.2.6&amp;quot; and &amp;quot;audiofile-devel-1:0.2.6. Install both development files and a library (Note: this should no longer be necessary after release 3.5).&lt;br /&gt;
&lt;br /&gt;
3) Do search (the same Add/remove software) for &amp;quot;libstdc&amp;quot;. It will find C++ libraries, different versions. Install latest ones in case they are not yet installed;&lt;br /&gt;
&lt;br /&gt;
4) Do search (same place) for &amp;quot;GLIBC&amp;quot; - it will find a few libraries there. Install the latest ones in case they are not yet installed&lt;br /&gt;
&lt;br /&gt;
That's it. Then go to terminal and do &amp;quot;sudo rpm -i&amp;quot; command for all three packages that you downloaded before. Here are the commands (you need to run these from the folder where you have dowloaded them):&lt;br /&gt;
&lt;br /&gt;
;[root@localhost ~]# cd /folder_where_files_were_downloaded, example: &lt;br /&gt;
:cd /home/frank/Downloads/&lt;br /&gt;
&lt;br /&gt;
*[root@localhost Downloads]#  rpm -Uvh nxclient-3.4.0-5.i386.rpm&lt;br /&gt;
*[root@localhost Downloads]#  rpm -Uvh nxnode-3.4.0-6.i386.rpm&lt;br /&gt;
*[root@localhost Downloads]#  rpm -Uvh nxserver-3.4.0-8.i386.rpm&lt;br /&gt;
&lt;br /&gt;
You need to install them in order: client, node, server.&lt;br /&gt;
&lt;br /&gt;
It may complain something about permissions for CUPS that you may just ignore. Or if you want, you can follow the instructions the installer gives you, and fix permission problem and re-install. Keep in mind, that these three packages are easily removable thru Add/Remove interface in System Preferences.&lt;br /&gt;
&lt;br /&gt;
==Ubuntu==&lt;br /&gt;
&lt;br /&gt;
You are in luck!  A chap named Shannon VanWagner created a script that makes the installation and configuration on Ubuntu 12.04 super easy.  His page (including instructions on how to install manually) and the link for the script can be found at [http://www.humans-enabled.com/2012/05/how-to-install-freenx-on-ubuntu-1204.html FreeNX How to Install FreeNx on Ubuntu 12.04]&lt;br /&gt;
&lt;br /&gt;
To Run Script:&lt;br /&gt;
# Download script to the Amahi Server&lt;br /&gt;
# Extract script from downloaded tar file&lt;br /&gt;
#Open terminal window, go to director with the script and type&lt;br /&gt;
{{Code|sudo sh heInstallFreeNX.sh}}&lt;br /&gt;
&lt;br /&gt;
If the script runs successfully, it should return a message saying &lt;br /&gt;
'''Script Complete! Now you should be able to connect to this server using qtnx or the NX free client from nomachine.com.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=FreeNX Client Installation=&lt;br /&gt;
&lt;br /&gt;
Last step. Download and install NX client software (not the same as above) from the same Nomachine's web site. You need to install client software on the machine that you want to access your HDA from. In my case it's a Windows based laptop - so I chose Windows version. Once installed, you can run it with default Key and default settings. Just choose Configure button, and on General tab, choose UNIX---Gnome for the desktop. No need to export/import Keys - can run with default installed keys. For added security, you can later change Keys as described in their knowledge base (article #AR01C00126).&lt;br /&gt;
&lt;br /&gt;
When the gnome desktop loads, you will likely get a message that Gnome Power Manager crashed. Ignore it - everything works fine.&lt;br /&gt;
&lt;br /&gt;
=Troubleshooting NX=&lt;br /&gt;
&lt;br /&gt;
#The /etc/hosts file must contain an entry for your HDA which may not be there.  If NX is failing to connect to your HDA, check /etc/hosts for an entry as follows: [IP address] [localhost.localdomain] [localhost alias]. This info can be easily entered from your gnome desktop: System &amp;gt; Administration &amp;gt; Network &amp;gt; Hosts Tab.&lt;br /&gt;
#The default security keys should match in the server and client, but that could be a reason for not connecting.  Check the documentation on the NoMachine website for how to copy the key.&lt;br /&gt;
#There is a detailed server administration manual on the NoMachine website, but the information above is sufficient for an install with basic security.&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
[[Category:Apps]]&lt;/div&gt;</summary>
		<author><name>Carl Greenstreet</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Adding_a_second_hard_drive_to_your_HDA&amp;diff=63020</id>
		<title>Adding a second hard drive to your HDA</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Adding_a_second_hard_drive_to_your_HDA&amp;diff=63020"/>
		<updated>2012-11-08T11:41:37Z</updated>

		<summary type="html">&lt;p&gt;Carl Greenstreet: /* Manually setting up the disk mount order */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{MessageBox|&lt;br /&gt;
backgroundcolor	= #faa|&lt;br /&gt;
image	=Warning.png|&lt;br /&gt;
heading	=WARNING|&lt;br /&gt;
message = This is recommended only for advanced users, proceed with caution.}}&lt;br /&gt;
[[Adding_drives_to_your_HDA|Adding drives to your HDA]] is another howto on doing this, a bit shorter and less elaborate, which can be good for some people, specially a novice unfamiliar with doing any of this.&lt;br /&gt;
&lt;br /&gt;
More hard drives can be added in your Amahi HDA for additional storage space.&lt;br /&gt;
&lt;br /&gt;
We'll detail how to add such hard drives, and how to put them to good use.&lt;br /&gt;
&lt;br /&gt;
=Important Notes=&lt;br /&gt;
&lt;br /&gt;
* This is a how-to on adding additional drives to your HDA.&lt;br /&gt;
* Amahi cannot be held responsible for any data breakage or destruction arising from the use or misuse of this script. We provide it as a service in good will. You accept this automatically if you use the script.&lt;br /&gt;
* This page and script does not support GUID-partitioned drives (such as drives previously in a Mac or have GPT partition tables). You can find what your partition is like with &amp;lt;code&amp;gt;fdisk -l&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Make sure your drive is detected by Fedora=&lt;br /&gt;
&lt;br /&gt;
Open a Terminal, and type the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; background-color: #E6F2FF; margin: 0 1em;&amp;quot;&amp;gt;&lt;br /&gt;
 ls -1 /dev/disk/by-id/ | egrep -v &amp;quot;part|scsi&amp;quot;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Look for the line that matches the hard drive you added.&lt;br /&gt;
&lt;br /&gt;
IDE and SATA hard drives will start with '''ata-''' and USB hard drives will start with '''usb-'''.&amp;lt;br/&amp;gt;&lt;br /&gt;
Look for your hard drive model and serial number.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
 [gb@hda ~]$ ls -1 /dev/disk/by-id/ | egrep -v &amp;quot;part|scsi&amp;quot;&lt;br /&gt;
 ata-Hitachi_HDS722020ALA330_JK1131YAGDU37V&lt;br /&gt;
 ata-ST31000528AS_6VP08W65&lt;br /&gt;
 ata-ST3750640A_3QD0LJN8&lt;br /&gt;
 ata-ST3750640A_5QD27A57&lt;br /&gt;
 ata-WDC_WD10EADS-00L5B1_WD-WCAU4C700358&lt;br /&gt;
 usb-ST310003_33AS_9E1CA6FFFFFF-0:0&lt;br /&gt;
 usb-ST375064_0A_2009031309E2-0:0&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Install prerequisites=&lt;br /&gt;
&lt;br /&gt;
[[Open Terminal as root|In a Terminal, as root]], type the following (two) commands:&lt;br /&gt;
&lt;br /&gt;
* Fedora&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px; text-align: left&amp;quot;&amp;gt;&lt;br /&gt;
 yum -y install pmount fuse fuse-libs ntfs-3g gparted util-linux-ng&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Ubuntu &lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px; text-align: left&amp;quot;&amp;gt;&lt;br /&gt;
 sudo apt-get -y install gparted&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Drives must be formatted as '''MBR''' not '''GUID/GPT''' for hda-diskmount to recognize the disk.&lt;br /&gt;
&lt;br /&gt;
=Partition and format the hard drive=&lt;br /&gt;
&lt;br /&gt;
This step is optional, and should only be executed if you want to delete the content of your new hard drive, or if the hard drive has not yet been formatted.&lt;br /&gt;
&lt;br /&gt;
You should (unless you have a good reason not to) use GParted to partition and format your hard drive.&amp;lt;br/&amp;gt;&lt;br /&gt;
Not having X installed would qualify as a good reason! In such cases, either use SSH X11 Forwarding (Google that if you'd like to use this), or [[Adding_a_second_hard_drive_to_your_HDA#Using_cfdisk|use cfdisk]] from a [[Open Terminal as root|Terminal, as root]].&lt;br /&gt;
&lt;br /&gt;
You'll probably want to create a single partition, and format it as ''ext3''.&amp;lt;br/&amp;gt;&lt;br /&gt;
Note that Windows can't read ext3 partitions, so if you want dual-boot Windows on your Amahi PC, or if you intend to connect this hard drive to a Windows computer later, you should format as NTFS instead, and you should do that on Windows before you connect the drive in your HDA.&amp;lt;br/&amp;gt;&lt;br /&gt;
Remember that using NTFS partitions on Linux will be slower that using ext3 partitions, so you should only use NTFS if you really need it.&amp;lt;br/&amp;gt;&lt;br /&gt;
How much slower: compare the blue bars (NTFS-3G) with the red bars (ext3) on [http://www.tuxera.com/products/tuxera-ntfs-commercial/performance/ this graph].&lt;br /&gt;
&lt;br /&gt;
To know what device (/dev/sdX) you need to partition and format, use the following command, in a [[Open Terminal as root|Terminal, as root]]:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
 ls -l /dev/disk/by-id/&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Find the row corresponding to your hard drive, and look at the end of the line to identify the correct device to use.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&amp;lt;small&amp;gt;&lt;br /&gt;
 [gb@hda ~]$ ls -l /dev/disk/by-id/&lt;br /&gt;
 total 0&lt;br /&gt;
 lrwxrwxrwx 1 root root  9 2010-02-18 03:24  ata-Hitachi_HDS722020ALA330_JK1131YAGDU37V -&amp;gt; ../../sda&lt;br /&gt;
 lrwxrwxrwx 1 root root 10 2010-02-18 03:24 ata-Hitachi_HDS722020ALA330_JK1131YAGDU37V-part1 -&amp;gt; ../../sda1&lt;br /&gt;
 lrwxrwxrwx 1 root root  9 2010-02-18 03:24 ata-ST31000528AS_6VP08W65 -&amp;gt; ../../sdb&lt;br /&gt;
&amp;lt;/small&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the above example, /dev/sdb would be what I would select in GParted (or use on the cfdisk command). sda in my primary hard drive, and sdb my second hard drive.&lt;br /&gt;
&lt;br /&gt;
==Using GParted==&lt;br /&gt;
From the HDA desktop (or using VNC), [[Open Terminal as root]] and type '''gparted''' to launch the GParted application.&lt;br /&gt;
&lt;br /&gt;
Select the device (/dev/sdX) that you found above.&lt;br /&gt;
&lt;br /&gt;
In the above example, /dev/sdb would be what I would select in GParted.&lt;br /&gt;
&lt;br /&gt;
There are many easy to follow guides online on how to use GParted. You should Google for one, to find one that seems clear to you.&lt;br /&gt;
&lt;br /&gt;
[http://www.mepisguides.com/Mepis-6/Install/gparted/gparted-set-partition.html Here's one] that looks simple. Just use ext3 instead of fat32 in you follow that tutorial.&lt;br /&gt;
&lt;br /&gt;
Note that gparted supports GUID-partitioned drives, however, these directions and script do not support it at the moment.&lt;br /&gt;
&lt;br /&gt;
==Using cfdisk==&lt;br /&gt;
From a [[Open Terminal as root|terminal, as root]], type '''cfdisk /dev/sdX''' to launch the cfdisk application.&lt;br /&gt;
&lt;br /&gt;
If you have a GUID-partitioned drive, cfdisk will complain. GUID partitions are not supported.&lt;br /&gt;
&lt;br /&gt;
Make sure to replace /dev/sdX with the actual device (eg. /dev/sdb) that you found above.&lt;br /&gt;
&lt;br /&gt;
If your hard drive contains existing partitions, select them one by one at the top (using up/down arrow keys), then select the '''[ Delete ]''' action (using the left/right arrow keys), then hit ENTER.&lt;br /&gt;
&lt;br /&gt;
You should now only have Free Space listed at the top.&amp;lt;br/&amp;gt;&lt;br /&gt;
Select the '''[ New ]''' action, and accept the default (Primary, and size).&lt;br /&gt;
&lt;br /&gt;
You should now have a single partition listed at the top, of type Linux.&amp;lt;br/&amp;gt;&lt;br /&gt;
Select the '''[ Write ]''' action, then '''[ Quit ]'''.&lt;br /&gt;
&lt;br /&gt;
Now that you partitioned your drive, you need to format your newly created partition.&amp;lt;br/&amp;gt;&lt;br /&gt;
To format as EXT3, use this command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
 mkfs.ext3 -j /dev/sdX1&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Replace ext3 with ext4 in the above command to format your partition as EXT4 instead of EXT3.&lt;br /&gt;
&lt;br /&gt;
'''/dev/sdX1''' in the above command refers to the partition your created in cfdisk.&amp;lt;br/&amp;gt;&lt;br /&gt;
Go back in cfdisk, and check the ''Name'' column if you're unsure.&amp;lt;br/&amp;gt;&lt;br /&gt;
If you see ''sdb1'' in the name column, you should use '''/dev/sdb1''' in the above command.&lt;br /&gt;
&lt;br /&gt;
==Partition over 2.1TB==&lt;br /&gt;
Here is a work around for drives with partitions over 2.1TB like the new 3TB drives.&lt;br /&gt;
&lt;br /&gt;
Page: [[Partitions_Over_2.1_TB]]&lt;br /&gt;
&lt;br /&gt;
=Mount the hard drive=&lt;br /&gt;
  &lt;br /&gt;
==Using hda-diskmount script==&lt;br /&gt;
A script is provided with Amahi that will look for unmounted partitions in your system, and mount any it finds.&lt;br /&gt;
&lt;br /&gt;
[[Open Terminal as root|In a Terminal, as root]], type the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
 hda-diskmount&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px; text-align: left;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;small&amp;gt;&lt;br /&gt;
 [root@hda ~]$ hda-diskmount&lt;br /&gt;
 ****************************************************************&lt;br /&gt;
 Ignoring /dev/sda1 - already in /etc/fstab or mounted&lt;br /&gt;
 ****************************************************************&lt;br /&gt;
 Mounted /dev/&amp;lt;strong style=&amp;quot;color:green&amp;quot;&amp;gt;sdb1&amp;lt;/strong&amp;gt; as '&amp;lt;strong style=&amp;quot;color:red&amp;quot;&amp;gt;/var/hda/files/drives/sdb1&amp;lt;/strong&amp;gt;' (read-write)&lt;br /&gt;
 You may want your system to mount it every time you boot.&lt;br /&gt;
 To do so, add this line VERY CAREFULLY to /etc/fstab and reboot:&lt;br /&gt;
 &amp;lt;strong style=&amp;quot;color:blue&amp;quot;&amp;gt;UUID=9d972abc-1639-44df-a60e-668618d40236 /var/hda/files/drives/sdb1 ext4 defaults 1 2&amp;lt;/strong&amp;gt;&lt;br /&gt;
 ****************************************************************&lt;br /&gt;
 All Linux, Windows and Mac partitions on non-removable disks have been mounted&lt;br /&gt;
&amp;lt;/small&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Do '''not''' edit /etc/fstab just yet. What you'll need to add there will depend on how you want to use the extra storage. More about that below.&amp;lt;br/&amp;gt;&lt;br /&gt;
Just note down the information in bold (green, red and blue). We'll use them below.&lt;br /&gt;
&lt;br /&gt;
Note about ext4 in the blue line above: that doesn't necessarily mean your partition is formatted as ext4. It means the ext4 driver will be used to mount your partition. Since that driver is backward compatible, it can be safely used to mount ext2, ext3 and ext4 partitions.&lt;br /&gt;
&lt;br /&gt;
If you get something like ''Disk /dev/dm-0 doesn't contain a valid partition table'' or ''mount: unknown file system type 'lvm2pv''' its because you have LVM's that 'fdisk' can not recognize (or something similar). It's nothing to worry about if you get that when executing the hda-diskmount script.&lt;br /&gt;
&lt;br /&gt;
If you have changed the order of your installed hard drives, hda-diskmount may return the following message:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
Ignoring /dev/sda1 - already in /etc/fstab as /dev/sda1&lt;br /&gt;
This device appears to be commented out of your /etc/fstab. You will need to remove it from there for hda-diskmount to be able to mount it.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This might occur if you have made changes to the drive configuration order after you installed Amahi.  If you want to stay with the reconfigured drive order, instructions on how to fix this are in the next section, Manually setting up the disk mount order.&lt;br /&gt;
&lt;br /&gt;
==Manually setting up the disk mount order ==&lt;br /&gt;
&lt;br /&gt;
1.  First, get the UUID for each drive by opening a terminal and entering command &lt;br /&gt;
&lt;br /&gt;
Ubuntu:&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
gstreet@gstreet-MicroServer:~$ sudo blkid&lt;br /&gt;
[sudo] password for gstreet:&lt;br /&gt;
/dev/sda1: LABEL=&amp;quot;Seagate-Alpha2TB&amp;quot; UUID=&amp;quot;55d9333f-d801-425a-b2af-d65c5966d56f&amp;quot; TYPE=&amp;quot;ext4&amp;quot; &lt;br /&gt;
/dev/sdb1: LABEL=&amp;quot;Seagate-Beta2TB&amp;quot; UUID=&amp;quot;5bd5498f-30c1-4780-948e-ca46656507d2&amp;quot; TYPE=&amp;quot;ext4&amp;quot; &lt;br /&gt;
/dev/sdc1: LABEL=&amp;quot;WD-Charlie2TB&amp;quot; UUID=&amp;quot;a7337504-376a-4d36-9f7a-1a24c0f55fbd&amp;quot; TYPE=&amp;quot;ext4&amp;quot; &lt;br /&gt;
/dev/sdd1: LABEL=&amp;quot;WD-Delta2TB&amp;quot; UUID=&amp;quot;8d881dcb-8de3-4621-b9bd-00025196868a&amp;quot; TYPE=&amp;quot;ext4&amp;quot; &lt;br /&gt;
/dev/sde1: LABEL=&amp;quot;root&amp;quot; UUID=&amp;quot;4d6f8004-d190-4234-a03b-b68de988abf0&amp;quot; TYPE=&amp;quot;ext4&amp;quot; &lt;br /&gt;
/dev/sde3: LABEL=&amp;quot;home&amp;quot; UUID=&amp;quot;d0531fa1-9311-4d53-b838-f35898adbd98&amp;quot; TYPE=&amp;quot;ext4&amp;quot; &lt;br /&gt;
/dev/sde5: LABEL=&amp;quot;swap&amp;quot; UUID=&amp;quot;3c39206c-ba60-47ff-a1fe-f5821b2ab543&amp;quot; TYPE=&amp;quot;swap&amp;quot;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
In this case, the user has four data drives (sda1, sdb1, sdc1, sdd1) and the Operating system assigned to a fifth drive, sde.&lt;br /&gt;
&lt;br /&gt;
Take note of the UUID's for each drive.  Easiest to cut and paste UUID's straight from the terminal  - no typo's!&lt;br /&gt;
&lt;br /&gt;
2. Then edit /etc/fstab to mount each drive - for novices, easiest to do this using a graphical editor.  You might consider first making a copy called fstab.bak (use the &amp;quot;save as&amp;quot; command, close file and then gedit the original fstab again) so that you can recover the original fstab file if you make mistakes.&lt;br /&gt;
&lt;br /&gt;
Ubuntu: {{Code|Code=&lt;br /&gt;
sudo gedit /etc/fstab&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
3.  Then carefully add the following line for each disk into the end of the fstab file.  Make sure you paste in the right UUID, drive number and drive file system (ext4 in this case). &lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
UUID=55d9333f-d801-425a-b2af-d65c5966d56f /var/hda/files/drives/drive1 ext4 defaults 1 2&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It should look something like the following when lines are added for each of the five drives in this example.    Note lines beginning with # are comments  where the remainder of the line is ignored) &lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
 #  Mounting Greyhole Drives for Drive Pool.  &lt;br /&gt;
 #&lt;br /&gt;
 # Drive1 = Seagate-Alpha2TB in Microserver Bay 1 from left &lt;br /&gt;
 UUID=55d9333f-d801-425a-b2af-d65c5966d56f /var/hda/files/drives/drive1 ext4 defaults 1 2&lt;br /&gt;
 #&lt;br /&gt;
 # Drive2 = Seagate-Beta2TB in Microserver Bay 2 from left &lt;br /&gt;
 UUID=5bd5498f-30c1-4780-948e-ca46656507d2 /var/hda/files/drives/drive2 ext4 defaults 1 2&lt;br /&gt;
 #&lt;br /&gt;
 # Drive3 = WD-Charlie2TB in Microserver Bay 3 from left &lt;br /&gt;
 UUID=a7337504-376a-4d36-9f7a-1a24c0f55fbd /var/hda/files/drives/drive3 ext4 defaults 1 2&lt;br /&gt;
 #&lt;br /&gt;
 # Drive4 = WD-Delta2TB in Microserver Bay 4 from left &lt;br /&gt;
 UUID=8d881dcb-8de3-4621-b9bd-00025196868a /var/hda/files/drives/drive4 ext4 defaults 1 2&lt;br /&gt;
 #&lt;br /&gt;
 # Drive5 = 250GB OS Drive mounted in Optical Drive bay&lt;br /&gt;
 UUID=&amp;quot;4d6f8004-d190-4234-a03b-b68de988abf0 /var/hda/files/drives/drive5 ext4 defaults 1 2&lt;br /&gt;
 #&lt;br /&gt;
 #&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that the hda-dismount command had already added lines to mount my OS drive which had two partitions (root or /, and home).  Save file and close.&lt;br /&gt;
&lt;br /&gt;
4) Save file and reboot machine. &lt;br /&gt;
&lt;br /&gt;
5) Check that drives have successfully mounted in Amahi hda (Setup - Shares - Storage Pool)&lt;br /&gt;
&lt;br /&gt;
In this case, if all drives mounted successfully, it should look like:&lt;br /&gt;
&lt;br /&gt;
[[File:Gstreet_greyhole_pool.png|options|caption]]&lt;br /&gt;
&lt;br /&gt;
==Test your hard drive==&lt;br /&gt;
Optionally, you can test your new drive for bad blocks.&amp;lt;br/&amp;gt;&lt;br /&gt;
Note that this step can take a ''long'' time to complete! You'll probably want to start it in the evening, to have it completed in the morning.&lt;br /&gt;
&lt;br /&gt;
To do so, [[Open Terminal as root|in a Terminal, as root]], type the following command. Replace &amp;lt;strong style=&amp;quot;color:green&amp;quot;&amp;gt;sdb1&amp;lt;/strong&amp;gt; with the (green) value you received from hda-diskmount.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
e2fsck -cn /dev/&amp;lt;strong style=&amp;quot;color:green&amp;quot;&amp;gt;sdb1&amp;lt;/strong&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You'll receive a warning that says &amp;quot;WARNING!!!  Running e2fsck on a mounted filesystem may cause SEVERE filesystem damage. Do you really want to continue (y/n)?&amp;quot;&amp;lt;br/&amp;gt;&lt;br /&gt;
Answer ''yes''. The -cn option we're using can safely be used on mounted filesystems.&lt;br /&gt;
&lt;br /&gt;
=Use the hard drive=&lt;br /&gt;
&lt;br /&gt;
You have a choice here on how to use your new hard drive storage space. We'll offer some examples.&lt;br /&gt;
&lt;br /&gt;
==Use the hard drive for all shares==&lt;br /&gt;
&lt;br /&gt;
If you want all your shares to be on your new hard drive, here's how to do that.&lt;br /&gt;
&lt;br /&gt;
First, you'll want to move all you previous shares data, if any, into your new drive.&amp;lt;br/&amp;gt;&lt;br /&gt;
You only need to do this next command if you have data that you care about in the /var/hda/files/* folders.&amp;lt;br/&amp;gt;&lt;br /&gt;
[[Open Terminal as root|In a Terminal, as root]], type the following command. Replace the path in red with the path you received when you ran hda-diskmount.&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
 mv /var/hda/files/* &amp;lt;strong style=&amp;quot;color:red&amp;quot;&amp;gt;/var/hda/files/drives/sdb1/&amp;lt;/strong&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
You'll get a warning about &amp;quot;cannot move `/var/hda/files/drives' to a subdirectory of itself&amp;quot;; that is fine, ignore that.&lt;br /&gt;
&lt;br /&gt;
Next, you'll need to unmount your new hard drive, and remount it as /var/hda/files&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
 umount /var/hda/files/drives/sdb1/&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
 nano /etc/fstab&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In nano, you'll need to add a new line at the bottom. Take the line that hda-diskmount gave you (the blue one), and change the second value (the path).&amp;lt;br/&amp;gt;&lt;br /&gt;
Replace the second value with '''/var/hda/files'''.&lt;br /&gt;
&lt;br /&gt;
hda-diskmount gave me:&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;span style=&amp;quot;color:blue&amp;quot;&amp;gt;UUID=9d972abc-1639-44df-a60e-668618d40236 &amp;lt;strong&amp;gt;/var/hda/files/drives/sdb1&amp;lt;/strong&amp;gt; ext4 defaults 1 2&amp;lt;/span&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So I should add this instead:&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
 UUID=9d972abc-1639-44df-a60e-668618d40236 &amp;lt;strong&amp;gt;/var/hda/files&amp;lt;/strong&amp;gt; ext4 defaults 1 2&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Make sure you do '''not''' change anything else from the blue line you received from hda-diskmount.&amp;lt;br/&amp;gt;&lt;br /&gt;
It might not be the same thing as the above example; you need to use the values you've received.&lt;br /&gt;
&lt;br /&gt;
Save and exit nano (CTRL-X, Y, ENTER), and try your new mount:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
 mount -a&lt;br /&gt;
 ls /var/hda/files/&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
That last command should show you the content of you new hard drive.&lt;br /&gt;
&lt;br /&gt;
That's it. All your shares in /var/hda/files are now on your new hard drive.&lt;br /&gt;
&lt;br /&gt;
==Use the hard drive for only some shares==&lt;br /&gt;
&lt;br /&gt;
If you want only some of your shares to be on your new hard drive, here's how to do that.&lt;br /&gt;
&lt;br /&gt;
First, you'll want to move your previous shares data, if any, into your new drive.&amp;lt;br/&amp;gt;&lt;br /&gt;
You only need to do this next command if you have data that you care about in the /var/hda/files/* folders (that you want on the new drive).&amp;lt;br/&amp;gt;&lt;br /&gt;
[[Open Terminal as root|In a Terminal, as root]], type the following command. Replace the path in red with the path you received when you ran hda-diskmount. Replace '''something''' with the name of the share you want to have on your new drive (the share should already exist).&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
 mv /var/hda/files/&amp;lt;strong&amp;gt;something&amp;lt;/strong&amp;gt; &amp;lt;strong style=&amp;quot;color:red&amp;quot;&amp;gt;/var/hda/files/drives/sdb1/&amp;lt;/strong&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Repeat with every share you want on your new drive.&lt;br /&gt;
&lt;br /&gt;
Next, you'll need to make the mount permanent&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
 umount /var/hda/files/drives/sdb1&amp;lt;br/&amp;gt;&lt;br /&gt;
 nano /etc/fstab&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In nano, you'll need to add a new line at the bottom. Take the line that hda-diskmount gave you, and insert that.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So, following previous examples, I should add this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px; text-align: left;&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;span style=&amp;quot;color: blue;&amp;quot;&amp;gt;UUID=9d972abc-1639-44df-a60e-668618d40236 /var/hda/files/drives/sdb1 ext4 defaults 1 2&amp;lt;/span&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Save and exit nano (CTRL-X, Y, ENTER), and try your new mount:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
 mount -a&lt;br /&gt;
 ls /var/hda/files/drives/sdb1&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
That last command should show you the content of you new hard drive.&lt;br /&gt;
&lt;br /&gt;
Now, you need to update the location of the moved shares within Amahi. Go to your &amp;lt;strong&amp;gt;Amahi Dashboard&amp;lt;/strong&amp;gt;, click on &amp;lt;strong&amp;gt;Setup&amp;lt;/strong&amp;gt;, then &amp;lt;strong&amp;gt;Shares&amp;lt;/strong&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
Click on one of the shares that you have moved. This will open a panel revealing the share settings. Click on the location (the bit that is shown with a dotted underline) and it will change to an edit box. Update the location to match the new share location. &lt;br /&gt;
&lt;br /&gt;
For example, the original movies location was: &amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;/var/hda/files/movies&amp;lt;/span&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
The new location might be: &amp;lt;span style=&amp;quot;color:blue&amp;quot;&amp;gt;/var/hda/files/drives/sdb1/movies&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Repeat for any other shares that you have moved. Check that you can access these shares from another machine within your network.&lt;br /&gt;
&lt;br /&gt;
Finally, if you have any services that depend on the location of these shares, make sure they are configured to use the new share location. For example, if you have a DLNA server installed, check its configuration files to make sure that it can find any media folders that have been moved. Secondly, &amp;lt;em&amp;gt;check that all such services start correctly and behave as expected&amp;lt;/em&amp;gt;. If the service doesn't start, it may be that it is testing for a specific location during the service startup. Check the startup files in &amp;lt;strong&amp;gt;/etc/init.d&amp;lt;/strong&amp;gt; to see if this is the case.&lt;br /&gt;
&lt;br /&gt;
That's it. Your share(s) are now on your new hard drive.&lt;br /&gt;
&lt;br /&gt;
==Use the hard drive in your Greyhole storage pool==&lt;br /&gt;
&lt;br /&gt;
If you want to add your new hard drive to your Greyhole storage pool, here's how to do that.&lt;br /&gt;
&lt;br /&gt;
First, you'll need to make the mount permanent. [[Open Terminal as root|In a Terminal, as root]], type the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
 umount /var/hda/files/drives/sdb1&lt;br /&gt;
 nano /etc/fstab&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In nano, you'll need to add a new line at the bottom. Take the line that hda-diskmount gave you, and insert that.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So, following previous examples, I should add this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px; text-align: left;&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;span style=&amp;quot;color: blue;&amp;quot;&amp;gt;UUID=9d972abc-1639-44df-a60e-668618d40236 /var/hda/files/drives/sdb1 ext4 defaults 1 2&amp;lt;/span&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Save and exit nano (CTRL-X, Y, ENTER), and try your new mount:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
 mount -a&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Finally, you'll need to configure Greyhole to select your new partition. To configure Greyhole, Advanced Settings must be enabled under [http://hda/setup?sub=settings&amp;amp;tab=setting Setup &amp;amp;gt; Settings].&lt;br /&gt;
&lt;br /&gt;
In the [http://hda/setup?sub=disk_pooling&amp;amp;tab=share Shares &amp;amp;gt; Storage Pool page] of your Amahi dashboard, you'll see a list of mounted partitions, with checkboxes next to each, allowing you to include those partitions in your storage pool.&lt;br /&gt;
&lt;br /&gt;
You should now have a new row in there, referring to /var/hda/files/drives/sdb1.&lt;br /&gt;
&lt;br /&gt;
Select it (click the checkbox).&lt;br /&gt;
&lt;br /&gt;
That's it. Your new hard drive just increased your Greyhole storage pool capacity.&lt;/div&gt;</summary>
		<author><name>Carl Greenstreet</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Adding_a_second_hard_drive_to_your_HDA&amp;diff=63014</id>
		<title>Adding a second hard drive to your HDA</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Adding_a_second_hard_drive_to_your_HDA&amp;diff=63014"/>
		<updated>2012-11-08T11:38:48Z</updated>

		<summary type="html">&lt;p&gt;Carl Greenstreet: /* Manually setting up the disk mount order */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{MessageBox|&lt;br /&gt;
backgroundcolor	= #faa|&lt;br /&gt;
image	=Warning.png|&lt;br /&gt;
heading	=WARNING|&lt;br /&gt;
message = This is recommended only for advanced users, proceed with caution.}}&lt;br /&gt;
[[Adding_drives_to_your_HDA|Adding drives to your HDA]] is another howto on doing this, a bit shorter and less elaborate, which can be good for some people, specially a novice unfamiliar with doing any of this.&lt;br /&gt;
&lt;br /&gt;
More hard drives can be added in your Amahi HDA for additional storage space.&lt;br /&gt;
&lt;br /&gt;
We'll detail how to add such hard drives, and how to put them to good use.&lt;br /&gt;
&lt;br /&gt;
=Important Notes=&lt;br /&gt;
&lt;br /&gt;
* This is a how-to on adding additional drives to your HDA.&lt;br /&gt;
* Amahi cannot be held responsible for any data breakage or destruction arising from the use or misuse of this script. We provide it as a service in good will. You accept this automatically if you use the script.&lt;br /&gt;
* This page and script does not support GUID-partitioned drives (such as drives previously in a Mac or have GPT partition tables). You can find what your partition is like with &amp;lt;code&amp;gt;fdisk -l&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Make sure your drive is detected by Fedora=&lt;br /&gt;
&lt;br /&gt;
Open a Terminal, and type the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; background-color: #E6F2FF; margin: 0 1em;&amp;quot;&amp;gt;&lt;br /&gt;
 ls -1 /dev/disk/by-id/ | egrep -v &amp;quot;part|scsi&amp;quot;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Look for the line that matches the hard drive you added.&lt;br /&gt;
&lt;br /&gt;
IDE and SATA hard drives will start with '''ata-''' and USB hard drives will start with '''usb-'''.&amp;lt;br/&amp;gt;&lt;br /&gt;
Look for your hard drive model and serial number.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
 [gb@hda ~]$ ls -1 /dev/disk/by-id/ | egrep -v &amp;quot;part|scsi&amp;quot;&lt;br /&gt;
 ata-Hitachi_HDS722020ALA330_JK1131YAGDU37V&lt;br /&gt;
 ata-ST31000528AS_6VP08W65&lt;br /&gt;
 ata-ST3750640A_3QD0LJN8&lt;br /&gt;
 ata-ST3750640A_5QD27A57&lt;br /&gt;
 ata-WDC_WD10EADS-00L5B1_WD-WCAU4C700358&lt;br /&gt;
 usb-ST310003_33AS_9E1CA6FFFFFF-0:0&lt;br /&gt;
 usb-ST375064_0A_2009031309E2-0:0&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Install prerequisites=&lt;br /&gt;
&lt;br /&gt;
[[Open Terminal as root|In a Terminal, as root]], type the following (two) commands:&lt;br /&gt;
&lt;br /&gt;
* Fedora&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px; text-align: left&amp;quot;&amp;gt;&lt;br /&gt;
 yum -y install pmount fuse fuse-libs ntfs-3g gparted util-linux-ng&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Ubuntu &lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px; text-align: left&amp;quot;&amp;gt;&lt;br /&gt;
 sudo apt-get -y install gparted&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Drives must be formatted as '''MBR''' not '''GUID/GPT''' for hda-diskmount to recognize the disk.&lt;br /&gt;
&lt;br /&gt;
=Partition and format the hard drive=&lt;br /&gt;
&lt;br /&gt;
This step is optional, and should only be executed if you want to delete the content of your new hard drive, or if the hard drive has not yet been formatted.&lt;br /&gt;
&lt;br /&gt;
You should (unless you have a good reason not to) use GParted to partition and format your hard drive.&amp;lt;br/&amp;gt;&lt;br /&gt;
Not having X installed would qualify as a good reason! In such cases, either use SSH X11 Forwarding (Google that if you'd like to use this), or [[Adding_a_second_hard_drive_to_your_HDA#Using_cfdisk|use cfdisk]] from a [[Open Terminal as root|Terminal, as root]].&lt;br /&gt;
&lt;br /&gt;
You'll probably want to create a single partition, and format it as ''ext3''.&amp;lt;br/&amp;gt;&lt;br /&gt;
Note that Windows can't read ext3 partitions, so if you want dual-boot Windows on your Amahi PC, or if you intend to connect this hard drive to a Windows computer later, you should format as NTFS instead, and you should do that on Windows before you connect the drive in your HDA.&amp;lt;br/&amp;gt;&lt;br /&gt;
Remember that using NTFS partitions on Linux will be slower that using ext3 partitions, so you should only use NTFS if you really need it.&amp;lt;br/&amp;gt;&lt;br /&gt;
How much slower: compare the blue bars (NTFS-3G) with the red bars (ext3) on [http://www.tuxera.com/products/tuxera-ntfs-commercial/performance/ this graph].&lt;br /&gt;
&lt;br /&gt;
To know what device (/dev/sdX) you need to partition and format, use the following command, in a [[Open Terminal as root|Terminal, as root]]:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
 ls -l /dev/disk/by-id/&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Find the row corresponding to your hard drive, and look at the end of the line to identify the correct device to use.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&amp;lt;small&amp;gt;&lt;br /&gt;
 [gb@hda ~]$ ls -l /dev/disk/by-id/&lt;br /&gt;
 total 0&lt;br /&gt;
 lrwxrwxrwx 1 root root  9 2010-02-18 03:24  ata-Hitachi_HDS722020ALA330_JK1131YAGDU37V -&amp;gt; ../../sda&lt;br /&gt;
 lrwxrwxrwx 1 root root 10 2010-02-18 03:24 ata-Hitachi_HDS722020ALA330_JK1131YAGDU37V-part1 -&amp;gt; ../../sda1&lt;br /&gt;
 lrwxrwxrwx 1 root root  9 2010-02-18 03:24 ata-ST31000528AS_6VP08W65 -&amp;gt; ../../sdb&lt;br /&gt;
&amp;lt;/small&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the above example, /dev/sdb would be what I would select in GParted (or use on the cfdisk command). sda in my primary hard drive, and sdb my second hard drive.&lt;br /&gt;
&lt;br /&gt;
==Using GParted==&lt;br /&gt;
From the HDA desktop (or using VNC), [[Open Terminal as root]] and type '''gparted''' to launch the GParted application.&lt;br /&gt;
&lt;br /&gt;
Select the device (/dev/sdX) that you found above.&lt;br /&gt;
&lt;br /&gt;
In the above example, /dev/sdb would be what I would select in GParted.&lt;br /&gt;
&lt;br /&gt;
There are many easy to follow guides online on how to use GParted. You should Google for one, to find one that seems clear to you.&lt;br /&gt;
&lt;br /&gt;
[http://www.mepisguides.com/Mepis-6/Install/gparted/gparted-set-partition.html Here's one] that looks simple. Just use ext3 instead of fat32 in you follow that tutorial.&lt;br /&gt;
&lt;br /&gt;
Note that gparted supports GUID-partitioned drives, however, these directions and script do not support it at the moment.&lt;br /&gt;
&lt;br /&gt;
==Using cfdisk==&lt;br /&gt;
From a [[Open Terminal as root|terminal, as root]], type '''cfdisk /dev/sdX''' to launch the cfdisk application.&lt;br /&gt;
&lt;br /&gt;
If you have a GUID-partitioned drive, cfdisk will complain. GUID partitions are not supported.&lt;br /&gt;
&lt;br /&gt;
Make sure to replace /dev/sdX with the actual device (eg. /dev/sdb) that you found above.&lt;br /&gt;
&lt;br /&gt;
If your hard drive contains existing partitions, select them one by one at the top (using up/down arrow keys), then select the '''[ Delete ]''' action (using the left/right arrow keys), then hit ENTER.&lt;br /&gt;
&lt;br /&gt;
You should now only have Free Space listed at the top.&amp;lt;br/&amp;gt;&lt;br /&gt;
Select the '''[ New ]''' action, and accept the default (Primary, and size).&lt;br /&gt;
&lt;br /&gt;
You should now have a single partition listed at the top, of type Linux.&amp;lt;br/&amp;gt;&lt;br /&gt;
Select the '''[ Write ]''' action, then '''[ Quit ]'''.&lt;br /&gt;
&lt;br /&gt;
Now that you partitioned your drive, you need to format your newly created partition.&amp;lt;br/&amp;gt;&lt;br /&gt;
To format as EXT3, use this command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
 mkfs.ext3 -j /dev/sdX1&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Replace ext3 with ext4 in the above command to format your partition as EXT4 instead of EXT3.&lt;br /&gt;
&lt;br /&gt;
'''/dev/sdX1''' in the above command refers to the partition your created in cfdisk.&amp;lt;br/&amp;gt;&lt;br /&gt;
Go back in cfdisk, and check the ''Name'' column if you're unsure.&amp;lt;br/&amp;gt;&lt;br /&gt;
If you see ''sdb1'' in the name column, you should use '''/dev/sdb1''' in the above command.&lt;br /&gt;
&lt;br /&gt;
==Partition over 2.1TB==&lt;br /&gt;
Here is a work around for drives with partitions over 2.1TB like the new 3TB drives.&lt;br /&gt;
&lt;br /&gt;
Page: [[Partitions_Over_2.1_TB]]&lt;br /&gt;
&lt;br /&gt;
=Mount the hard drive=&lt;br /&gt;
  &lt;br /&gt;
==Using hda-diskmount script==&lt;br /&gt;
A script is provided with Amahi that will look for unmounted partitions in your system, and mount any it finds.&lt;br /&gt;
&lt;br /&gt;
[[Open Terminal as root|In a Terminal, as root]], type the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
 hda-diskmount&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px; text-align: left;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;small&amp;gt;&lt;br /&gt;
 [root@hda ~]$ hda-diskmount&lt;br /&gt;
 ****************************************************************&lt;br /&gt;
 Ignoring /dev/sda1 - already in /etc/fstab or mounted&lt;br /&gt;
 ****************************************************************&lt;br /&gt;
 Mounted /dev/&amp;lt;strong style=&amp;quot;color:green&amp;quot;&amp;gt;sdb1&amp;lt;/strong&amp;gt; as '&amp;lt;strong style=&amp;quot;color:red&amp;quot;&amp;gt;/var/hda/files/drives/sdb1&amp;lt;/strong&amp;gt;' (read-write)&lt;br /&gt;
 You may want your system to mount it every time you boot.&lt;br /&gt;
 To do so, add this line VERY CAREFULLY to /etc/fstab and reboot:&lt;br /&gt;
 &amp;lt;strong style=&amp;quot;color:blue&amp;quot;&amp;gt;UUID=9d972abc-1639-44df-a60e-668618d40236 /var/hda/files/drives/sdb1 ext4 defaults 1 2&amp;lt;/strong&amp;gt;&lt;br /&gt;
 ****************************************************************&lt;br /&gt;
 All Linux, Windows and Mac partitions on non-removable disks have been mounted&lt;br /&gt;
&amp;lt;/small&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Do '''not''' edit /etc/fstab just yet. What you'll need to add there will depend on how you want to use the extra storage. More about that below.&amp;lt;br/&amp;gt;&lt;br /&gt;
Just note down the information in bold (green, red and blue). We'll use them below.&lt;br /&gt;
&lt;br /&gt;
Note about ext4 in the blue line above: that doesn't necessarily mean your partition is formatted as ext4. It means the ext4 driver will be used to mount your partition. Since that driver is backward compatible, it can be safely used to mount ext2, ext3 and ext4 partitions.&lt;br /&gt;
&lt;br /&gt;
If you get something like ''Disk /dev/dm-0 doesn't contain a valid partition table'' or ''mount: unknown file system type 'lvm2pv''' its because you have LVM's that 'fdisk' can not recognize (or something similar). It's nothing to worry about if you get that when executing the hda-diskmount script.&lt;br /&gt;
&lt;br /&gt;
If you have changed the order of your installed hard drives, hda-diskmount may return the following message:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
Ignoring /dev/sda1 - already in /etc/fstab as /dev/sda1&lt;br /&gt;
This device appears to be commented out of your /etc/fstab. You will need to remove it from there for hda-diskmount to be able to mount it.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This might occur if you have made changes to the drive configuration order after you installed Amahi.  If you want to stay with the reconfigured drive order, instructions on how to fix this are in the next section, Manually setting up the disk mount order.&lt;br /&gt;
&lt;br /&gt;
==Manually setting up the disk mount order ==&lt;br /&gt;
&lt;br /&gt;
1.  First, get the UUID for each drive by opening a terminal and entering command &lt;br /&gt;
&lt;br /&gt;
Ubuntu:&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
gstreet@gstreet-MicroServer:~$ sudo blkid&lt;br /&gt;
[sudo] password for gstreet:&lt;br /&gt;
/dev/sda1: LABEL=&amp;quot;Seagate-Alpha2TB&amp;quot; UUID=&amp;quot;55d9333f-d801-425a-b2af-d65c5966d56f&amp;quot; TYPE=&amp;quot;ext4&amp;quot; &lt;br /&gt;
/dev/sdb1: LABEL=&amp;quot;Seagate-Beta2TB&amp;quot; UUID=&amp;quot;5bd5498f-30c1-4780-948e-ca46656507d2&amp;quot; TYPE=&amp;quot;ext4&amp;quot; &lt;br /&gt;
/dev/sdc1: LABEL=&amp;quot;WD-Charlie2TB&amp;quot; UUID=&amp;quot;a7337504-376a-4d36-9f7a-1a24c0f55fbd&amp;quot; TYPE=&amp;quot;ext4&amp;quot; &lt;br /&gt;
/dev/sdd1: LABEL=&amp;quot;WD-Delta2TB&amp;quot; UUID=&amp;quot;8d881dcb-8de3-4621-b9bd-00025196868a&amp;quot; TYPE=&amp;quot;ext4&amp;quot; &lt;br /&gt;
/dev/sde1: LABEL=&amp;quot;root&amp;quot; UUID=&amp;quot;4d6f8004-d190-4234-a03b-b68de988abf0&amp;quot; TYPE=&amp;quot;ext4&amp;quot; &lt;br /&gt;
/dev/sde3: LABEL=&amp;quot;home&amp;quot; UUID=&amp;quot;d0531fa1-9311-4d53-b838-f35898adbd98&amp;quot; TYPE=&amp;quot;ext4&amp;quot; &lt;br /&gt;
/dev/sde5: LABEL=&amp;quot;swap&amp;quot; UUID=&amp;quot;3c39206c-ba60-47ff-a1fe-f5821b2ab543&amp;quot; TYPE=&amp;quot;swap&amp;quot;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
In this case, the user has four data drives (sda1, sdb1, sdc1, sdd1) and the Operating system assigned to a fifth drive, sde.&lt;br /&gt;
&lt;br /&gt;
Take note of the UUID's for each drive.  Easiest to cut and paste UUID's straight from the terminal  - no typo's!&lt;br /&gt;
&lt;br /&gt;
2. Then edit /etc/fstab to mount each drive - for novices, easiest to do this using a graphical editor.  You might consider first making a copy called fstab.bak (use the &amp;quot;save as&amp;quot; command, close file and then gedit the original fstab again) so that you can recover the original fstab file if you make mistakes.&lt;br /&gt;
&lt;br /&gt;
Ubuntu: {{Code|Code=&lt;br /&gt;
sudo gedit /etc/fstab&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
3.  Then carefully add the following line for each disk into the end of the fstab file &lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
UUID=55d9333f-d801-425a-b2af-d65c5966d56f /var/hda/files/drives/drive1 ext4 defaults 1 2&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It should look something like the following when lines are added for each of the five drives in this example.  Make sure you paste in the right UUID, drive number and drive file system (ext4 in this case).  Note lines beginning with # are comments  where the remainder of the line is ignored) &lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
 #  Mounting Greyhole Drives for Drive Pool.  &lt;br /&gt;
 #&lt;br /&gt;
 # Drive1 = Seagate-Alpha2TB in Microserver Bay 1 from left &lt;br /&gt;
 UUID=55d9333f-d801-425a-b2af-d65c5966d56f /var/hda/files/drives/drive1 ext4 defaults 1 2&lt;br /&gt;
 #&lt;br /&gt;
 # Drive2 = Seagate-Beta2TB in Microserver Bay 2 from left &lt;br /&gt;
 UUID=5bd5498f-30c1-4780-948e-ca46656507d2 /var/hda/files/drives/drive2 ext4 defaults 1 2&lt;br /&gt;
 #&lt;br /&gt;
 # Drive3 = WD-Charlie2TB in Microserver Bay 3 from left &lt;br /&gt;
 UUID=a7337504-376a-4d36-9f7a-1a24c0f55fbd /var/hda/files/drives/drive3 ext4 defaults 1 2&lt;br /&gt;
 #&lt;br /&gt;
 # Drive4 = WD-Delta2TB in Microserver Bay 4 from left &lt;br /&gt;
 UUID=8d881dcb-8de3-4621-b9bd-00025196868a /var/hda/files/drives/drive4 ext4 defaults 1 2&lt;br /&gt;
 #&lt;br /&gt;
 # Drive5 = 250GB OS Drive mounted in Optical Drive bay&lt;br /&gt;
 UUID=&amp;quot;4d6f8004-d190-4234-a03b-b68de988abf0 /var/hda/files/drives/drive5 ext4 defaults 1 2&lt;br /&gt;
 #&lt;br /&gt;
 #&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that the hda-dismount command had already added lines to mount my OS drive which had two partitions (root or /, and home).  Save file and close.&lt;br /&gt;
&lt;br /&gt;
4) Save file and reboot machine. &lt;br /&gt;
&lt;br /&gt;
5) Check drives in Amahi hda (Setup - Shares - Storage Pool)&lt;br /&gt;
&lt;br /&gt;
In this case, if all drives mounted successfully, it should look like:&lt;br /&gt;
&lt;br /&gt;
[[File:Gstreet_greyhole_pool.png|options|caption]]&lt;br /&gt;
&lt;br /&gt;
==Test your hard drive==&lt;br /&gt;
Optionally, you can test your new drive for bad blocks.&amp;lt;br/&amp;gt;&lt;br /&gt;
Note that this step can take a ''long'' time to complete! You'll probably want to start it in the evening, to have it completed in the morning.&lt;br /&gt;
&lt;br /&gt;
To do so, [[Open Terminal as root|in a Terminal, as root]], type the following command. Replace &amp;lt;strong style=&amp;quot;color:green&amp;quot;&amp;gt;sdb1&amp;lt;/strong&amp;gt; with the (green) value you received from hda-diskmount.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
e2fsck -cn /dev/&amp;lt;strong style=&amp;quot;color:green&amp;quot;&amp;gt;sdb1&amp;lt;/strong&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You'll receive a warning that says &amp;quot;WARNING!!!  Running e2fsck on a mounted filesystem may cause SEVERE filesystem damage. Do you really want to continue (y/n)?&amp;quot;&amp;lt;br/&amp;gt;&lt;br /&gt;
Answer ''yes''. The -cn option we're using can safely be used on mounted filesystems.&lt;br /&gt;
&lt;br /&gt;
=Use the hard drive=&lt;br /&gt;
&lt;br /&gt;
You have a choice here on how to use your new hard drive storage space. We'll offer some examples.&lt;br /&gt;
&lt;br /&gt;
==Use the hard drive for all shares==&lt;br /&gt;
&lt;br /&gt;
If you want all your shares to be on your new hard drive, here's how to do that.&lt;br /&gt;
&lt;br /&gt;
First, you'll want to move all you previous shares data, if any, into your new drive.&amp;lt;br/&amp;gt;&lt;br /&gt;
You only need to do this next command if you have data that you care about in the /var/hda/files/* folders.&amp;lt;br/&amp;gt;&lt;br /&gt;
[[Open Terminal as root|In a Terminal, as root]], type the following command. Replace the path in red with the path you received when you ran hda-diskmount.&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
 mv /var/hda/files/* &amp;lt;strong style=&amp;quot;color:red&amp;quot;&amp;gt;/var/hda/files/drives/sdb1/&amp;lt;/strong&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
You'll get a warning about &amp;quot;cannot move `/var/hda/files/drives' to a subdirectory of itself&amp;quot;; that is fine, ignore that.&lt;br /&gt;
&lt;br /&gt;
Next, you'll need to unmount your new hard drive, and remount it as /var/hda/files&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
 umount /var/hda/files/drives/sdb1/&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
 nano /etc/fstab&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In nano, you'll need to add a new line at the bottom. Take the line that hda-diskmount gave you (the blue one), and change the second value (the path).&amp;lt;br/&amp;gt;&lt;br /&gt;
Replace the second value with '''/var/hda/files'''.&lt;br /&gt;
&lt;br /&gt;
hda-diskmount gave me:&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;span style=&amp;quot;color:blue&amp;quot;&amp;gt;UUID=9d972abc-1639-44df-a60e-668618d40236 &amp;lt;strong&amp;gt;/var/hda/files/drives/sdb1&amp;lt;/strong&amp;gt; ext4 defaults 1 2&amp;lt;/span&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So I should add this instead:&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
 UUID=9d972abc-1639-44df-a60e-668618d40236 &amp;lt;strong&amp;gt;/var/hda/files&amp;lt;/strong&amp;gt; ext4 defaults 1 2&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Make sure you do '''not''' change anything else from the blue line you received from hda-diskmount.&amp;lt;br/&amp;gt;&lt;br /&gt;
It might not be the same thing as the above example; you need to use the values you've received.&lt;br /&gt;
&lt;br /&gt;
Save and exit nano (CTRL-X, Y, ENTER), and try your new mount:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
 mount -a&lt;br /&gt;
 ls /var/hda/files/&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
That last command should show you the content of you new hard drive.&lt;br /&gt;
&lt;br /&gt;
That's it. All your shares in /var/hda/files are now on your new hard drive.&lt;br /&gt;
&lt;br /&gt;
==Use the hard drive for only some shares==&lt;br /&gt;
&lt;br /&gt;
If you want only some of your shares to be on your new hard drive, here's how to do that.&lt;br /&gt;
&lt;br /&gt;
First, you'll want to move your previous shares data, if any, into your new drive.&amp;lt;br/&amp;gt;&lt;br /&gt;
You only need to do this next command if you have data that you care about in the /var/hda/files/* folders (that you want on the new drive).&amp;lt;br/&amp;gt;&lt;br /&gt;
[[Open Terminal as root|In a Terminal, as root]], type the following command. Replace the path in red with the path you received when you ran hda-diskmount. Replace '''something''' with the name of the share you want to have on your new drive (the share should already exist).&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
 mv /var/hda/files/&amp;lt;strong&amp;gt;something&amp;lt;/strong&amp;gt; &amp;lt;strong style=&amp;quot;color:red&amp;quot;&amp;gt;/var/hda/files/drives/sdb1/&amp;lt;/strong&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Repeat with every share you want on your new drive.&lt;br /&gt;
&lt;br /&gt;
Next, you'll need to make the mount permanent&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
 umount /var/hda/files/drives/sdb1&amp;lt;br/&amp;gt;&lt;br /&gt;
 nano /etc/fstab&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In nano, you'll need to add a new line at the bottom. Take the line that hda-diskmount gave you, and insert that.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So, following previous examples, I should add this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px; text-align: left;&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;span style=&amp;quot;color: blue;&amp;quot;&amp;gt;UUID=9d972abc-1639-44df-a60e-668618d40236 /var/hda/files/drives/sdb1 ext4 defaults 1 2&amp;lt;/span&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Save and exit nano (CTRL-X, Y, ENTER), and try your new mount:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
 mount -a&lt;br /&gt;
 ls /var/hda/files/drives/sdb1&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
That last command should show you the content of you new hard drive.&lt;br /&gt;
&lt;br /&gt;
Now, you need to update the location of the moved shares within Amahi. Go to your &amp;lt;strong&amp;gt;Amahi Dashboard&amp;lt;/strong&amp;gt;, click on &amp;lt;strong&amp;gt;Setup&amp;lt;/strong&amp;gt;, then &amp;lt;strong&amp;gt;Shares&amp;lt;/strong&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
Click on one of the shares that you have moved. This will open a panel revealing the share settings. Click on the location (the bit that is shown with a dotted underline) and it will change to an edit box. Update the location to match the new share location. &lt;br /&gt;
&lt;br /&gt;
For example, the original movies location was: &amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;/var/hda/files/movies&amp;lt;/span&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
The new location might be: &amp;lt;span style=&amp;quot;color:blue&amp;quot;&amp;gt;/var/hda/files/drives/sdb1/movies&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Repeat for any other shares that you have moved. Check that you can access these shares from another machine within your network.&lt;br /&gt;
&lt;br /&gt;
Finally, if you have any services that depend on the location of these shares, make sure they are configured to use the new share location. For example, if you have a DLNA server installed, check its configuration files to make sure that it can find any media folders that have been moved. Secondly, &amp;lt;em&amp;gt;check that all such services start correctly and behave as expected&amp;lt;/em&amp;gt;. If the service doesn't start, it may be that it is testing for a specific location during the service startup. Check the startup files in &amp;lt;strong&amp;gt;/etc/init.d&amp;lt;/strong&amp;gt; to see if this is the case.&lt;br /&gt;
&lt;br /&gt;
That's it. Your share(s) are now on your new hard drive.&lt;br /&gt;
&lt;br /&gt;
==Use the hard drive in your Greyhole storage pool==&lt;br /&gt;
&lt;br /&gt;
If you want to add your new hard drive to your Greyhole storage pool, here's how to do that.&lt;br /&gt;
&lt;br /&gt;
First, you'll need to make the mount permanent. [[Open Terminal as root|In a Terminal, as root]], type the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
 umount /var/hda/files/drives/sdb1&lt;br /&gt;
 nano /etc/fstab&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In nano, you'll need to add a new line at the bottom. Take the line that hda-diskmount gave you, and insert that.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So, following previous examples, I should add this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px; text-align: left;&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;span style=&amp;quot;color: blue;&amp;quot;&amp;gt;UUID=9d972abc-1639-44df-a60e-668618d40236 /var/hda/files/drives/sdb1 ext4 defaults 1 2&amp;lt;/span&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Save and exit nano (CTRL-X, Y, ENTER), and try your new mount:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
 mount -a&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Finally, you'll need to configure Greyhole to select your new partition. To configure Greyhole, Advanced Settings must be enabled under [http://hda/setup?sub=settings&amp;amp;tab=setting Setup &amp;amp;gt; Settings].&lt;br /&gt;
&lt;br /&gt;
In the [http://hda/setup?sub=disk_pooling&amp;amp;tab=share Shares &amp;amp;gt; Storage Pool page] of your Amahi dashboard, you'll see a list of mounted partitions, with checkboxes next to each, allowing you to include those partitions in your storage pool.&lt;br /&gt;
&lt;br /&gt;
You should now have a new row in there, referring to /var/hda/files/drives/sdb1.&lt;br /&gt;
&lt;br /&gt;
Select it (click the checkbox).&lt;br /&gt;
&lt;br /&gt;
That's it. Your new hard drive just increased your Greyhole storage pool capacity.&lt;/div&gt;</summary>
		<author><name>Carl Greenstreet</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=File:Gstreet_greyhole_pool.png&amp;diff=63008</id>
		<title>File:Gstreet greyhole pool.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=File:Gstreet_greyhole_pool.png&amp;diff=63008"/>
		<updated>2012-11-08T11:36:21Z</updated>

		<summary type="html">&lt;p&gt;Carl Greenstreet: screen capture of greyhole pool in Amahi settings to illustrate outcomes of manually mounting drives&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;screen capture of greyhole pool in Amahi settings to illustrate outcomes of manually mounting drives&lt;/div&gt;</summary>
		<author><name>Carl Greenstreet</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Adding_a_second_hard_drive_to_your_HDA&amp;diff=63002</id>
		<title>Adding a second hard drive to your HDA</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Adding_a_second_hard_drive_to_your_HDA&amp;diff=63002"/>
		<updated>2012-11-08T11:21:18Z</updated>

		<summary type="html">&lt;p&gt;Carl Greenstreet: /* Manually setting up the disk mount order */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{MessageBox|&lt;br /&gt;
backgroundcolor	= #faa|&lt;br /&gt;
image	=Warning.png|&lt;br /&gt;
heading	=WARNING|&lt;br /&gt;
message = This is recommended only for advanced users, proceed with caution.}}&lt;br /&gt;
[[Adding_drives_to_your_HDA|Adding drives to your HDA]] is another howto on doing this, a bit shorter and less elaborate, which can be good for some people, specially a novice unfamiliar with doing any of this.&lt;br /&gt;
&lt;br /&gt;
More hard drives can be added in your Amahi HDA for additional storage space.&lt;br /&gt;
&lt;br /&gt;
We'll detail how to add such hard drives, and how to put them to good use.&lt;br /&gt;
&lt;br /&gt;
=Important Notes=&lt;br /&gt;
&lt;br /&gt;
* This is a how-to on adding additional drives to your HDA.&lt;br /&gt;
* Amahi cannot be held responsible for any data breakage or destruction arising from the use or misuse of this script. We provide it as a service in good will. You accept this automatically if you use the script.&lt;br /&gt;
* This page and script does not support GUID-partitioned drives (such as drives previously in a Mac or have GPT partition tables). You can find what your partition is like with &amp;lt;code&amp;gt;fdisk -l&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Make sure your drive is detected by Fedora=&lt;br /&gt;
&lt;br /&gt;
Open a Terminal, and type the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; background-color: #E6F2FF; margin: 0 1em;&amp;quot;&amp;gt;&lt;br /&gt;
 ls -1 /dev/disk/by-id/ | egrep -v &amp;quot;part|scsi&amp;quot;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Look for the line that matches the hard drive you added.&lt;br /&gt;
&lt;br /&gt;
IDE and SATA hard drives will start with '''ata-''' and USB hard drives will start with '''usb-'''.&amp;lt;br/&amp;gt;&lt;br /&gt;
Look for your hard drive model and serial number.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
 [gb@hda ~]$ ls -1 /dev/disk/by-id/ | egrep -v &amp;quot;part|scsi&amp;quot;&lt;br /&gt;
 ata-Hitachi_HDS722020ALA330_JK1131YAGDU37V&lt;br /&gt;
 ata-ST31000528AS_6VP08W65&lt;br /&gt;
 ata-ST3750640A_3QD0LJN8&lt;br /&gt;
 ata-ST3750640A_5QD27A57&lt;br /&gt;
 ata-WDC_WD10EADS-00L5B1_WD-WCAU4C700358&lt;br /&gt;
 usb-ST310003_33AS_9E1CA6FFFFFF-0:0&lt;br /&gt;
 usb-ST375064_0A_2009031309E2-0:0&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Install prerequisites=&lt;br /&gt;
&lt;br /&gt;
[[Open Terminal as root|In a Terminal, as root]], type the following (two) commands:&lt;br /&gt;
&lt;br /&gt;
* Fedora&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px; text-align: left&amp;quot;&amp;gt;&lt;br /&gt;
 yum -y install pmount fuse fuse-libs ntfs-3g gparted util-linux-ng&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Ubuntu &lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px; text-align: left&amp;quot;&amp;gt;&lt;br /&gt;
 sudo apt-get -y install gparted&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Drives must be formatted as '''MBR''' not '''GUID/GPT''' for hda-diskmount to recognize the disk.&lt;br /&gt;
&lt;br /&gt;
=Partition and format the hard drive=&lt;br /&gt;
&lt;br /&gt;
This step is optional, and should only be executed if you want to delete the content of your new hard drive, or if the hard drive has not yet been formatted.&lt;br /&gt;
&lt;br /&gt;
You should (unless you have a good reason not to) use GParted to partition and format your hard drive.&amp;lt;br/&amp;gt;&lt;br /&gt;
Not having X installed would qualify as a good reason! In such cases, either use SSH X11 Forwarding (Google that if you'd like to use this), or [[Adding_a_second_hard_drive_to_your_HDA#Using_cfdisk|use cfdisk]] from a [[Open Terminal as root|Terminal, as root]].&lt;br /&gt;
&lt;br /&gt;
You'll probably want to create a single partition, and format it as ''ext3''.&amp;lt;br/&amp;gt;&lt;br /&gt;
Note that Windows can't read ext3 partitions, so if you want dual-boot Windows on your Amahi PC, or if you intend to connect this hard drive to a Windows computer later, you should format as NTFS instead, and you should do that on Windows before you connect the drive in your HDA.&amp;lt;br/&amp;gt;&lt;br /&gt;
Remember that using NTFS partitions on Linux will be slower that using ext3 partitions, so you should only use NTFS if you really need it.&amp;lt;br/&amp;gt;&lt;br /&gt;
How much slower: compare the blue bars (NTFS-3G) with the red bars (ext3) on [http://www.tuxera.com/products/tuxera-ntfs-commercial/performance/ this graph].&lt;br /&gt;
&lt;br /&gt;
To know what device (/dev/sdX) you need to partition and format, use the following command, in a [[Open Terminal as root|Terminal, as root]]:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
 ls -l /dev/disk/by-id/&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Find the row corresponding to your hard drive, and look at the end of the line to identify the correct device to use.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&amp;lt;small&amp;gt;&lt;br /&gt;
 [gb@hda ~]$ ls -l /dev/disk/by-id/&lt;br /&gt;
 total 0&lt;br /&gt;
 lrwxrwxrwx 1 root root  9 2010-02-18 03:24  ata-Hitachi_HDS722020ALA330_JK1131YAGDU37V -&amp;gt; ../../sda&lt;br /&gt;
 lrwxrwxrwx 1 root root 10 2010-02-18 03:24 ata-Hitachi_HDS722020ALA330_JK1131YAGDU37V-part1 -&amp;gt; ../../sda1&lt;br /&gt;
 lrwxrwxrwx 1 root root  9 2010-02-18 03:24 ata-ST31000528AS_6VP08W65 -&amp;gt; ../../sdb&lt;br /&gt;
&amp;lt;/small&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the above example, /dev/sdb would be what I would select in GParted (or use on the cfdisk command). sda in my primary hard drive, and sdb my second hard drive.&lt;br /&gt;
&lt;br /&gt;
==Using GParted==&lt;br /&gt;
From the HDA desktop (or using VNC), [[Open Terminal as root]] and type '''gparted''' to launch the GParted application.&lt;br /&gt;
&lt;br /&gt;
Select the device (/dev/sdX) that you found above.&lt;br /&gt;
&lt;br /&gt;
In the above example, /dev/sdb would be what I would select in GParted.&lt;br /&gt;
&lt;br /&gt;
There are many easy to follow guides online on how to use GParted. You should Google for one, to find one that seems clear to you.&lt;br /&gt;
&lt;br /&gt;
[http://www.mepisguides.com/Mepis-6/Install/gparted/gparted-set-partition.html Here's one] that looks simple. Just use ext3 instead of fat32 in you follow that tutorial.&lt;br /&gt;
&lt;br /&gt;
Note that gparted supports GUID-partitioned drives, however, these directions and script do not support it at the moment.&lt;br /&gt;
&lt;br /&gt;
==Using cfdisk==&lt;br /&gt;
From a [[Open Terminal as root|terminal, as root]], type '''cfdisk /dev/sdX''' to launch the cfdisk application.&lt;br /&gt;
&lt;br /&gt;
If you have a GUID-partitioned drive, cfdisk will complain. GUID partitions are not supported.&lt;br /&gt;
&lt;br /&gt;
Make sure to replace /dev/sdX with the actual device (eg. /dev/sdb) that you found above.&lt;br /&gt;
&lt;br /&gt;
If your hard drive contains existing partitions, select them one by one at the top (using up/down arrow keys), then select the '''[ Delete ]''' action (using the left/right arrow keys), then hit ENTER.&lt;br /&gt;
&lt;br /&gt;
You should now only have Free Space listed at the top.&amp;lt;br/&amp;gt;&lt;br /&gt;
Select the '''[ New ]''' action, and accept the default (Primary, and size).&lt;br /&gt;
&lt;br /&gt;
You should now have a single partition listed at the top, of type Linux.&amp;lt;br/&amp;gt;&lt;br /&gt;
Select the '''[ Write ]''' action, then '''[ Quit ]'''.&lt;br /&gt;
&lt;br /&gt;
Now that you partitioned your drive, you need to format your newly created partition.&amp;lt;br/&amp;gt;&lt;br /&gt;
To format as EXT3, use this command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
 mkfs.ext3 -j /dev/sdX1&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Replace ext3 with ext4 in the above command to format your partition as EXT4 instead of EXT3.&lt;br /&gt;
&lt;br /&gt;
'''/dev/sdX1''' in the above command refers to the partition your created in cfdisk.&amp;lt;br/&amp;gt;&lt;br /&gt;
Go back in cfdisk, and check the ''Name'' column if you're unsure.&amp;lt;br/&amp;gt;&lt;br /&gt;
If you see ''sdb1'' in the name column, you should use '''/dev/sdb1''' in the above command.&lt;br /&gt;
&lt;br /&gt;
==Partition over 2.1TB==&lt;br /&gt;
Here is a work around for drives with partitions over 2.1TB like the new 3TB drives.&lt;br /&gt;
&lt;br /&gt;
Page: [[Partitions_Over_2.1_TB]]&lt;br /&gt;
&lt;br /&gt;
=Mount the hard drive=&lt;br /&gt;
  &lt;br /&gt;
==Using hda-diskmount script==&lt;br /&gt;
A script is provided with Amahi that will look for unmounted partitions in your system, and mount any it finds.&lt;br /&gt;
&lt;br /&gt;
[[Open Terminal as root|In a Terminal, as root]], type the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
 hda-diskmount&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px; text-align: left;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;small&amp;gt;&lt;br /&gt;
 [root@hda ~]$ hda-diskmount&lt;br /&gt;
 ****************************************************************&lt;br /&gt;
 Ignoring /dev/sda1 - already in /etc/fstab or mounted&lt;br /&gt;
 ****************************************************************&lt;br /&gt;
 Mounted /dev/&amp;lt;strong style=&amp;quot;color:green&amp;quot;&amp;gt;sdb1&amp;lt;/strong&amp;gt; as '&amp;lt;strong style=&amp;quot;color:red&amp;quot;&amp;gt;/var/hda/files/drives/sdb1&amp;lt;/strong&amp;gt;' (read-write)&lt;br /&gt;
 You may want your system to mount it every time you boot.&lt;br /&gt;
 To do so, add this line VERY CAREFULLY to /etc/fstab and reboot:&lt;br /&gt;
 &amp;lt;strong style=&amp;quot;color:blue&amp;quot;&amp;gt;UUID=9d972abc-1639-44df-a60e-668618d40236 /var/hda/files/drives/sdb1 ext4 defaults 1 2&amp;lt;/strong&amp;gt;&lt;br /&gt;
 ****************************************************************&lt;br /&gt;
 All Linux, Windows and Mac partitions on non-removable disks have been mounted&lt;br /&gt;
&amp;lt;/small&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Do '''not''' edit /etc/fstab just yet. What you'll need to add there will depend on how you want to use the extra storage. More about that below.&amp;lt;br/&amp;gt;&lt;br /&gt;
Just note down the information in bold (green, red and blue). We'll use them below.&lt;br /&gt;
&lt;br /&gt;
Note about ext4 in the blue line above: that doesn't necessarily mean your partition is formatted as ext4. It means the ext4 driver will be used to mount your partition. Since that driver is backward compatible, it can be safely used to mount ext2, ext3 and ext4 partitions.&lt;br /&gt;
&lt;br /&gt;
If you get something like ''Disk /dev/dm-0 doesn't contain a valid partition table'' or ''mount: unknown file system type 'lvm2pv''' its because you have LVM's that 'fdisk' can not recognize (or something similar). It's nothing to worry about if you get that when executing the hda-diskmount script.&lt;br /&gt;
&lt;br /&gt;
If you have changed the order of your installed hard drives, hda-diskmount may return the following message:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
Ignoring /dev/sda1 - already in /etc/fstab as /dev/sda1&lt;br /&gt;
This device appears to be commented out of your /etc/fstab. You will need to remove it from there for hda-diskmount to be able to mount it.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This might occur if you have made changes to the drive configuration order after you installed Amahi.  If you want to stay with the reconfigured drive order, instructions on how to fix this are in the next section, Manually setting up the disk mount order.&lt;br /&gt;
&lt;br /&gt;
==Manually setting up the disk mount order ==&lt;br /&gt;
&lt;br /&gt;
1.  First, get the UUID for each drive by opening a terminal and entering command &lt;br /&gt;
&lt;br /&gt;
Ubuntu:&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
gstreet@gstreet-MicroServer:~$ sudo blkid&lt;br /&gt;
[sudo] password for gstreet:&lt;br /&gt;
/dev/sda1: LABEL=&amp;quot;Seagate-Alpha2TB&amp;quot; UUID=&amp;quot;55d9333f-d801-425a-b2af-d65c5966d56f&amp;quot; TYPE=&amp;quot;ext4&amp;quot; &lt;br /&gt;
/dev/sdb1: LABEL=&amp;quot;Seagate-Beta2TB&amp;quot; UUID=&amp;quot;5bd5498f-30c1-4780-948e-ca46656507d2&amp;quot; TYPE=&amp;quot;ext4&amp;quot; &lt;br /&gt;
/dev/sdc1: LABEL=&amp;quot;WD-Charlie2TB&amp;quot; UUID=&amp;quot;a7337504-376a-4d36-9f7a-1a24c0f55fbd&amp;quot; TYPE=&amp;quot;ext4&amp;quot; &lt;br /&gt;
/dev/sdd1: LABEL=&amp;quot;WD-Delta2TB&amp;quot; UUID=&amp;quot;8d881dcb-8de3-4621-b9bd-00025196868a&amp;quot; TYPE=&amp;quot;ext4&amp;quot; &lt;br /&gt;
/dev/sde1: LABEL=&amp;quot;root&amp;quot; UUID=&amp;quot;4d6f8004-d190-4234-a03b-b68de988abf0&amp;quot; TYPE=&amp;quot;ext4&amp;quot; &lt;br /&gt;
/dev/sde3: LABEL=&amp;quot;home&amp;quot; UUID=&amp;quot;d0531fa1-9311-4d53-b838-f35898adbd98&amp;quot; TYPE=&amp;quot;ext4&amp;quot; &lt;br /&gt;
/dev/sde5: LABEL=&amp;quot;swap&amp;quot; UUID=&amp;quot;3c39206c-ba60-47ff-a1fe-f5821b2ab543&amp;quot; TYPE=&amp;quot;swap&amp;quot;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
In this case, the user has four data drives (sda1, sdb1, sdc1, sdd1) and the Operating system assigned to a fifth drive, sde.&lt;br /&gt;
&lt;br /&gt;
Take note of the UUID's for each drive.  Easiest to cut and paste UUID's straight from the terminal  - no typo's!&lt;br /&gt;
&lt;br /&gt;
2. Then edit /etc/fstab to mount each drive - for novices, easiest to do this using a graphical editor.  You might consider first making a copy called fstab.bak (use the &amp;quot;save as&amp;quot; command, close file and then gedit the original fstab again) so that you can recover the original fstab file if you make mistakes.&lt;br /&gt;
&lt;br /&gt;
Ubuntu: {{Code|Code=&lt;br /&gt;
sudo gedit /etc/fstab&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
3.  Then carefully add the following line for each disk into the end of the fstab file &lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
UUID=55d9333f-d801-425a-b2af-d65c5966d56f /var/hda/files/drives/drive1 ext4 defaults 1 2&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It should look something like the following when lines are added for each of the five drives in this example.  Make sure you paste in the right UUID, drive number and drive file system (ext4 in this case).  Note lines beginning with # are comments  where the remainder of the line is ignored) &lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
 #  Mounting Greyhole Drives for Drive Pool.  &lt;br /&gt;
 #&lt;br /&gt;
 # Drive1 = Seagate-Alpha2TB in Microserver Bay 1 from left &lt;br /&gt;
 UUID=55d9333f-d801-425a-b2af-d65c5966d56f /var/hda/files/drives/drive1 ext4 defaults 1 2&lt;br /&gt;
 #&lt;br /&gt;
 # Drive2 = Seagate-Beta2TB in Microserver Bay 2 from left &lt;br /&gt;
 UUID=5bd5498f-30c1-4780-948e-ca46656507d2 /var/hda/files/drives/drive2 ext4 defaults 1 2&lt;br /&gt;
 #&lt;br /&gt;
 # Drive3 = WD-Charlie2TB in Microserver Bay 3 from left &lt;br /&gt;
 UUID=a7337504-376a-4d36-9f7a-1a24c0f55fbd /var/hda/files/drives/drive3 ext4 defaults 1 2&lt;br /&gt;
 #&lt;br /&gt;
 # Drive4 = WD-Delta2TB in Microserver Bay 4 from left &lt;br /&gt;
 UUID=8d881dcb-8de3-4621-b9bd-00025196868a /var/hda/files/drives/drive4 ext4 defaults 1 2&lt;br /&gt;
 #&lt;br /&gt;
 # Drive5 = 250GB OS Drive mounted in Optical Drive bay&lt;br /&gt;
 UUID=&amp;quot;4d6f8004-d190-4234-a03b-b68de988abf0 /var/hda/files/drives/drive5 ext4 defaults 1 2&lt;br /&gt;
 #&lt;br /&gt;
 #&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that the hda-dismount command had already added lines to mount my OS drive which had two partitions (root or /, and home).  Save file and close.&lt;br /&gt;
&lt;br /&gt;
4) Save file and reboot machine. &lt;br /&gt;
&lt;br /&gt;
5) Check drives in Amahi hda (Setup - Shares - Storage Pool)&lt;br /&gt;
&lt;br /&gt;
In my case looked like &lt;br /&gt;
[img]https://docs.google.com/viewer?pid=explorer&amp;amp;srcid=0B4db0S5lBIq8enc1M0pJM3R1Mzg&amp;amp;docid=1b9781c1bebebe893591963b49cd0ab8%7C714e2385b5a30391311cd1211c8e3b8b&amp;amp;a=bi&amp;amp;pagenumber=1&amp;amp;w=800[/img]&lt;br /&gt;
&lt;br /&gt;
==Test your hard drive==&lt;br /&gt;
Optionally, you can test your new drive for bad blocks.&amp;lt;br/&amp;gt;&lt;br /&gt;
Note that this step can take a ''long'' time to complete! You'll probably want to start it in the evening, to have it completed in the morning.&lt;br /&gt;
&lt;br /&gt;
To do so, [[Open Terminal as root|in a Terminal, as root]], type the following command. Replace &amp;lt;strong style=&amp;quot;color:green&amp;quot;&amp;gt;sdb1&amp;lt;/strong&amp;gt; with the (green) value you received from hda-diskmount.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
e2fsck -cn /dev/&amp;lt;strong style=&amp;quot;color:green&amp;quot;&amp;gt;sdb1&amp;lt;/strong&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You'll receive a warning that says &amp;quot;WARNING!!!  Running e2fsck on a mounted filesystem may cause SEVERE filesystem damage. Do you really want to continue (y/n)?&amp;quot;&amp;lt;br/&amp;gt;&lt;br /&gt;
Answer ''yes''. The -cn option we're using can safely be used on mounted filesystems.&lt;br /&gt;
&lt;br /&gt;
=Use the hard drive=&lt;br /&gt;
&lt;br /&gt;
You have a choice here on how to use your new hard drive storage space. We'll offer some examples.&lt;br /&gt;
&lt;br /&gt;
==Use the hard drive for all shares==&lt;br /&gt;
&lt;br /&gt;
If you want all your shares to be on your new hard drive, here's how to do that.&lt;br /&gt;
&lt;br /&gt;
First, you'll want to move all you previous shares data, if any, into your new drive.&amp;lt;br/&amp;gt;&lt;br /&gt;
You only need to do this next command if you have data that you care about in the /var/hda/files/* folders.&amp;lt;br/&amp;gt;&lt;br /&gt;
[[Open Terminal as root|In a Terminal, as root]], type the following command. Replace the path in red with the path you received when you ran hda-diskmount.&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
 mv /var/hda/files/* &amp;lt;strong style=&amp;quot;color:red&amp;quot;&amp;gt;/var/hda/files/drives/sdb1/&amp;lt;/strong&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
You'll get a warning about &amp;quot;cannot move `/var/hda/files/drives' to a subdirectory of itself&amp;quot;; that is fine, ignore that.&lt;br /&gt;
&lt;br /&gt;
Next, you'll need to unmount your new hard drive, and remount it as /var/hda/files&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
 umount /var/hda/files/drives/sdb1/&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
 nano /etc/fstab&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In nano, you'll need to add a new line at the bottom. Take the line that hda-diskmount gave you (the blue one), and change the second value (the path).&amp;lt;br/&amp;gt;&lt;br /&gt;
Replace the second value with '''/var/hda/files'''.&lt;br /&gt;
&lt;br /&gt;
hda-diskmount gave me:&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;span style=&amp;quot;color:blue&amp;quot;&amp;gt;UUID=9d972abc-1639-44df-a60e-668618d40236 &amp;lt;strong&amp;gt;/var/hda/files/drives/sdb1&amp;lt;/strong&amp;gt; ext4 defaults 1 2&amp;lt;/span&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So I should add this instead:&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
 UUID=9d972abc-1639-44df-a60e-668618d40236 &amp;lt;strong&amp;gt;/var/hda/files&amp;lt;/strong&amp;gt; ext4 defaults 1 2&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Make sure you do '''not''' change anything else from the blue line you received from hda-diskmount.&amp;lt;br/&amp;gt;&lt;br /&gt;
It might not be the same thing as the above example; you need to use the values you've received.&lt;br /&gt;
&lt;br /&gt;
Save and exit nano (CTRL-X, Y, ENTER), and try your new mount:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
 mount -a&lt;br /&gt;
 ls /var/hda/files/&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
That last command should show you the content of you new hard drive.&lt;br /&gt;
&lt;br /&gt;
That's it. All your shares in /var/hda/files are now on your new hard drive.&lt;br /&gt;
&lt;br /&gt;
==Use the hard drive for only some shares==&lt;br /&gt;
&lt;br /&gt;
If you want only some of your shares to be on your new hard drive, here's how to do that.&lt;br /&gt;
&lt;br /&gt;
First, you'll want to move your previous shares data, if any, into your new drive.&amp;lt;br/&amp;gt;&lt;br /&gt;
You only need to do this next command if you have data that you care about in the /var/hda/files/* folders (that you want on the new drive).&amp;lt;br/&amp;gt;&lt;br /&gt;
[[Open Terminal as root|In a Terminal, as root]], type the following command. Replace the path in red with the path you received when you ran hda-diskmount. Replace '''something''' with the name of the share you want to have on your new drive (the share should already exist).&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
 mv /var/hda/files/&amp;lt;strong&amp;gt;something&amp;lt;/strong&amp;gt; &amp;lt;strong style=&amp;quot;color:red&amp;quot;&amp;gt;/var/hda/files/drives/sdb1/&amp;lt;/strong&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Repeat with every share you want on your new drive.&lt;br /&gt;
&lt;br /&gt;
Next, you'll need to make the mount permanent&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
 umount /var/hda/files/drives/sdb1&amp;lt;br/&amp;gt;&lt;br /&gt;
 nano /etc/fstab&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In nano, you'll need to add a new line at the bottom. Take the line that hda-diskmount gave you, and insert that.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So, following previous examples, I should add this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px; text-align: left;&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;span style=&amp;quot;color: blue;&amp;quot;&amp;gt;UUID=9d972abc-1639-44df-a60e-668618d40236 /var/hda/files/drives/sdb1 ext4 defaults 1 2&amp;lt;/span&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Save and exit nano (CTRL-X, Y, ENTER), and try your new mount:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
 mount -a&lt;br /&gt;
 ls /var/hda/files/drives/sdb1&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
That last command should show you the content of you new hard drive.&lt;br /&gt;
&lt;br /&gt;
Now, you need to update the location of the moved shares within Amahi. Go to your &amp;lt;strong&amp;gt;Amahi Dashboard&amp;lt;/strong&amp;gt;, click on &amp;lt;strong&amp;gt;Setup&amp;lt;/strong&amp;gt;, then &amp;lt;strong&amp;gt;Shares&amp;lt;/strong&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
Click on one of the shares that you have moved. This will open a panel revealing the share settings. Click on the location (the bit that is shown with a dotted underline) and it will change to an edit box. Update the location to match the new share location. &lt;br /&gt;
&lt;br /&gt;
For example, the original movies location was: &amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;/var/hda/files/movies&amp;lt;/span&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
The new location might be: &amp;lt;span style=&amp;quot;color:blue&amp;quot;&amp;gt;/var/hda/files/drives/sdb1/movies&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Repeat for any other shares that you have moved. Check that you can access these shares from another machine within your network.&lt;br /&gt;
&lt;br /&gt;
Finally, if you have any services that depend on the location of these shares, make sure they are configured to use the new share location. For example, if you have a DLNA server installed, check its configuration files to make sure that it can find any media folders that have been moved. Secondly, &amp;lt;em&amp;gt;check that all such services start correctly and behave as expected&amp;lt;/em&amp;gt;. If the service doesn't start, it may be that it is testing for a specific location during the service startup. Check the startup files in &amp;lt;strong&amp;gt;/etc/init.d&amp;lt;/strong&amp;gt; to see if this is the case.&lt;br /&gt;
&lt;br /&gt;
That's it. Your share(s) are now on your new hard drive.&lt;br /&gt;
&lt;br /&gt;
==Use the hard drive in your Greyhole storage pool==&lt;br /&gt;
&lt;br /&gt;
If you want to add your new hard drive to your Greyhole storage pool, here's how to do that.&lt;br /&gt;
&lt;br /&gt;
First, you'll need to make the mount permanent. [[Open Terminal as root|In a Terminal, as root]], type the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
 umount /var/hda/files/drives/sdb1&lt;br /&gt;
 nano /etc/fstab&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In nano, you'll need to add a new line at the bottom. Take the line that hda-diskmount gave you, and insert that.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So, following previous examples, I should add this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px; text-align: left;&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;span style=&amp;quot;color: blue;&amp;quot;&amp;gt;UUID=9d972abc-1639-44df-a60e-668618d40236 /var/hda/files/drives/sdb1 ext4 defaults 1 2&amp;lt;/span&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Save and exit nano (CTRL-X, Y, ENTER), and try your new mount:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
 mount -a&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Finally, you'll need to configure Greyhole to select your new partition. To configure Greyhole, Advanced Settings must be enabled under [http://hda/setup?sub=settings&amp;amp;tab=setting Setup &amp;amp;gt; Settings].&lt;br /&gt;
&lt;br /&gt;
In the [http://hda/setup?sub=disk_pooling&amp;amp;tab=share Shares &amp;amp;gt; Storage Pool page] of your Amahi dashboard, you'll see a list of mounted partitions, with checkboxes next to each, allowing you to include those partitions in your storage pool.&lt;br /&gt;
&lt;br /&gt;
You should now have a new row in there, referring to /var/hda/files/drives/sdb1.&lt;br /&gt;
&lt;br /&gt;
Select it (click the checkbox).&lt;br /&gt;
&lt;br /&gt;
That's it. Your new hard drive just increased your Greyhole storage pool capacity.&lt;/div&gt;</summary>
		<author><name>Carl Greenstreet</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Adding_a_second_hard_drive_to_your_HDA&amp;diff=62996</id>
		<title>Adding a second hard drive to your HDA</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Adding_a_second_hard_drive_to_your_HDA&amp;diff=62996"/>
		<updated>2012-11-08T11:17:36Z</updated>

		<summary type="html">&lt;p&gt;Carl Greenstreet: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{MessageBox|&lt;br /&gt;
backgroundcolor	= #faa|&lt;br /&gt;
image	=Warning.png|&lt;br /&gt;
heading	=WARNING|&lt;br /&gt;
message = This is recommended only for advanced users, proceed with caution.}}&lt;br /&gt;
[[Adding_drives_to_your_HDA|Adding drives to your HDA]] is another howto on doing this, a bit shorter and less elaborate, which can be good for some people, specially a novice unfamiliar with doing any of this.&lt;br /&gt;
&lt;br /&gt;
More hard drives can be added in your Amahi HDA for additional storage space.&lt;br /&gt;
&lt;br /&gt;
We'll detail how to add such hard drives, and how to put them to good use.&lt;br /&gt;
&lt;br /&gt;
=Important Notes=&lt;br /&gt;
&lt;br /&gt;
* This is a how-to on adding additional drives to your HDA.&lt;br /&gt;
* Amahi cannot be held responsible for any data breakage or destruction arising from the use or misuse of this script. We provide it as a service in good will. You accept this automatically if you use the script.&lt;br /&gt;
* This page and script does not support GUID-partitioned drives (such as drives previously in a Mac or have GPT partition tables). You can find what your partition is like with &amp;lt;code&amp;gt;fdisk -l&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Make sure your drive is detected by Fedora=&lt;br /&gt;
&lt;br /&gt;
Open a Terminal, and type the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; background-color: #E6F2FF; margin: 0 1em;&amp;quot;&amp;gt;&lt;br /&gt;
 ls -1 /dev/disk/by-id/ | egrep -v &amp;quot;part|scsi&amp;quot;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Look for the line that matches the hard drive you added.&lt;br /&gt;
&lt;br /&gt;
IDE and SATA hard drives will start with '''ata-''' and USB hard drives will start with '''usb-'''.&amp;lt;br/&amp;gt;&lt;br /&gt;
Look for your hard drive model and serial number.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
 [gb@hda ~]$ ls -1 /dev/disk/by-id/ | egrep -v &amp;quot;part|scsi&amp;quot;&lt;br /&gt;
 ata-Hitachi_HDS722020ALA330_JK1131YAGDU37V&lt;br /&gt;
 ata-ST31000528AS_6VP08W65&lt;br /&gt;
 ata-ST3750640A_3QD0LJN8&lt;br /&gt;
 ata-ST3750640A_5QD27A57&lt;br /&gt;
 ata-WDC_WD10EADS-00L5B1_WD-WCAU4C700358&lt;br /&gt;
 usb-ST310003_33AS_9E1CA6FFFFFF-0:0&lt;br /&gt;
 usb-ST375064_0A_2009031309E2-0:0&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Install prerequisites=&lt;br /&gt;
&lt;br /&gt;
[[Open Terminal as root|In a Terminal, as root]], type the following (two) commands:&lt;br /&gt;
&lt;br /&gt;
* Fedora&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px; text-align: left&amp;quot;&amp;gt;&lt;br /&gt;
 yum -y install pmount fuse fuse-libs ntfs-3g gparted util-linux-ng&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Ubuntu &lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px; text-align: left&amp;quot;&amp;gt;&lt;br /&gt;
 sudo apt-get -y install gparted&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Drives must be formatted as '''MBR''' not '''GUID/GPT''' for hda-diskmount to recognize the disk.&lt;br /&gt;
&lt;br /&gt;
=Partition and format the hard drive=&lt;br /&gt;
&lt;br /&gt;
This step is optional, and should only be executed if you want to delete the content of your new hard drive, or if the hard drive has not yet been formatted.&lt;br /&gt;
&lt;br /&gt;
You should (unless you have a good reason not to) use GParted to partition and format your hard drive.&amp;lt;br/&amp;gt;&lt;br /&gt;
Not having X installed would qualify as a good reason! In such cases, either use SSH X11 Forwarding (Google that if you'd like to use this), or [[Adding_a_second_hard_drive_to_your_HDA#Using_cfdisk|use cfdisk]] from a [[Open Terminal as root|Terminal, as root]].&lt;br /&gt;
&lt;br /&gt;
You'll probably want to create a single partition, and format it as ''ext3''.&amp;lt;br/&amp;gt;&lt;br /&gt;
Note that Windows can't read ext3 partitions, so if you want dual-boot Windows on your Amahi PC, or if you intend to connect this hard drive to a Windows computer later, you should format as NTFS instead, and you should do that on Windows before you connect the drive in your HDA.&amp;lt;br/&amp;gt;&lt;br /&gt;
Remember that using NTFS partitions on Linux will be slower that using ext3 partitions, so you should only use NTFS if you really need it.&amp;lt;br/&amp;gt;&lt;br /&gt;
How much slower: compare the blue bars (NTFS-3G) with the red bars (ext3) on [http://www.tuxera.com/products/tuxera-ntfs-commercial/performance/ this graph].&lt;br /&gt;
&lt;br /&gt;
To know what device (/dev/sdX) you need to partition and format, use the following command, in a [[Open Terminal as root|Terminal, as root]]:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
 ls -l /dev/disk/by-id/&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Find the row corresponding to your hard drive, and look at the end of the line to identify the correct device to use.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&amp;lt;small&amp;gt;&lt;br /&gt;
 [gb@hda ~]$ ls -l /dev/disk/by-id/&lt;br /&gt;
 total 0&lt;br /&gt;
 lrwxrwxrwx 1 root root  9 2010-02-18 03:24  ata-Hitachi_HDS722020ALA330_JK1131YAGDU37V -&amp;gt; ../../sda&lt;br /&gt;
 lrwxrwxrwx 1 root root 10 2010-02-18 03:24 ata-Hitachi_HDS722020ALA330_JK1131YAGDU37V-part1 -&amp;gt; ../../sda1&lt;br /&gt;
 lrwxrwxrwx 1 root root  9 2010-02-18 03:24 ata-ST31000528AS_6VP08W65 -&amp;gt; ../../sdb&lt;br /&gt;
&amp;lt;/small&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the above example, /dev/sdb would be what I would select in GParted (or use on the cfdisk command). sda in my primary hard drive, and sdb my second hard drive.&lt;br /&gt;
&lt;br /&gt;
==Using GParted==&lt;br /&gt;
From the HDA desktop (or using VNC), [[Open Terminal as root]] and type '''gparted''' to launch the GParted application.&lt;br /&gt;
&lt;br /&gt;
Select the device (/dev/sdX) that you found above.&lt;br /&gt;
&lt;br /&gt;
In the above example, /dev/sdb would be what I would select in GParted.&lt;br /&gt;
&lt;br /&gt;
There are many easy to follow guides online on how to use GParted. You should Google for one, to find one that seems clear to you.&lt;br /&gt;
&lt;br /&gt;
[http://www.mepisguides.com/Mepis-6/Install/gparted/gparted-set-partition.html Here's one] that looks simple. Just use ext3 instead of fat32 in you follow that tutorial.&lt;br /&gt;
&lt;br /&gt;
Note that gparted supports GUID-partitioned drives, however, these directions and script do not support it at the moment.&lt;br /&gt;
&lt;br /&gt;
==Using cfdisk==&lt;br /&gt;
From a [[Open Terminal as root|terminal, as root]], type '''cfdisk /dev/sdX''' to launch the cfdisk application.&lt;br /&gt;
&lt;br /&gt;
If you have a GUID-partitioned drive, cfdisk will complain. GUID partitions are not supported.&lt;br /&gt;
&lt;br /&gt;
Make sure to replace /dev/sdX with the actual device (eg. /dev/sdb) that you found above.&lt;br /&gt;
&lt;br /&gt;
If your hard drive contains existing partitions, select them one by one at the top (using up/down arrow keys), then select the '''[ Delete ]''' action (using the left/right arrow keys), then hit ENTER.&lt;br /&gt;
&lt;br /&gt;
You should now only have Free Space listed at the top.&amp;lt;br/&amp;gt;&lt;br /&gt;
Select the '''[ New ]''' action, and accept the default (Primary, and size).&lt;br /&gt;
&lt;br /&gt;
You should now have a single partition listed at the top, of type Linux.&amp;lt;br/&amp;gt;&lt;br /&gt;
Select the '''[ Write ]''' action, then '''[ Quit ]'''.&lt;br /&gt;
&lt;br /&gt;
Now that you partitioned your drive, you need to format your newly created partition.&amp;lt;br/&amp;gt;&lt;br /&gt;
To format as EXT3, use this command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
 mkfs.ext3 -j /dev/sdX1&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Replace ext3 with ext4 in the above command to format your partition as EXT4 instead of EXT3.&lt;br /&gt;
&lt;br /&gt;
'''/dev/sdX1''' in the above command refers to the partition your created in cfdisk.&amp;lt;br/&amp;gt;&lt;br /&gt;
Go back in cfdisk, and check the ''Name'' column if you're unsure.&amp;lt;br/&amp;gt;&lt;br /&gt;
If you see ''sdb1'' in the name column, you should use '''/dev/sdb1''' in the above command.&lt;br /&gt;
&lt;br /&gt;
==Partition over 2.1TB==&lt;br /&gt;
Here is a work around for drives with partitions over 2.1TB like the new 3TB drives.&lt;br /&gt;
&lt;br /&gt;
Page: [[Partitions_Over_2.1_TB]]&lt;br /&gt;
&lt;br /&gt;
=Mount the hard drive=&lt;br /&gt;
  &lt;br /&gt;
==Using hda-diskmount script==&lt;br /&gt;
A script is provided with Amahi that will look for unmounted partitions in your system, and mount any it finds.&lt;br /&gt;
&lt;br /&gt;
[[Open Terminal as root|In a Terminal, as root]], type the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
 hda-diskmount&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px; text-align: left;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;small&amp;gt;&lt;br /&gt;
 [root@hda ~]$ hda-diskmount&lt;br /&gt;
 ****************************************************************&lt;br /&gt;
 Ignoring /dev/sda1 - already in /etc/fstab or mounted&lt;br /&gt;
 ****************************************************************&lt;br /&gt;
 Mounted /dev/&amp;lt;strong style=&amp;quot;color:green&amp;quot;&amp;gt;sdb1&amp;lt;/strong&amp;gt; as '&amp;lt;strong style=&amp;quot;color:red&amp;quot;&amp;gt;/var/hda/files/drives/sdb1&amp;lt;/strong&amp;gt;' (read-write)&lt;br /&gt;
 You may want your system to mount it every time you boot.&lt;br /&gt;
 To do so, add this line VERY CAREFULLY to /etc/fstab and reboot:&lt;br /&gt;
 &amp;lt;strong style=&amp;quot;color:blue&amp;quot;&amp;gt;UUID=9d972abc-1639-44df-a60e-668618d40236 /var/hda/files/drives/sdb1 ext4 defaults 1 2&amp;lt;/strong&amp;gt;&lt;br /&gt;
 ****************************************************************&lt;br /&gt;
 All Linux, Windows and Mac partitions on non-removable disks have been mounted&lt;br /&gt;
&amp;lt;/small&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Do '''not''' edit /etc/fstab just yet. What you'll need to add there will depend on how you want to use the extra storage. More about that below.&amp;lt;br/&amp;gt;&lt;br /&gt;
Just note down the information in bold (green, red and blue). We'll use them below.&lt;br /&gt;
&lt;br /&gt;
Note about ext4 in the blue line above: that doesn't necessarily mean your partition is formatted as ext4. It means the ext4 driver will be used to mount your partition. Since that driver is backward compatible, it can be safely used to mount ext2, ext3 and ext4 partitions.&lt;br /&gt;
&lt;br /&gt;
If you get something like ''Disk /dev/dm-0 doesn't contain a valid partition table'' or ''mount: unknown file system type 'lvm2pv''' its because you have LVM's that 'fdisk' can not recognize (or something similar). It's nothing to worry about if you get that when executing the hda-diskmount script.&lt;br /&gt;
&lt;br /&gt;
If you have changed the order of your installed hard drives, hda-diskmount may return the following message:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
Ignoring /dev/sda1 - already in /etc/fstab as /dev/sda1&lt;br /&gt;
This device appears to be commented out of your /etc/fstab. You will need to remove it from there for hda-diskmount to be able to mount it.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This might occur if you have made changes to the drive configuration order after you installed Amahi.  If you want to stay with the reconfigured drive order, instructions on how to fix this are in the next section, Manually setting up the disk mount order.&lt;br /&gt;
&lt;br /&gt;
==Manually setting up the disk mount order ==&lt;br /&gt;
&lt;br /&gt;
1.  First, get the UUID for each drive by opening a terminal and entering command &lt;br /&gt;
&lt;br /&gt;
Ubuntu:&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
gstreet@gstreet-MicroServer:~$ sudo blkid&lt;br /&gt;
[sudo] password for gstreet:&lt;br /&gt;
/dev/sda1: LABEL=&amp;quot;Seagate-Alpha2TB&amp;quot; UUID=&amp;quot;55d9333f-d801-425a-b2af-d65c5966d56f&amp;quot; TYPE=&amp;quot;ext4&amp;quot; &lt;br /&gt;
/dev/sdb1: LABEL=&amp;quot;Seagate-Beta2TB&amp;quot; UUID=&amp;quot;5bd5498f-30c1-4780-948e-ca46656507d2&amp;quot; TYPE=&amp;quot;ext4&amp;quot; &lt;br /&gt;
/dev/sdc1: LABEL=&amp;quot;WD-Charlie2TB&amp;quot; UUID=&amp;quot;a7337504-376a-4d36-9f7a-1a24c0f55fbd&amp;quot; TYPE=&amp;quot;ext4&amp;quot; &lt;br /&gt;
/dev/sdd1: LABEL=&amp;quot;WD-Delta2TB&amp;quot; UUID=&amp;quot;8d881dcb-8de3-4621-b9bd-00025196868a&amp;quot; TYPE=&amp;quot;ext4&amp;quot; &lt;br /&gt;
/dev/sde1: LABEL=&amp;quot;root&amp;quot; UUID=&amp;quot;4d6f8004-d190-4234-a03b-b68de988abf0&amp;quot; TYPE=&amp;quot;ext4&amp;quot; &lt;br /&gt;
/dev/sde3: LABEL=&amp;quot;home&amp;quot; UUID=&amp;quot;d0531fa1-9311-4d53-b838-f35898adbd98&amp;quot; TYPE=&amp;quot;ext4&amp;quot; &lt;br /&gt;
/dev/sde5: LABEL=&amp;quot;swap&amp;quot; UUID=&amp;quot;3c39206c-ba60-47ff-a1fe-f5821b2ab543&amp;quot; TYPE=&amp;quot;swap&amp;quot;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
In this case, the user has four data drives (sda1, sdb1, sdc1, sdd1) and the Operating system assigned to a fifth drive, sde.&lt;br /&gt;
&lt;br /&gt;
Take note of the UUID's for each drive.  Easiest to cut and paste UUID's straight from the terminal  - no typo's!&lt;br /&gt;
&lt;br /&gt;
2. Then edit /etc/fstab to mount each drive - for novices, easiest to do this using a graphical editor.  You might consider first making a copy called fstab.bak (use the &amp;quot;save as&amp;quot; command, close file and then gedit the original fstab again) so that you can recover the original fstab file if you make mistakes.&lt;br /&gt;
&lt;br /&gt;
Ubuntu: {{Code|Code=&lt;br /&gt;
sudo gedit /etc/fstab&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
3.  Then carefully add the following line for each disk into the end of the fstab file &lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
UUID=55d9333f-d801-425a-b2af-d65c5966d56f /var/hda/files/drives/drive1 ext4 defaults 1 2&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It should look something like the following when lines are added for each of the five drives in this example.  Make sure you paste in the right UUID, drive number and drive file system (ext4 in this case).  Note lines beginning with # are comments  where the remainder of the line is ignored) &lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;quot;#  Mounting Greyhole Drives for Drive Pool.  &lt;br /&gt;
&amp;quot;#&lt;br /&gt;
# Drive1 = Seagate-Alpha2TB in Microserver Bay 1 from left &lt;br /&gt;
UUID=55d9333f-d801-425a-b2af-d65c5966d56f /var/hda/files/drives/drive1 ext4 defaults 1 2&lt;br /&gt;
#&lt;br /&gt;
# Drive2 = Seagate-Beta2TB in Microserver Bay 2 from left &lt;br /&gt;
UUID=5bd5498f-30c1-4780-948e-ca46656507d2 /var/hda/files/drives/drive2 ext4 defaults 1 2&lt;br /&gt;
#&lt;br /&gt;
# Drive3 = WD-Charlie2TB in Microserver Bay 3 from left &lt;br /&gt;
UUID=a7337504-376a-4d36-9f7a-1a24c0f55fbd /var/hda/files/drives/drive3 ext4 defaults 1 2&lt;br /&gt;
#&lt;br /&gt;
# Drive4 = WD-Delta2TB in Microserver Bay 4 from left &lt;br /&gt;
UUID=8d881dcb-8de3-4621-b9bd-00025196868a /var/hda/files/drives/drive4 ext4 defaults 1 2&lt;br /&gt;
#&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that the hda-dismount command had already added lines to mount my OS drive which had two partitions (root or /, and home).  Save file and close.&lt;br /&gt;
&lt;br /&gt;
4) Save file and reboot machine. &lt;br /&gt;
&lt;br /&gt;
5) Check drives in Amahi hda (Setup - Shares - Storage Pool)&lt;br /&gt;
&lt;br /&gt;
In my case looked like &lt;br /&gt;
[img]https://docs.google.com/viewer?pid=explorer&amp;amp;srcid=0B4db0S5lBIq8enc1M0pJM3R1Mzg&amp;amp;docid=1b9781c1bebebe893591963b49cd0ab8%7C714e2385b5a30391311cd1211c8e3b8b&amp;amp;a=bi&amp;amp;pagenumber=1&amp;amp;w=800[/img]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Test your hard drive==&lt;br /&gt;
Optionally, you can test your new drive for bad blocks.&amp;lt;br/&amp;gt;&lt;br /&gt;
Note that this step can take a ''long'' time to complete! You'll probably want to start it in the evening, to have it completed in the morning.&lt;br /&gt;
&lt;br /&gt;
To do so, [[Open Terminal as root|in a Terminal, as root]], type the following command. Replace &amp;lt;strong style=&amp;quot;color:green&amp;quot;&amp;gt;sdb1&amp;lt;/strong&amp;gt; with the (green) value you received from hda-diskmount.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
e2fsck -cn /dev/&amp;lt;strong style=&amp;quot;color:green&amp;quot;&amp;gt;sdb1&amp;lt;/strong&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You'll receive a warning that says &amp;quot;WARNING!!!  Running e2fsck on a mounted filesystem may cause SEVERE filesystem damage. Do you really want to continue (y/n)?&amp;quot;&amp;lt;br/&amp;gt;&lt;br /&gt;
Answer ''yes''. The -cn option we're using can safely be used on mounted filesystems.&lt;br /&gt;
&lt;br /&gt;
=Use the hard drive=&lt;br /&gt;
&lt;br /&gt;
You have a choice here on how to use your new hard drive storage space. We'll offer some examples.&lt;br /&gt;
&lt;br /&gt;
==Use the hard drive for all shares==&lt;br /&gt;
&lt;br /&gt;
If you want all your shares to be on your new hard drive, here's how to do that.&lt;br /&gt;
&lt;br /&gt;
First, you'll want to move all you previous shares data, if any, into your new drive.&amp;lt;br/&amp;gt;&lt;br /&gt;
You only need to do this next command if you have data that you care about in the /var/hda/files/* folders.&amp;lt;br/&amp;gt;&lt;br /&gt;
[[Open Terminal as root|In a Terminal, as root]], type the following command. Replace the path in red with the path you received when you ran hda-diskmount.&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
 mv /var/hda/files/* &amp;lt;strong style=&amp;quot;color:red&amp;quot;&amp;gt;/var/hda/files/drives/sdb1/&amp;lt;/strong&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
You'll get a warning about &amp;quot;cannot move `/var/hda/files/drives' to a subdirectory of itself&amp;quot;; that is fine, ignore that.&lt;br /&gt;
&lt;br /&gt;
Next, you'll need to unmount your new hard drive, and remount it as /var/hda/files&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
 umount /var/hda/files/drives/sdb1/&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
 nano /etc/fstab&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In nano, you'll need to add a new line at the bottom. Take the line that hda-diskmount gave you (the blue one), and change the second value (the path).&amp;lt;br/&amp;gt;&lt;br /&gt;
Replace the second value with '''/var/hda/files'''.&lt;br /&gt;
&lt;br /&gt;
hda-diskmount gave me:&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;span style=&amp;quot;color:blue&amp;quot;&amp;gt;UUID=9d972abc-1639-44df-a60e-668618d40236 &amp;lt;strong&amp;gt;/var/hda/files/drives/sdb1&amp;lt;/strong&amp;gt; ext4 defaults 1 2&amp;lt;/span&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So I should add this instead:&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
 UUID=9d972abc-1639-44df-a60e-668618d40236 &amp;lt;strong&amp;gt;/var/hda/files&amp;lt;/strong&amp;gt; ext4 defaults 1 2&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Make sure you do '''not''' change anything else from the blue line you received from hda-diskmount.&amp;lt;br/&amp;gt;&lt;br /&gt;
It might not be the same thing as the above example; you need to use the values you've received.&lt;br /&gt;
&lt;br /&gt;
Save and exit nano (CTRL-X, Y, ENTER), and try your new mount:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
 mount -a&lt;br /&gt;
 ls /var/hda/files/&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
That last command should show you the content of you new hard drive.&lt;br /&gt;
&lt;br /&gt;
That's it. All your shares in /var/hda/files are now on your new hard drive.&lt;br /&gt;
&lt;br /&gt;
==Use the hard drive for only some shares==&lt;br /&gt;
&lt;br /&gt;
If you want only some of your shares to be on your new hard drive, here's how to do that.&lt;br /&gt;
&lt;br /&gt;
First, you'll want to move your previous shares data, if any, into your new drive.&amp;lt;br/&amp;gt;&lt;br /&gt;
You only need to do this next command if you have data that you care about in the /var/hda/files/* folders (that you want on the new drive).&amp;lt;br/&amp;gt;&lt;br /&gt;
[[Open Terminal as root|In a Terminal, as root]], type the following command. Replace the path in red with the path you received when you ran hda-diskmount. Replace '''something''' with the name of the share you want to have on your new drive (the share should already exist).&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
 mv /var/hda/files/&amp;lt;strong&amp;gt;something&amp;lt;/strong&amp;gt; &amp;lt;strong style=&amp;quot;color:red&amp;quot;&amp;gt;/var/hda/files/drives/sdb1/&amp;lt;/strong&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Repeat with every share you want on your new drive.&lt;br /&gt;
&lt;br /&gt;
Next, you'll need to make the mount permanent&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
 umount /var/hda/files/drives/sdb1&amp;lt;br/&amp;gt;&lt;br /&gt;
 nano /etc/fstab&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In nano, you'll need to add a new line at the bottom. Take the line that hda-diskmount gave you, and insert that.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So, following previous examples, I should add this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px; text-align: left;&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;span style=&amp;quot;color: blue;&amp;quot;&amp;gt;UUID=9d972abc-1639-44df-a60e-668618d40236 /var/hda/files/drives/sdb1 ext4 defaults 1 2&amp;lt;/span&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Save and exit nano (CTRL-X, Y, ENTER), and try your new mount:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
 mount -a&lt;br /&gt;
 ls /var/hda/files/drives/sdb1&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
That last command should show you the content of you new hard drive.&lt;br /&gt;
&lt;br /&gt;
Now, you need to update the location of the moved shares within Amahi. Go to your &amp;lt;strong&amp;gt;Amahi Dashboard&amp;lt;/strong&amp;gt;, click on &amp;lt;strong&amp;gt;Setup&amp;lt;/strong&amp;gt;, then &amp;lt;strong&amp;gt;Shares&amp;lt;/strong&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
Click on one of the shares that you have moved. This will open a panel revealing the share settings. Click on the location (the bit that is shown with a dotted underline) and it will change to an edit box. Update the location to match the new share location. &lt;br /&gt;
&lt;br /&gt;
For example, the original movies location was: &amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;/var/hda/files/movies&amp;lt;/span&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
The new location might be: &amp;lt;span style=&amp;quot;color:blue&amp;quot;&amp;gt;/var/hda/files/drives/sdb1/movies&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Repeat for any other shares that you have moved. Check that you can access these shares from another machine within your network.&lt;br /&gt;
&lt;br /&gt;
Finally, if you have any services that depend on the location of these shares, make sure they are configured to use the new share location. For example, if you have a DLNA server installed, check its configuration files to make sure that it can find any media folders that have been moved. Secondly, &amp;lt;em&amp;gt;check that all such services start correctly and behave as expected&amp;lt;/em&amp;gt;. If the service doesn't start, it may be that it is testing for a specific location during the service startup. Check the startup files in &amp;lt;strong&amp;gt;/etc/init.d&amp;lt;/strong&amp;gt; to see if this is the case.&lt;br /&gt;
&lt;br /&gt;
That's it. Your share(s) are now on your new hard drive.&lt;br /&gt;
&lt;br /&gt;
==Use the hard drive in your Greyhole storage pool==&lt;br /&gt;
&lt;br /&gt;
If you want to add your new hard drive to your Greyhole storage pool, here's how to do that.&lt;br /&gt;
&lt;br /&gt;
First, you'll need to make the mount permanent. [[Open Terminal as root|In a Terminal, as root]], type the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
 umount /var/hda/files/drives/sdb1&lt;br /&gt;
 nano /etc/fstab&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In nano, you'll need to add a new line at the bottom. Take the line that hda-diskmount gave you, and insert that.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So, following previous examples, I should add this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px; text-align: left;&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;span style=&amp;quot;color: blue;&amp;quot;&amp;gt;UUID=9d972abc-1639-44df-a60e-668618d40236 /var/hda/files/drives/sdb1 ext4 defaults 1 2&amp;lt;/span&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Save and exit nano (CTRL-X, Y, ENTER), and try your new mount:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
 mount -a&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Finally, you'll need to configure Greyhole to select your new partition. To configure Greyhole, Advanced Settings must be enabled under [http://hda/setup?sub=settings&amp;amp;tab=setting Setup &amp;amp;gt; Settings].&lt;br /&gt;
&lt;br /&gt;
In the [http://hda/setup?sub=disk_pooling&amp;amp;tab=share Shares &amp;amp;gt; Storage Pool page] of your Amahi dashboard, you'll see a list of mounted partitions, with checkboxes next to each, allowing you to include those partitions in your storage pool.&lt;br /&gt;
&lt;br /&gt;
You should now have a new row in there, referring to /var/hda/files/drives/sdb1.&lt;br /&gt;
&lt;br /&gt;
Select it (click the checkbox).&lt;br /&gt;
&lt;br /&gt;
That's it. Your new hard drive just increased your Greyhole storage pool capacity.&lt;/div&gt;</summary>
		<author><name>Carl Greenstreet</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Adding_a_second_hard_drive_to_your_HDA&amp;diff=62990</id>
		<title>Adding a second hard drive to your HDA</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Adding_a_second_hard_drive_to_your_HDA&amp;diff=62990"/>
		<updated>2012-11-08T10:34:58Z</updated>

		<summary type="html">&lt;p&gt;Carl Greenstreet: /* Mount the hard drive */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{MessageBox|&lt;br /&gt;
backgroundcolor	= #faa|&lt;br /&gt;
image	=Warning.png|&lt;br /&gt;
heading	=WARNING|&lt;br /&gt;
message = This is recommended only for advanced users, proceed with caution.}}&lt;br /&gt;
[[Adding_drives_to_your_HDA|Adding drives to your HDA]] is another howto on doing this, a bit shorter and less elaborate, which can be good for some people, specially a novice unfamiliar with doing any of this.&lt;br /&gt;
&lt;br /&gt;
More hard drives can be added in your Amahi HDA for additional storage space.&lt;br /&gt;
&lt;br /&gt;
We'll detail how to add such hard drives, and how to put them to good use.&lt;br /&gt;
&lt;br /&gt;
=Important Notes=&lt;br /&gt;
&lt;br /&gt;
* This is a how-to on adding additional drives to your HDA.&lt;br /&gt;
* Amahi cannot be held responsible for any data breakage or destruction arising from the use or misuse of this script. We provide it as a service in good will. You accept this automatically if you use the script.&lt;br /&gt;
* This page and script does not support GUID-partitioned drives (such as drives previously in a Mac or have GPT partition tables). You can find what your partition is like with &amp;lt;code&amp;gt;fdisk -l&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Make sure your drive is detected by Fedora=&lt;br /&gt;
&lt;br /&gt;
Open a Terminal, and type the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; background-color: #E6F2FF; margin: 0 1em;&amp;quot;&amp;gt;&lt;br /&gt;
 ls -1 /dev/disk/by-id/ | egrep -v &amp;quot;part|scsi&amp;quot;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Look for the line that matches the hard drive you added.&lt;br /&gt;
&lt;br /&gt;
IDE and SATA hard drives will start with '''ata-''' and USB hard drives will start with '''usb-'''.&amp;lt;br/&amp;gt;&lt;br /&gt;
Look for your hard drive model and serial number.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
 [gb@hda ~]$ ls -1 /dev/disk/by-id/ | egrep -v &amp;quot;part|scsi&amp;quot;&lt;br /&gt;
 ata-Hitachi_HDS722020ALA330_JK1131YAGDU37V&lt;br /&gt;
 ata-ST31000528AS_6VP08W65&lt;br /&gt;
 ata-ST3750640A_3QD0LJN8&lt;br /&gt;
 ata-ST3750640A_5QD27A57&lt;br /&gt;
 ata-WDC_WD10EADS-00L5B1_WD-WCAU4C700358&lt;br /&gt;
 usb-ST310003_33AS_9E1CA6FFFFFF-0:0&lt;br /&gt;
 usb-ST375064_0A_2009031309E2-0:0&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Install prerequisites=&lt;br /&gt;
&lt;br /&gt;
[[Open Terminal as root|In a Terminal, as root]], type the following (two) commands:&lt;br /&gt;
&lt;br /&gt;
* Fedora&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px; text-align: left&amp;quot;&amp;gt;&lt;br /&gt;
 yum -y install pmount fuse fuse-libs ntfs-3g gparted util-linux-ng&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Ubuntu &lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px; text-align: left&amp;quot;&amp;gt;&lt;br /&gt;
 sudo apt-get -y install gparted&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Drives must be formatted as '''MBR''' not '''GUID/GPT''' for hda-diskmount to recognize the disk.&lt;br /&gt;
&lt;br /&gt;
=Partition and format the hard drive=&lt;br /&gt;
&lt;br /&gt;
This step is optional, and should only be executed if you want to delete the content of your new hard drive, or if the hard drive has not yet been formatted.&lt;br /&gt;
&lt;br /&gt;
You should (unless you have a good reason not to) use GParted to partition and format your hard drive.&amp;lt;br/&amp;gt;&lt;br /&gt;
Not having X installed would qualify as a good reason! In such cases, either use SSH X11 Forwarding (Google that if you'd like to use this), or [[Adding_a_second_hard_drive_to_your_HDA#Using_cfdisk|use cfdisk]] from a [[Open Terminal as root|Terminal, as root]].&lt;br /&gt;
&lt;br /&gt;
You'll probably want to create a single partition, and format it as ''ext3''.&amp;lt;br/&amp;gt;&lt;br /&gt;
Note that Windows can't read ext3 partitions, so if you want dual-boot Windows on your Amahi PC, or if you intend to connect this hard drive to a Windows computer later, you should format as NTFS instead, and you should do that on Windows before you connect the drive in your HDA.&amp;lt;br/&amp;gt;&lt;br /&gt;
Remember that using NTFS partitions on Linux will be slower that using ext3 partitions, so you should only use NTFS if you really need it.&amp;lt;br/&amp;gt;&lt;br /&gt;
How much slower: compare the blue bars (NTFS-3G) with the red bars (ext3) on [http://www.tuxera.com/products/tuxera-ntfs-commercial/performance/ this graph].&lt;br /&gt;
&lt;br /&gt;
To know what device (/dev/sdX) you need to partition and format, use the following command, in a [[Open Terminal as root|Terminal, as root]]:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
 ls -l /dev/disk/by-id/&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Find the row corresponding to your hard drive, and look at the end of the line to identify the correct device to use.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&amp;lt;small&amp;gt;&lt;br /&gt;
 [gb@hda ~]$ ls -l /dev/disk/by-id/&lt;br /&gt;
 total 0&lt;br /&gt;
 lrwxrwxrwx 1 root root  9 2010-02-18 03:24  ata-Hitachi_HDS722020ALA330_JK1131YAGDU37V -&amp;gt; ../../sda&lt;br /&gt;
 lrwxrwxrwx 1 root root 10 2010-02-18 03:24 ata-Hitachi_HDS722020ALA330_JK1131YAGDU37V-part1 -&amp;gt; ../../sda1&lt;br /&gt;
 lrwxrwxrwx 1 root root  9 2010-02-18 03:24 ata-ST31000528AS_6VP08W65 -&amp;gt; ../../sdb&lt;br /&gt;
&amp;lt;/small&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the above example, /dev/sdb would be what I would select in GParted (or use on the cfdisk command). sda in my primary hard drive, and sdb my second hard drive.&lt;br /&gt;
&lt;br /&gt;
==Using GParted==&lt;br /&gt;
From the HDA desktop (or using VNC), [[Open Terminal as root]] and type '''gparted''' to launch the GParted application.&lt;br /&gt;
&lt;br /&gt;
Select the device (/dev/sdX) that you found above.&lt;br /&gt;
&lt;br /&gt;
In the above example, /dev/sdb would be what I would select in GParted.&lt;br /&gt;
&lt;br /&gt;
There are many easy to follow guides online on how to use GParted. You should Google for one, to find one that seems clear to you.&lt;br /&gt;
&lt;br /&gt;
[http://www.mepisguides.com/Mepis-6/Install/gparted/gparted-set-partition.html Here's one] that looks simple. Just use ext3 instead of fat32 in you follow that tutorial.&lt;br /&gt;
&lt;br /&gt;
Note that gparted supports GUID-partitioned drives, however, these directions and script do not support it at the moment.&lt;br /&gt;
&lt;br /&gt;
==Using cfdisk==&lt;br /&gt;
From a [[Open Terminal as root|terminal, as root]], type '''cfdisk /dev/sdX''' to launch the cfdisk application.&lt;br /&gt;
&lt;br /&gt;
If you have a GUID-partitioned drive, cfdisk will complain. GUID partitions are not supported.&lt;br /&gt;
&lt;br /&gt;
Make sure to replace /dev/sdX with the actual device (eg. /dev/sdb) that you found above.&lt;br /&gt;
&lt;br /&gt;
If your hard drive contains existing partitions, select them one by one at the top (using up/down arrow keys), then select the '''[ Delete ]''' action (using the left/right arrow keys), then hit ENTER.&lt;br /&gt;
&lt;br /&gt;
You should now only have Free Space listed at the top.&amp;lt;br/&amp;gt;&lt;br /&gt;
Select the '''[ New ]''' action, and accept the default (Primary, and size).&lt;br /&gt;
&lt;br /&gt;
You should now have a single partition listed at the top, of type Linux.&amp;lt;br/&amp;gt;&lt;br /&gt;
Select the '''[ Write ]''' action, then '''[ Quit ]'''.&lt;br /&gt;
&lt;br /&gt;
Now that you partitioned your drive, you need to format your newly created partition.&amp;lt;br/&amp;gt;&lt;br /&gt;
To format as EXT3, use this command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
 mkfs.ext3 -j /dev/sdX1&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Replace ext3 with ext4 in the above command to format your partition as EXT4 instead of EXT3.&lt;br /&gt;
&lt;br /&gt;
'''/dev/sdX1''' in the above command refers to the partition your created in cfdisk.&amp;lt;br/&amp;gt;&lt;br /&gt;
Go back in cfdisk, and check the ''Name'' column if you're unsure.&amp;lt;br/&amp;gt;&lt;br /&gt;
If you see ''sdb1'' in the name column, you should use '''/dev/sdb1''' in the above command.&lt;br /&gt;
&lt;br /&gt;
==Partition over 2.1TB==&lt;br /&gt;
Here is a work around for drives with partitions over 2.1TB like the new 3TB drives.&lt;br /&gt;
&lt;br /&gt;
Page: [[Partitions_Over_2.1_TB]]&lt;br /&gt;
&lt;br /&gt;
=Mount the hard drive=&lt;br /&gt;
&lt;br /&gt;
A script is provided with Amahi that will look for unmounted partitions in your system, and mount any it finds.&lt;br /&gt;
&lt;br /&gt;
[[Open Terminal as root|In a Terminal, as root]], type the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
 hda-diskmount&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px; text-align: left;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;small&amp;gt;&lt;br /&gt;
 [root@hda ~]$ hda-diskmount&lt;br /&gt;
 ****************************************************************&lt;br /&gt;
 Ignoring /dev/sda1 - already in /etc/fstab or mounted&lt;br /&gt;
 ****************************************************************&lt;br /&gt;
 Mounted /dev/&amp;lt;strong style=&amp;quot;color:green&amp;quot;&amp;gt;sdb1&amp;lt;/strong&amp;gt; as '&amp;lt;strong style=&amp;quot;color:red&amp;quot;&amp;gt;/var/hda/files/drives/sdb1&amp;lt;/strong&amp;gt;' (read-write)&lt;br /&gt;
 You may want your system to mount it every time you boot.&lt;br /&gt;
 To do so, add this line VERY CAREFULLY to /etc/fstab and reboot:&lt;br /&gt;
 &amp;lt;strong style=&amp;quot;color:blue&amp;quot;&amp;gt;UUID=9d972abc-1639-44df-a60e-668618d40236 /var/hda/files/drives/sdb1 ext4 defaults 1 2&amp;lt;/strong&amp;gt;&lt;br /&gt;
 ****************************************************************&lt;br /&gt;
 All Linux, Windows and Mac partitions on non-removable disks have been mounted&lt;br /&gt;
&amp;lt;/small&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Do '''not''' edit /etc/fstab just yet. What you'll need to add there will depend on how you want to use the extra storage. More about that below.&amp;lt;br/&amp;gt;&lt;br /&gt;
Just note down the information in bold (green, red and blue). We'll use them below.&lt;br /&gt;
&lt;br /&gt;
Note about ext4 in the blue line above: that doesn't necessarily mean your partition is formatted as ext4. It means the ext4 driver will be used to mount your partition. Since that driver is backward compatible, it can be safely used to mount ext2, ext3 and ext4 partitions.&lt;br /&gt;
&lt;br /&gt;
If you get something like ''Disk /dev/dm-0 doesn't contain a valid partition table'' or ''mount: unknown file system type 'lvm2pv''' its because you have LVM's that 'fdisk' can not recognize (or something similar). It's nothing to worry about if you get that when executing the hda-diskmount script.&lt;br /&gt;
&lt;br /&gt;
If you have changed the order of your installed hard drives, hda-diskmount may return the following message:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
Ignoring /dev/sda1 - already in /etc/fstab as /dev/sda1&lt;br /&gt;
This device appears to be commented out of your /etc/fstab. You will need to remove it from there for hda-diskmount to be able to mount it.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This might occur if you have made changes to the drive configuration order after you installed Amahi.  If you want to stay with the reconfigured drive order, instructions on how to fix this are here.&lt;br /&gt;
&lt;br /&gt;
==Test your hard drive==&lt;br /&gt;
Optionally, you can test your new drive for bad blocks.&amp;lt;br/&amp;gt;&lt;br /&gt;
Note that this step can take a ''long'' time to complete! You'll probably want to start it in the evening, to have it completed in the morning.&lt;br /&gt;
&lt;br /&gt;
To do so, [[Open Terminal as root|in a Terminal, as root]], type the following command. Replace &amp;lt;strong style=&amp;quot;color:green&amp;quot;&amp;gt;sdb1&amp;lt;/strong&amp;gt; with the (green) value you received from hda-diskmount.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
e2fsck -cn /dev/&amp;lt;strong style=&amp;quot;color:green&amp;quot;&amp;gt;sdb1&amp;lt;/strong&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You'll receive a warning that says &amp;quot;WARNING!!!  Running e2fsck on a mounted filesystem may cause SEVERE filesystem damage. Do you really want to continue (y/n)?&amp;quot;&amp;lt;br/&amp;gt;&lt;br /&gt;
Answer ''yes''. The -cn option we're using can safely be used on mounted filesystems.&lt;br /&gt;
&lt;br /&gt;
=Use the hard drive=&lt;br /&gt;
&lt;br /&gt;
You have a choice here on how to use your new hard drive storage space. We'll offer some examples.&lt;br /&gt;
&lt;br /&gt;
==Use the hard drive for all shares==&lt;br /&gt;
&lt;br /&gt;
If you want all your shares to be on your new hard drive, here's how to do that.&lt;br /&gt;
&lt;br /&gt;
First, you'll want to move all you previous shares data, if any, into your new drive.&amp;lt;br/&amp;gt;&lt;br /&gt;
You only need to do this next command if you have data that you care about in the /var/hda/files/* folders.&amp;lt;br/&amp;gt;&lt;br /&gt;
[[Open Terminal as root|In a Terminal, as root]], type the following command. Replace the path in red with the path you received when you ran hda-diskmount.&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
 mv /var/hda/files/* &amp;lt;strong style=&amp;quot;color:red&amp;quot;&amp;gt;/var/hda/files/drives/sdb1/&amp;lt;/strong&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
You'll get a warning about &amp;quot;cannot move `/var/hda/files/drives' to a subdirectory of itself&amp;quot;; that is fine, ignore that.&lt;br /&gt;
&lt;br /&gt;
Next, you'll need to unmount your new hard drive, and remount it as /var/hda/files&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
 umount /var/hda/files/drives/sdb1/&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
 nano /etc/fstab&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In nano, you'll need to add a new line at the bottom. Take the line that hda-diskmount gave you (the blue one), and change the second value (the path).&amp;lt;br/&amp;gt;&lt;br /&gt;
Replace the second value with '''/var/hda/files'''.&lt;br /&gt;
&lt;br /&gt;
hda-diskmount gave me:&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;span style=&amp;quot;color:blue&amp;quot;&amp;gt;UUID=9d972abc-1639-44df-a60e-668618d40236 &amp;lt;strong&amp;gt;/var/hda/files/drives/sdb1&amp;lt;/strong&amp;gt; ext4 defaults 1 2&amp;lt;/span&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So I should add this instead:&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
 UUID=9d972abc-1639-44df-a60e-668618d40236 &amp;lt;strong&amp;gt;/var/hda/files&amp;lt;/strong&amp;gt; ext4 defaults 1 2&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Make sure you do '''not''' change anything else from the blue line you received from hda-diskmount.&amp;lt;br/&amp;gt;&lt;br /&gt;
It might not be the same thing as the above example; you need to use the values you've received.&lt;br /&gt;
&lt;br /&gt;
Save and exit nano (CTRL-X, Y, ENTER), and try your new mount:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
 mount -a&lt;br /&gt;
 ls /var/hda/files/&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
That last command should show you the content of you new hard drive.&lt;br /&gt;
&lt;br /&gt;
That's it. All your shares in /var/hda/files are now on your new hard drive.&lt;br /&gt;
&lt;br /&gt;
==Use the hard drive for only some shares==&lt;br /&gt;
&lt;br /&gt;
If you want only some of your shares to be on your new hard drive, here's how to do that.&lt;br /&gt;
&lt;br /&gt;
First, you'll want to move your previous shares data, if any, into your new drive.&amp;lt;br/&amp;gt;&lt;br /&gt;
You only need to do this next command if you have data that you care about in the /var/hda/files/* folders (that you want on the new drive).&amp;lt;br/&amp;gt;&lt;br /&gt;
[[Open Terminal as root|In a Terminal, as root]], type the following command. Replace the path in red with the path you received when you ran hda-diskmount. Replace '''something''' with the name of the share you want to have on your new drive (the share should already exist).&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
 mv /var/hda/files/&amp;lt;strong&amp;gt;something&amp;lt;/strong&amp;gt; &amp;lt;strong style=&amp;quot;color:red&amp;quot;&amp;gt;/var/hda/files/drives/sdb1/&amp;lt;/strong&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Repeat with every share you want on your new drive.&lt;br /&gt;
&lt;br /&gt;
Next, you'll need to make the mount permanent&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
 umount /var/hda/files/drives/sdb1&amp;lt;br/&amp;gt;&lt;br /&gt;
 nano /etc/fstab&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In nano, you'll need to add a new line at the bottom. Take the line that hda-diskmount gave you, and insert that.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So, following previous examples, I should add this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px; text-align: left;&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;span style=&amp;quot;color: blue;&amp;quot;&amp;gt;UUID=9d972abc-1639-44df-a60e-668618d40236 /var/hda/files/drives/sdb1 ext4 defaults 1 2&amp;lt;/span&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Save and exit nano (CTRL-X, Y, ENTER), and try your new mount:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
 mount -a&lt;br /&gt;
 ls /var/hda/files/drives/sdb1&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
That last command should show you the content of you new hard drive.&lt;br /&gt;
&lt;br /&gt;
Now, you need to update the location of the moved shares within Amahi. Go to your &amp;lt;strong&amp;gt;Amahi Dashboard&amp;lt;/strong&amp;gt;, click on &amp;lt;strong&amp;gt;Setup&amp;lt;/strong&amp;gt;, then &amp;lt;strong&amp;gt;Shares&amp;lt;/strong&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
Click on one of the shares that you have moved. This will open a panel revealing the share settings. Click on the location (the bit that is shown with a dotted underline) and it will change to an edit box. Update the location to match the new share location. &lt;br /&gt;
&lt;br /&gt;
For example, the original movies location was: &amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;/var/hda/files/movies&amp;lt;/span&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
The new location might be: &amp;lt;span style=&amp;quot;color:blue&amp;quot;&amp;gt;/var/hda/files/drives/sdb1/movies&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Repeat for any other shares that you have moved. Check that you can access these shares from another machine within your network.&lt;br /&gt;
&lt;br /&gt;
Finally, if you have any services that depend on the location of these shares, make sure they are configured to use the new share location. For example, if you have a DLNA server installed, check its configuration files to make sure that it can find any media folders that have been moved. Secondly, &amp;lt;em&amp;gt;check that all such services start correctly and behave as expected&amp;lt;/em&amp;gt;. If the service doesn't start, it may be that it is testing for a specific location during the service startup. Check the startup files in &amp;lt;strong&amp;gt;/etc/init.d&amp;lt;/strong&amp;gt; to see if this is the case.&lt;br /&gt;
&lt;br /&gt;
That's it. Your share(s) are now on your new hard drive.&lt;br /&gt;
&lt;br /&gt;
==Use the hard drive in your Greyhole storage pool==&lt;br /&gt;
&lt;br /&gt;
If you want to add your new hard drive to your Greyhole storage pool, here's how to do that.&lt;br /&gt;
&lt;br /&gt;
First, you'll need to make the mount permanent. [[Open Terminal as root|In a Terminal, as root]], type the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
 umount /var/hda/files/drives/sdb1&lt;br /&gt;
 nano /etc/fstab&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In nano, you'll need to add a new line at the bottom. Take the line that hda-diskmount gave you, and insert that.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So, following previous examples, I should add this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px; text-align: left;&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;span style=&amp;quot;color: blue;&amp;quot;&amp;gt;UUID=9d972abc-1639-44df-a60e-668618d40236 /var/hda/files/drives/sdb1 ext4 defaults 1 2&amp;lt;/span&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Save and exit nano (CTRL-X, Y, ENTER), and try your new mount:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
 mount -a&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Finally, you'll need to configure Greyhole to select your new partition. To configure Greyhole, Advanced Settings must be enabled under [http://hda/setup?sub=settings&amp;amp;tab=setting Setup &amp;amp;gt; Settings].&lt;br /&gt;
&lt;br /&gt;
In the [http://hda/setup?sub=disk_pooling&amp;amp;tab=share Shares &amp;amp;gt; Storage Pool page] of your Amahi dashboard, you'll see a list of mounted partitions, with checkboxes next to each, allowing you to include those partitions in your storage pool.&lt;br /&gt;
&lt;br /&gt;
You should now have a new row in there, referring to /var/hda/files/drives/sdb1.&lt;br /&gt;
&lt;br /&gt;
Select it (click the checkbox).&lt;br /&gt;
&lt;br /&gt;
That's it. Your new hard drive just increased your Greyhole storage pool capacity.&lt;/div&gt;</summary>
		<author><name>Carl Greenstreet</name></author>
		
	</entry>
</feed>