<?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=TheGeebs</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=TheGeebs"/>
	<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php/Special:Contributions/TheGeebs"/>
	<updated>2026-04-07T15:41:18Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.34.2</generator>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Mount_Shares_Locally&amp;diff=46513</id>
		<title>Mount Shares Locally</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Mount_Shares_Locally&amp;diff=46513"/>
		<updated>2011-09-10T17:21:56Z</updated>

		<summary type="html">&lt;p&gt;TheGeebs: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Mounting your Samba shares locally is useful when you are using Greyhole, and want to write or in any way work with those files locally. Greyhole data should only be accessed through shares, so mounting those shares locally is an easy way to work with Greyhole data safely.&lt;br /&gt;
&lt;br /&gt;
* As '''root:''' Install the mount_shares_locally initd script:&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; overflow: scroll&amp;quot;&amp;gt;&lt;br /&gt;
 curl -o /etc/init.d/mount_shares_locally http://dl.dropbox.com/u/3022105/Amahi/mount_shares_locally&lt;br /&gt;
 chmod +x /etc/init.d/mount_shares_locally&lt;br /&gt;
 chkconfig --add mount_shares_locally&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Edit /etc/init.d/mount_shares_locally (as user root) in a text editor, and replace ''your_username'' (on line 12) with your username. Example '''username=&amp;quot;amahi&amp;quot;'''&lt;br /&gt;
{{Code|Code= nano /etc/init.d/mount_shares_locally}}&lt;br /&gt;
* Create the ''/home/your_username/.smb_credentials'' file. This is a simple text file (use your favorite text editor).&lt;br /&gt;
{{Code|Code= nano /home/YourHDA_username/.smb_credentials}}&lt;br /&gt;
*Enter the following:&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;
 username=your_username&lt;br /&gt;
 password=your_password&lt;br /&gt;
 domain=HOME&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
'''NOTE:'''  your_username and your_password in the .smb_credentials file needs to be the original username and password you created when you installed fedora.&lt;br /&gt;
&lt;br /&gt;
*To test your new mounts, you can execute '''service mount_shares_locally start'''&amp;lt;br/&amp;gt;&lt;br /&gt;
You will find the mounted shares in ''/mnt/samba/*''&amp;lt;br/&amp;gt;&lt;br /&gt;
'''service mount_shares_locally stop''' will unmount the local shares.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: if you used /etc/rc.local and /etc/fstab to mount shares locally in the past, you can remove what you added in those files now. The above initd script replaces all this.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Unable to mount localy after upgrading to Amahi6 ==&lt;br /&gt;
If you try to run mount using this script after you upgraded to Amahi6 you might get greeted by this type of error.&lt;br /&gt;
&lt;br /&gt;
 [root@localhost ~]# /etc/init.d/mount_shares_locally start&lt;br /&gt;
 Mounting Samba shares locally: /etc/init.d/mount_shares_locally: line 27: /sbin/mount.cifs: No such file or directory&lt;br /&gt;
 /etc/init.d/mount_shares_locally: line 27: /sbin/mount.cifs: No such file or directory&lt;br /&gt;
 /etc/init.d/mount_shares_locally: line 27: /sbin/mount.cifs: No such file or directory&lt;br /&gt;
 /etc/init.d/mount_shares_locally: line 27: /sbin/mount.cifs: No such file or directory&lt;br /&gt;
 /etc/init.d/mount_shares_locally: line 27: /sbin/mount.cifs: No such file or directory&lt;br /&gt;
 /etc/init.d/mount_shares_locally: line 27: /sbin/mount.cifs: No such file or directory&lt;br /&gt;
 /etc/init.d/mount_shares_locally: line 27: /sbin/mount.cifs: No such file or directory&lt;br /&gt;
                                                           [  OK  ]&lt;br /&gt;
&lt;br /&gt;
It's easily fixed by installing the missing dependency.&lt;br /&gt;
&lt;br /&gt;
{{Code|yum install cifs-utils}}&lt;br /&gt;
&lt;br /&gt;
Now it should work fine to run&lt;br /&gt;
&lt;br /&gt;
{{Code|/etc/init.d/mount_shares_locally start}}&lt;br /&gt;
&lt;br /&gt;
== MySQL Problems With Newer Versions of Greyhole ==&lt;br /&gt;
&lt;br /&gt;
Since Greyhole moved from SQL Lite to MySQL, you may hit a problem where Greyhole and the mount_shares_locally script both attempt to start before MySQL in bootup, leading to the services not starting properly.  If this happens, you can try this to fix it:&lt;br /&gt;
&lt;br /&gt;
{{Code|ls /etc/rc.3/}}&lt;br /&gt;
* Look for any entries marked S-1.  If there are any, they need to be removed.  Run the following as root:&lt;br /&gt;
&lt;br /&gt;
{{Code|rm S-1*}}&lt;/div&gt;</summary>
		<author><name>TheGeebs</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Mount_Shares_Locally&amp;diff=46507</id>
		<title>Mount Shares Locally</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Mount_Shares_Locally&amp;diff=46507"/>
		<updated>2011-09-10T17:02:26Z</updated>

		<summary type="html">&lt;p&gt;TheGeebs: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Mounting your Samba shares locally is useful when you are using Greyhole, and want to write or in any way work with those files locally. Greyhole data should only be accessed through shares, so mounting those shares locally is an easy way to work with Greyhole data safely.&lt;br /&gt;
&lt;br /&gt;
* As '''root:''' Install the mount_shares_locally initd script:&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; overflow: scroll&amp;quot;&amp;gt;&lt;br /&gt;
 curl -o /etc/init.d/mount_shares_locally http://dl.dropbox.com/u/3022105/Amahi/mount_shares_locally&lt;br /&gt;
 chmod +x /etc/init.d/mount_shares_locally&lt;br /&gt;
 chkconfig --add mount_shares_locally&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Edit /etc/init.d/mount_shares_locally (as user root) in a text editor, and replace ''your_username'' (on line 12) with your username.&lt;br /&gt;
&lt;br /&gt;
* Create the ''/home/your_username/.smb_credentials'' file. This is a simple text file (use your favorite text editor).&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;
 username=your_username&lt;br /&gt;
 password=your_password&lt;br /&gt;
 domain=HOME&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
'''NOTE:'''  your_username and your_password in the .smb_credentials file needs to be the original username and password you created when you installed fedora.&lt;br /&gt;
&lt;br /&gt;
To test your new mounts, you can execute '''service mount_shares_locally start'''&amp;lt;br/&amp;gt;&lt;br /&gt;
You will find the mounted shares in ''/mnt/samba/*''&amp;lt;br/&amp;gt;&lt;br /&gt;
'''service mount_shares_locally stop''' will unmount the local shares.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: if you used /etc/rc.local and /etc/fstab to mount shares locally in the past, you can remove what you added in those files now. The above initd script replaces all this.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Unable to mount localy after upgrading to Amahi6 ==&lt;br /&gt;
If you try to run mount using this script after you upgraded to Amahi6 you might get greeted by this type of error.&lt;br /&gt;
&lt;br /&gt;
 [root@localhost ~]# /etc/init.d/mount_shares_locally start&lt;br /&gt;
 Mounting Samba shares locally: /etc/init.d/mount_shares_locally: line 27: /sbin/mount.cifs: No such file or directory&lt;br /&gt;
 /etc/init.d/mount_shares_locally: line 27: /sbin/mount.cifs: No such file or directory&lt;br /&gt;
 /etc/init.d/mount_shares_locally: line 27: /sbin/mount.cifs: No such file or directory&lt;br /&gt;
 /etc/init.d/mount_shares_locally: line 27: /sbin/mount.cifs: No such file or directory&lt;br /&gt;
 /etc/init.d/mount_shares_locally: line 27: /sbin/mount.cifs: No such file or directory&lt;br /&gt;
 /etc/init.d/mount_shares_locally: line 27: /sbin/mount.cifs: No such file or directory&lt;br /&gt;
 /etc/init.d/mount_shares_locally: line 27: /sbin/mount.cifs: No such file or directory&lt;br /&gt;
                                                           [  OK  ]&lt;br /&gt;
&lt;br /&gt;
It's easily fixed by installing the missing dependency.&lt;br /&gt;
&lt;br /&gt;
{{Code|yum install cifs-utils}}&lt;br /&gt;
&lt;br /&gt;
Now it should work fine to run&lt;br /&gt;
&lt;br /&gt;
{{Code|/etc/init.d/mount_shares_locally start}}&lt;br /&gt;
&lt;br /&gt;
== MySQL Problems With Newer Versions of Greyhole ==&lt;br /&gt;
&lt;br /&gt;
Since Greyhole moved from SQL Lite to MySQL, you may hit a problem where Greyhole and the mount_shares_locally script both attempt to start before MySQL in bootup, leading to the services not starting properly.  If this happens, you can try this to fix it:&lt;br /&gt;
&lt;br /&gt;
{{Code|ls /etc/rc.3/}}&lt;br /&gt;
* Look for any entries marked S-1.  If there are any, they need to be removed.  Run the following as root:&lt;br /&gt;
&lt;br /&gt;
{{Code|rm S-1*}}&lt;/div&gt;</summary>
		<author><name>TheGeebs</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Mount_Shares_Locally&amp;diff=46501</id>
		<title>Mount Shares Locally</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Mount_Shares_Locally&amp;diff=46501"/>
		<updated>2011-09-10T17:01:15Z</updated>

		<summary type="html">&lt;p&gt;TheGeebs: Need to be root to execute commands&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Mounting your Samba shares locally is useful when you are using Greyhole, and want to write or in any way work with those files locally. Greyhole data should only be accessed through shares, so mounting those shares locally is an easy way to work with Greyhole data safely.&lt;br /&gt;
&lt;br /&gt;
* As ''root'' Install the mount_shares_locally initd script:&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; overflow: scroll&amp;quot;&amp;gt;&lt;br /&gt;
 curl -o /etc/init.d/mount_shares_locally http://dl.dropbox.com/u/3022105/Amahi/mount_shares_locally&lt;br /&gt;
 chmod +x /etc/init.d/mount_shares_locally&lt;br /&gt;
 chkconfig --add mount_shares_locally&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Edit /etc/init.d/mount_shares_locally (as user root) in a text editor, and replace ''your_username'' (on line 12) with your username.&lt;br /&gt;
&lt;br /&gt;
* Create the ''/home/your_username/.smb_credentials'' file. This is a simple text file (use your favorite text editor).&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;
 username=your_username&lt;br /&gt;
 password=your_password&lt;br /&gt;
 domain=HOME&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
'''NOTE:'''  your_username and your_password in the .smb_credentials file needs to be the original username and password you created when you installed fedora.&lt;br /&gt;
&lt;br /&gt;
To test your new mounts, you can execute '''service mount_shares_locally start'''&amp;lt;br/&amp;gt;&lt;br /&gt;
You will find the mounted shares in ''/mnt/samba/*''&amp;lt;br/&amp;gt;&lt;br /&gt;
'''service mount_shares_locally stop''' will unmount the local shares.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: if you used /etc/rc.local and /etc/fstab to mount shares locally in the past, you can remove what you added in those files now. The above initd script replaces all this.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Unable to mount localy after upgrading to Amahi6 ==&lt;br /&gt;
If you try to run mount using this script after you upgraded to Amahi6 you might get greeted by this type of error.&lt;br /&gt;
&lt;br /&gt;
 [root@localhost ~]# /etc/init.d/mount_shares_locally start&lt;br /&gt;
 Mounting Samba shares locally: /etc/init.d/mount_shares_locally: line 27: /sbin/mount.cifs: No such file or directory&lt;br /&gt;
 /etc/init.d/mount_shares_locally: line 27: /sbin/mount.cifs: No such file or directory&lt;br /&gt;
 /etc/init.d/mount_shares_locally: line 27: /sbin/mount.cifs: No such file or directory&lt;br /&gt;
 /etc/init.d/mount_shares_locally: line 27: /sbin/mount.cifs: No such file or directory&lt;br /&gt;
 /etc/init.d/mount_shares_locally: line 27: /sbin/mount.cifs: No such file or directory&lt;br /&gt;
 /etc/init.d/mount_shares_locally: line 27: /sbin/mount.cifs: No such file or directory&lt;br /&gt;
 /etc/init.d/mount_shares_locally: line 27: /sbin/mount.cifs: No such file or directory&lt;br /&gt;
                                                           [  OK  ]&lt;br /&gt;
&lt;br /&gt;
It's easily fixed by installing the missing dependency.&lt;br /&gt;
&lt;br /&gt;
{{Code|yum install cifs-utils}}&lt;br /&gt;
&lt;br /&gt;
Now it should work fine to run&lt;br /&gt;
&lt;br /&gt;
{{Code|/etc/init.d/mount_shares_locally start}}&lt;br /&gt;
&lt;br /&gt;
== MySQL Problems With Newer Versions of Greyhole ==&lt;br /&gt;
&lt;br /&gt;
Since Greyhole moved from SQL Lite to MySQL, you may hit a problem where Greyhole and the mount_shares_locally script both attempt to start before MySQL in bootup, leading to the services not starting properly.  If this happens, you can try this to fix it:&lt;br /&gt;
&lt;br /&gt;
{{Code|ls /etc/rc.3/}}&lt;br /&gt;
* Look for any entries marked S-1.  If there are any, they need to be removed.  Run the following as root:&lt;br /&gt;
&lt;br /&gt;
{{Code|rm S-1*}}&lt;/div&gt;</summary>
		<author><name>TheGeebs</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Sudo&amp;diff=46495</id>
		<title>Sudo</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Sudo&amp;diff=46495"/>
		<updated>2011-09-10T16:46:50Z</updated>

		<summary type="html">&lt;p&gt;TheGeebs: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Enable '''sudo''' for a user=&lt;br /&gt;
If you receive the message: &amp;quot;'HDA_username' is not in the sudoers file.  This incident will be reported.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==Command Line Edit==&lt;br /&gt;
* Login as root {{Code|Code= su}}&lt;br /&gt;
* Copy and Paste:  {{Code|Code= echo 'loginname ALL=(ALL) ALL' &amp;gt;&amp;gt; /etc/sudoers }}&lt;br /&gt;
* Where ''loginname'' is your user account.&lt;br /&gt;
Use 'ALL=(ALL) NOPASSWD:ALL' if you don't want to be prompted a password.&lt;br /&gt;
If you are prompted for a password with 'sudo' it is the user password, not root.&lt;br /&gt;
&lt;br /&gt;
==Manual Edit of Sudoers File==&lt;br /&gt;
* Login as root&lt;br /&gt;
* Run: visudo&lt;br /&gt;
* Find a line that says&lt;br /&gt;
           root    ALL=(ALL)       ALL&lt;br /&gt;
* Add another line after that by typing 'o' an entering&lt;br /&gt;
&lt;br /&gt;
           username    ALL=(ALL)       ALL&lt;br /&gt;
* But use your user name instead of username above&lt;/div&gt;</summary>
		<author><name>TheGeebs</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Adding_a_second_hard_drive_to_your_HDA&amp;diff=46423</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=46423"/>
		<updated>2011-09-07T01:53:26Z</updated>

		<summary type="html">&lt;p&gt;TheGeebs: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{MessageBox|&lt;br /&gt;
backgroundcolor	= red|&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 an how-to on how to add 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;
&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;
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;
==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;
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>TheGeebs</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Adding_a_second_hard_drive_to_your_HDA&amp;diff=46417</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=46417"/>
		<updated>2011-09-07T01:51:32Z</updated>

		<summary type="html">&lt;p&gt;TheGeebs: Added reminder that hda-diskmount doesn't support GUID and added a link to GUID mounting wiki page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{MessageBox|&lt;br /&gt;
backgroundcolor	= red|&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 an how-to on how to add 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;
&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;
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== .&amp;lt;br/&amp;gt;&lt;br /&gt;
Here is a work around for drives with partitions over 2.1TB like the new 3TB drives. .&amp;lt;br/&amp;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;
==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;
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>TheGeebs</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Adding_a_second_hard_drive_to_your_HDA&amp;diff=46411</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=46411"/>
		<updated>2011-09-06T16:29:49Z</updated>

		<summary type="html">&lt;p&gt;TheGeebs: Removed an extra space before ls&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{MessageBox|&lt;br /&gt;
backgroundcolor	= red|&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 an how-to on how to add 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;
&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;
=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;
=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;
==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;
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>TheGeebs</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Greyhole&amp;diff=46399</id>
		<title>Greyhole</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Greyhole&amp;diff=46399"/>
		<updated>2011-09-05T22:34:29Z</updated>

		<summary type="html">&lt;p&gt;TheGeebs: Fixed Emptying Attic link&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:apps]]&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .8em 1em; background-color: #E6F2FF; margin: 0px 1em;&amp;quot;&amp;gt;&lt;br /&gt;
'''NEW:''' [http://code.google.com/p/greyhole/wiki/MigrateFromWHS Widows Home Server Drive Extender Migration Guide]&lt;br /&gt;
&lt;br /&gt;
'''NEW:''' [[Greyhole troubleshooting]] guide&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== What is Greyhole ==&lt;br /&gt;
&lt;br /&gt;
[http://greyhole.pommepause.com/ Greyhole] is Amahi's [[Storage pooling]] technology. Storage Pooling combines the space of multiple disk drives and makes them look as if they were all part of a single pool of disk space.&lt;br /&gt;
Specifically, Greyhole:&lt;br /&gt;
* Combines the space from multiple drives into a single volume&lt;br /&gt;
* Distributes files across all drives in the pool&lt;br /&gt;
* Creates multiple copies of files in admin-specified shares&lt;br /&gt;
&lt;br /&gt;
This feature is installed by default, but requires a few simple steps to begin utilizing the features.&lt;br /&gt;
&lt;br /&gt;
You can add additional drives to your hda and prepare them for use in Greyhole by following [[Adding a second hard drive to your HDA|this tutorial]].&lt;br /&gt;
&lt;br /&gt;
To add a drive to your Greyhole storage pool. Open your HDA dashboard and navigate to the Shares tab. Then click on the Storage Pool sub-category. You will see a page similar to the one below.&lt;br /&gt;
&lt;br /&gt;
== Important Warnings ==&lt;br /&gt;
&amp;lt;div style=&amp;quot;color:darkred&amp;quot;&amp;gt;You should '''never''' change or delete files in the shared directories (''/var/hda/files/*'' by default) directly on the HDA, using the terminal, or the Gnome file browser, for the shares for which you checked the ''Uses pool'' option in the Amahi dashboard. If you want to work with files on Greyhole shares on the HDA, you should [[Mount Shares Locally]].&amp;lt;br/&amp;gt;&lt;br /&gt;
You should be safe reading existing files directly, or adding new files directly, as long as don't care that your new files will only be moved into the storage pool during the next check, which runs automatically at midnight (or manually using ''greyhole --fsck''). Until then, your new files will be stored in your shared directories (normally ''/var/hda/files/share_name/'').&lt;br /&gt;
&lt;br /&gt;
Also, touching anything inside the '''gh''' directories that Greyhole creates at the root of your partitions is a recipe for disaster.&lt;br /&gt;
&lt;br /&gt;
We [[Greyhole not on root | strongly discourage you from using the root partition in a drive pool]].&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== First things first ==&lt;br /&gt;
&lt;br /&gt;
You need to go in the Settings tab, and enable '''Advanced Settings'''.&amp;lt;br/&amp;gt;&lt;br /&gt;
Without Advanced Settings enabled, you won't see the following page and options.&lt;br /&gt;
&lt;br /&gt;
== For Storage Pool (Partitions) ==&lt;br /&gt;
&lt;br /&gt;
[[File:Storage_Pool_1.png|600px|thumb|left]]&lt;br /&gt;
&lt;br /&gt;
Select the drives you want available for your storage pool.&lt;br /&gt;
&lt;br /&gt;
== Greyhole options ==&lt;br /&gt;
&lt;br /&gt;
The next step is to select the share you want to replicate across the pool.&lt;br /&gt;
&lt;br /&gt;
From the Shares tab, select the Shares sub-catagory. We chose the Pictures share for this tutorial.&lt;br /&gt;
&lt;br /&gt;
[[File:Greyhole_Options_1.png|600px|thumb|left]]&lt;br /&gt;
&lt;br /&gt;
Check the option for &amp;quot;Uses pool&amp;quot; and choose the number of drives to replicate this share. In this instance we have chosen to use all drives available to the greyhole pool.&lt;br /&gt;
&lt;br /&gt;
Note: Greyhole is not a backup solution. If a file is removed, all copies are removed.&lt;br /&gt;
&lt;br /&gt;
== Greyhole advanced options ==&lt;br /&gt;
&lt;br /&gt;
You can further configure Greyhole by manually editing the following file:&amp;lt;br/&amp;gt;&lt;br /&gt;
'''/var/hda/platform/html/config/greyhole.yml'''&lt;br /&gt;
&lt;br /&gt;
To see what options are available, and what they do, refer to the [http://greyhole.googlecode.com/svn/trunk/greyhole.example.conf sample greyhole.conf] provided with Greyhole.&lt;br /&gt;
&lt;br /&gt;
greyhole.yml is in in YAML format. Most of it should be easy enough to modify. The only exception would be the sticky_files (and optional sticky_into) options.&amp;lt;br/&amp;gt;&lt;br /&gt;
Here's an example of how those should appear:&lt;br /&gt;
&lt;br /&gt;
To specify the following to Greyhole in greyhole.conf:&lt;br /&gt;
&lt;br /&gt;
{{Text|Text=sticky_files &amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt; Music/&lt;br /&gt;
 sticky_files &amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt; Videos/Movies/&lt;br /&gt;
     stick_into &amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt; /mnt/hdd1/gh&lt;br /&gt;
     stick_into &amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt; /mnt/hdd5/gh&lt;br /&gt;
 sticky_files &amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt; Backups/CrashPlan/&lt;br /&gt;
     stick_into &amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt; /mnt/hdd0/gh}}&lt;br /&gt;
&lt;br /&gt;
one should specify this in the greyhole.yml file, where '''precise indentation matters''':&lt;br /&gt;
&lt;br /&gt;
{{Text|Text=sticky_files: &lt;br /&gt;
 - - Music/&lt;br /&gt;
 - - Videos/Movies/&lt;br /&gt;
   - - /mnt/hdd1/gh&lt;br /&gt;
     - /mnt/hdd5/gh&lt;br /&gt;
 - - Backups/CrashPlan/&lt;br /&gt;
   - - /mnt/hdd0/gh}}&lt;br /&gt;
&lt;br /&gt;
For your changes to be effective, you'll need to force Amahi to regenerate the greyhole.conf file. You can do so by editing a share, clicking it's path, and just clicking the Save button without actually changing the path.&lt;br /&gt;
&lt;br /&gt;
== Copying your data into Greyhole shares the first time ==&lt;br /&gt;
&lt;br /&gt;
When you start using Greyhole, you might want to copy or move all your exiting files into your new shares that use the storage pool.&lt;br /&gt;
&lt;br /&gt;
Note: This is not necessary if your files are already in Amahi shares. If they are there, and you enable the ''Uses pool'' option in the Amahi dashboard, the files will start getting moved around into the drives in your storage pool during the night (starting at midnight), when the nightly storage pool check starts.&amp;lt;br/&amp;gt;&lt;br /&gt;
The instructions below are for users who have more data to copy into the Greyhole shares than their currently free space in the /var/hda/files/ folder.&lt;br /&gt;
&lt;br /&gt;
One way to do that is to mount the shares that use the Greyhole storage pool, either on the HDA itself, or on a client computer on your local network, and copy your data from their existing location into the mounted shares.&lt;br /&gt;
This can be time consuming, but it is the safest way to use Greyhole.&lt;br /&gt;
&lt;br /&gt;
Another way to move your files from their current location into the storage pool is to share their current location using an Amahi share that ''Uses pool'', then let Greyhole nightly check move the files from there into the pool.&lt;br /&gt;
&lt;br /&gt;
Here's a more detailed walkthrough for this method:&lt;br /&gt;
&lt;br /&gt;
# Setup the Greyhole Storage Pool in the Amahi dashboard, Shares &amp;gt; Storage Pool page.&lt;br /&gt;
# Go in the Shares &amp;gt; Shares page. In there, make sure you have an existing share for each share you have data for. Create new ones if you need, remove the ones you don't need.&lt;br /&gt;
# Edit the ''path'' of each of those shares, and enter the current location of your existing data. For example, the Movies share could have a path = ''/media/External Drive/Movies''&lt;br /&gt;
# Enable the ''Uses pool'' option for each of your shares, and select the number of extra copies you'd like, if any.&lt;br /&gt;
# Now, you either need to wait for Greyhole'S nightly check to start, or you can start it manually from a terminal, as root, using this command: greyhole --fsck&lt;br /&gt;
# Monitor /var/log/greyhole.log to see when the ''fsck'' operation is done.&lt;br /&gt;
# Once ''fsck'' is done, your data has now been moved into the Greyhole storage pool (in the drives you selected in Shares &amp;gt; Storage Pool). All that should be left in the previous location of your data (''/media/External Drive/Movies'' from the previous example) should be symbolic links pointing to the new file copies. If the previous location is just empty directories (no symlinks), do not panic. This is normal if your previous location is an NTFS or FAT partition (drive).&lt;br /&gt;
# Move all those directories / symlinks from there into the correct folders in /var/hda/files/share_name&lt;br /&gt;
# Back in the Amahi dashboard, edit the path of the shares once again, and put back ''/var/hda/files/share_name'' (i.e. the folders where you moved the symbolic links).&lt;br /&gt;
# If you used an NTFS or FAT partition for the previous location, you'll need another fsck to create the symlinks where they should be. Either wait for midnight, or launch it manually, from a command line, as root: ''greyhole --fsck''&lt;br /&gt;
&lt;br /&gt;
You're done. All your existing data is now stored in the various drives included in your storage pool, and are accessible via the Samba shares you have defined in the Amahi dashboard.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Adding a new drive to your HDA and storage pool ==&lt;br /&gt;
This wiki page discusses how to add a new drive to your HDA and to your greyhole storage pool&lt;br /&gt;
[[Adding_a_second_hard_drive_to_your_HDA]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Drive Mounted as /media ==&lt;br /&gt;
Including any drive mounted as /media/Something in your storage pool is usually a bad idea.&amp;lt;br/&amp;gt;&lt;br /&gt;
Those mounts are created by the ''gnome-automounter'', which requires you to be logged in into X (Gnome) to become available.&amp;lt;br/&amp;gt;&lt;br /&gt;
This will create issues with Greyhole, which expects drives to always be available, and will take action when some of them are missing.&lt;br /&gt;
&lt;br /&gt;
Follow this guide to [[Adding a second hard drive to your HDA|permanently mount your drives]], before you include them in your storage pool.&lt;br /&gt;
&lt;br /&gt;
== Monitoring Greyhole ==&lt;br /&gt;
Sometimes you might want to monitor what Greyhole is doing, for example when writing data to your greyhole shares for the first time. Here are a few commands you can type in a terminal to follow along.&lt;br /&gt;
&lt;br /&gt;
'''Scrolling view of total Greyhole operations queue:'''&lt;br /&gt;
{{Code|while [ 1 &amp;lt;nowiki&amp;gt;==&amp;lt;/nowiki&amp;gt; 1 ]; do greyhole --view-queue &amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt; grep Total; sleep 60; done}}&lt;br /&gt;
&lt;br /&gt;
'''Scrolling log of what files Greyhole is working on right now:'''&lt;br /&gt;
{{Code|tail -f /var/log/greyhole.log}}&lt;br /&gt;
&lt;br /&gt;
== Convert Greyhole from SQLite to MySQL ==&lt;br /&gt;
Greyhole is already using MySQL in Amahi 6.0&lt;br /&gt;
&lt;br /&gt;
Greyhole was previously using SQLite as the default database for queueing up tasks on Amahi. This was unqie to Amahi as Greyhole was originally designed to use MySQL for this task.&lt;br /&gt;
&lt;br /&gt;
There are some major performance benefits to using MySQL over SQLite when writing large amounts of files. Switching can be especially useful when moving data to greyhole shares for the first time. For now there is a script you can run if you want to switch over. This script has been tested to be safe while greyhole is working but should be used with discresion.&lt;br /&gt;
&lt;br /&gt;
''To Convert to MySQL, run as root:''&lt;br /&gt;
&lt;br /&gt;
{{Code|/usr/share/greyhole/db_migration-sqlite2mysql.sh}}&lt;br /&gt;
&lt;br /&gt;
To see what DB engine is Greyhole using, do this:&lt;br /&gt;
&lt;br /&gt;
{{Code|grep db_engine /etc/greyhole.conf}}&lt;br /&gt;
&lt;br /&gt;
== Disable Greyhole ==&lt;br /&gt;
For those who do not use Greyhole, you can disable it.  This is based on the fact you never have used it by enabling 'Uses pool' on any share.  Recommend using extreme caution as this could have unpredictable results.&lt;br /&gt;
&lt;br /&gt;
Perform the following steps as user '''root''':&lt;br /&gt;
&lt;br /&gt;
{{Code|chkconfig greyhole off&lt;br /&gt;
rm /etc/monit.d/greyhole.conf&lt;br /&gt;
service monit restart&lt;br /&gt;
service greyhole stop}}&lt;br /&gt;
&lt;br /&gt;
'''DO NOT''' attempt to remove the Greyhole package as it is a dependency of the HDA software.  Doing so will break your HDA.&lt;br /&gt;
&lt;br /&gt;
= Testing and Reliability =&lt;br /&gt;
&lt;br /&gt;
Check out the [[Greyhole grinder]] to help make Greyhole rock solid.&lt;br /&gt;
&lt;br /&gt;
= Reconnect the Greyhole storage pool after re-install of Fedora / Amahi =&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--After re-install, recreate all your shares exacty as they were.&amp;lt;br&amp;gt;&lt;br /&gt;
Add the shares to the storage pool.&amp;lt;br&amp;gt;&lt;br /&gt;
As root, run greyhole --fsck.&amp;lt;br&amp;gt;&lt;br /&gt;
This  will recreate the symlinks in the landing zone /var/hda/files.&amp;lt;br&amp;gt;--&amp;gt;&lt;br /&gt;
* Disconnect all data drives before you reinstall. This will prevent you from destroying them by mistake during the Fedora/Amahi install!&lt;br /&gt;
* Install Amahi per the regular instructions.&lt;br /&gt;
* Connect the data drives, and use hda-diskmount to remount all of them.&lt;br /&gt;
Note that if you can, it would be faster if you can re-mount the drives in the same paths they used to have.&lt;br /&gt;
&lt;br /&gt;
'''Example:''' If you have one 1TB and one 2TB, and the 1TB was mounted as /var/hda/files/drives/drive1, and the 2TB was mounted as /var/hda/files/drives/drive2, it would be better to re-mount that like that on your new HDA. If you mount them otherwise, it will still work, but Greyhole will work a while to re-build the links in your share before they can be usable.&lt;br /&gt;
* Select the drives in the Amahi Dashboard: Setup &amp;gt; Shares &amp;gt; Storage Pool&lt;br /&gt;
* Re-create your shares in the Amahi Dashboard: Setup &amp;gt; Shares.&lt;br /&gt;
Make sure to select 'Use Pool', and select the correct number of extra copies.&lt;br /&gt;
If you don't remember all the shares you had, just check inside the 'gh' folder found at the root of your drives to get a reminder!&lt;br /&gt;
&lt;br /&gt;
'''Example:'''&lt;br /&gt;
{{Code|ls -1 /var/hda/files/drives/*/gh/ &amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt; grep -v : &amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt; sort -u}}&lt;br /&gt;
&lt;br /&gt;
* Launch a fsck to have Greyhole rebuild your shares.&lt;br /&gt;
{{Code|greyhole --fsck}}&lt;br /&gt;
&lt;br /&gt;
Until this completes, some of your files will be missing from your shares.&lt;br /&gt;
&lt;br /&gt;
= Greyhole Troubleshooting =&lt;br /&gt;
&lt;br /&gt;
Page: [[Greyhole troubleshooting]]&lt;br /&gt;
&lt;br /&gt;
= Landing Zone Considerations =&lt;br /&gt;
&lt;br /&gt;
The landing zone or LZ is the area where files arrive first before being distributed to their final destination. See details in the [[Greyhole landing zone]] page.&lt;br /&gt;
&lt;br /&gt;
= Manually updating Greyhole for Amahi =&lt;br /&gt;
Page: [[Greyhole updating]]&lt;br /&gt;
&lt;br /&gt;
= Emptying Greyhole Attic =&lt;br /&gt;
{{Code|greyhole --empty-attic}}&lt;br /&gt;
About the attic: The attic is used like a Recycle Bin, or Trash.&lt;br /&gt;
That means you'll need to manually empty it once in a while.&lt;br /&gt;
To do so, use the --empty-attic parameter (see above).&lt;br /&gt;
Another option is to create a 'Greyhole Attic' Samba share.&lt;br /&gt;
More details about that here: https://github.com/gboudreau/Greyhole/wiki/AboutTrash&lt;br /&gt;
&lt;br /&gt;
= Reference =&lt;br /&gt;
Good [http://revxatlarge.blogspot.com/2011/04/restoring-deleted-files-in-greyhole-and.html article] on Greyhole with terms explained.&lt;/div&gt;</summary>
		<author><name>TheGeebs</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Greyhole&amp;diff=46393</id>
		<title>Greyhole</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Greyhole&amp;diff=46393"/>
		<updated>2011-09-05T22:32:03Z</updated>

		<summary type="html">&lt;p&gt;TheGeebs: Add info on Emptying Attic&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:apps]]&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .8em 1em; background-color: #E6F2FF; margin: 0px 1em;&amp;quot;&amp;gt;&lt;br /&gt;
'''NEW:''' [http://code.google.com/p/greyhole/wiki/MigrateFromWHS Widows Home Server Drive Extender Migration Guide]&lt;br /&gt;
&lt;br /&gt;
'''NEW:''' [[Greyhole troubleshooting]] guide&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== What is Greyhole ==&lt;br /&gt;
&lt;br /&gt;
[http://greyhole.pommepause.com/ Greyhole] is Amahi's [[Storage pooling]] technology. Storage Pooling combines the space of multiple disk drives and makes them look as if they were all part of a single pool of disk space.&lt;br /&gt;
Specifically, Greyhole:&lt;br /&gt;
* Combines the space from multiple drives into a single volume&lt;br /&gt;
* Distributes files across all drives in the pool&lt;br /&gt;
* Creates multiple copies of files in admin-specified shares&lt;br /&gt;
&lt;br /&gt;
This feature is installed by default, but requires a few simple steps to begin utilizing the features.&lt;br /&gt;
&lt;br /&gt;
You can add additional drives to your hda and prepare them for use in Greyhole by following [[Adding a second hard drive to your HDA|this tutorial]].&lt;br /&gt;
&lt;br /&gt;
To add a drive to your Greyhole storage pool. Open your HDA dashboard and navigate to the Shares tab. Then click on the Storage Pool sub-category. You will see a page similar to the one below.&lt;br /&gt;
&lt;br /&gt;
== Important Warnings ==&lt;br /&gt;
&amp;lt;div style=&amp;quot;color:darkred&amp;quot;&amp;gt;You should '''never''' change or delete files in the shared directories (''/var/hda/files/*'' by default) directly on the HDA, using the terminal, or the Gnome file browser, for the shares for which you checked the ''Uses pool'' option in the Amahi dashboard. If you want to work with files on Greyhole shares on the HDA, you should [[Mount Shares Locally]].&amp;lt;br/&amp;gt;&lt;br /&gt;
You should be safe reading existing files directly, or adding new files directly, as long as don't care that your new files will only be moved into the storage pool during the next check, which runs automatically at midnight (or manually using ''greyhole --fsck''). Until then, your new files will be stored in your shared directories (normally ''/var/hda/files/share_name/'').&lt;br /&gt;
&lt;br /&gt;
Also, touching anything inside the '''gh''' directories that Greyhole creates at the root of your partitions is a recipe for disaster.&lt;br /&gt;
&lt;br /&gt;
We [[Greyhole not on root | strongly discourage you from using the root partition in a drive pool]].&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== First things first ==&lt;br /&gt;
&lt;br /&gt;
You need to go in the Settings tab, and enable '''Advanced Settings'''.&amp;lt;br/&amp;gt;&lt;br /&gt;
Without Advanced Settings enabled, you won't see the following page and options.&lt;br /&gt;
&lt;br /&gt;
== For Storage Pool (Partitions) ==&lt;br /&gt;
&lt;br /&gt;
[[File:Storage_Pool_1.png|600px|thumb|left]]&lt;br /&gt;
&lt;br /&gt;
Select the drives you want available for your storage pool.&lt;br /&gt;
&lt;br /&gt;
== Greyhole options ==&lt;br /&gt;
&lt;br /&gt;
The next step is to select the share you want to replicate across the pool.&lt;br /&gt;
&lt;br /&gt;
From the Shares tab, select the Shares sub-catagory. We chose the Pictures share for this tutorial.&lt;br /&gt;
&lt;br /&gt;
[[File:Greyhole_Options_1.png|600px|thumb|left]]&lt;br /&gt;
&lt;br /&gt;
Check the option for &amp;quot;Uses pool&amp;quot; and choose the number of drives to replicate this share. In this instance we have chosen to use all drives available to the greyhole pool.&lt;br /&gt;
&lt;br /&gt;
Note: Greyhole is not a backup solution. If a file is removed, all copies are removed.&lt;br /&gt;
&lt;br /&gt;
== Greyhole advanced options ==&lt;br /&gt;
&lt;br /&gt;
You can further configure Greyhole by manually editing the following file:&amp;lt;br/&amp;gt;&lt;br /&gt;
'''/var/hda/platform/html/config/greyhole.yml'''&lt;br /&gt;
&lt;br /&gt;
To see what options are available, and what they do, refer to the [http://greyhole.googlecode.com/svn/trunk/greyhole.example.conf sample greyhole.conf] provided with Greyhole.&lt;br /&gt;
&lt;br /&gt;
greyhole.yml is in in YAML format. Most of it should be easy enough to modify. The only exception would be the sticky_files (and optional sticky_into) options.&amp;lt;br/&amp;gt;&lt;br /&gt;
Here's an example of how those should appear:&lt;br /&gt;
&lt;br /&gt;
To specify the following to Greyhole in greyhole.conf:&lt;br /&gt;
&lt;br /&gt;
{{Text|Text=sticky_files &amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt; Music/&lt;br /&gt;
 sticky_files &amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt; Videos/Movies/&lt;br /&gt;
     stick_into &amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt; /mnt/hdd1/gh&lt;br /&gt;
     stick_into &amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt; /mnt/hdd5/gh&lt;br /&gt;
 sticky_files &amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt; Backups/CrashPlan/&lt;br /&gt;
     stick_into &amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt; /mnt/hdd0/gh}}&lt;br /&gt;
&lt;br /&gt;
one should specify this in the greyhole.yml file, where '''precise indentation matters''':&lt;br /&gt;
&lt;br /&gt;
{{Text|Text=sticky_files: &lt;br /&gt;
 - - Music/&lt;br /&gt;
 - - Videos/Movies/&lt;br /&gt;
   - - /mnt/hdd1/gh&lt;br /&gt;
     - /mnt/hdd5/gh&lt;br /&gt;
 - - Backups/CrashPlan/&lt;br /&gt;
   - - /mnt/hdd0/gh}}&lt;br /&gt;
&lt;br /&gt;
For your changes to be effective, you'll need to force Amahi to regenerate the greyhole.conf file. You can do so by editing a share, clicking it's path, and just clicking the Save button without actually changing the path.&lt;br /&gt;
&lt;br /&gt;
== Copying your data into Greyhole shares the first time ==&lt;br /&gt;
&lt;br /&gt;
When you start using Greyhole, you might want to copy or move all your exiting files into your new shares that use the storage pool.&lt;br /&gt;
&lt;br /&gt;
Note: This is not necessary if your files are already in Amahi shares. If they are there, and you enable the ''Uses pool'' option in the Amahi dashboard, the files will start getting moved around into the drives in your storage pool during the night (starting at midnight), when the nightly storage pool check starts.&amp;lt;br/&amp;gt;&lt;br /&gt;
The instructions below are for users who have more data to copy into the Greyhole shares than their currently free space in the /var/hda/files/ folder.&lt;br /&gt;
&lt;br /&gt;
One way to do that is to mount the shares that use the Greyhole storage pool, either on the HDA itself, or on a client computer on your local network, and copy your data from their existing location into the mounted shares.&lt;br /&gt;
This can be time consuming, but it is the safest way to use Greyhole.&lt;br /&gt;
&lt;br /&gt;
Another way to move your files from their current location into the storage pool is to share their current location using an Amahi share that ''Uses pool'', then let Greyhole nightly check move the files from there into the pool.&lt;br /&gt;
&lt;br /&gt;
Here's a more detailed walkthrough for this method:&lt;br /&gt;
&lt;br /&gt;
# Setup the Greyhole Storage Pool in the Amahi dashboard, Shares &amp;gt; Storage Pool page.&lt;br /&gt;
# Go in the Shares &amp;gt; Shares page. In there, make sure you have an existing share for each share you have data for. Create new ones if you need, remove the ones you don't need.&lt;br /&gt;
# Edit the ''path'' of each of those shares, and enter the current location of your existing data. For example, the Movies share could have a path = ''/media/External Drive/Movies''&lt;br /&gt;
# Enable the ''Uses pool'' option for each of your shares, and select the number of extra copies you'd like, if any.&lt;br /&gt;
# Now, you either need to wait for Greyhole'S nightly check to start, or you can start it manually from a terminal, as root, using this command: greyhole --fsck&lt;br /&gt;
# Monitor /var/log/greyhole.log to see when the ''fsck'' operation is done.&lt;br /&gt;
# Once ''fsck'' is done, your data has now been moved into the Greyhole storage pool (in the drives you selected in Shares &amp;gt; Storage Pool). All that should be left in the previous location of your data (''/media/External Drive/Movies'' from the previous example) should be symbolic links pointing to the new file copies. If the previous location is just empty directories (no symlinks), do not panic. This is normal if your previous location is an NTFS or FAT partition (drive).&lt;br /&gt;
# Move all those directories / symlinks from there into the correct folders in /var/hda/files/share_name&lt;br /&gt;
# Back in the Amahi dashboard, edit the path of the shares once again, and put back ''/var/hda/files/share_name'' (i.e. the folders where you moved the symbolic links).&lt;br /&gt;
# If you used an NTFS or FAT partition for the previous location, you'll need another fsck to create the symlinks where they should be. Either wait for midnight, or launch it manually, from a command line, as root: ''greyhole --fsck''&lt;br /&gt;
&lt;br /&gt;
You're done. All your existing data is now stored in the various drives included in your storage pool, and are accessible via the Samba shares you have defined in the Amahi dashboard.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Adding a new drive to your HDA and storage pool ==&lt;br /&gt;
This wiki page discusses how to add a new drive to your HDA and to your greyhole storage pool&lt;br /&gt;
[[Adding_a_second_hard_drive_to_your_HDA]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Drive Mounted as /media ==&lt;br /&gt;
Including any drive mounted as /media/Something in your storage pool is usually a bad idea.&amp;lt;br/&amp;gt;&lt;br /&gt;
Those mounts are created by the ''gnome-automounter'', which requires you to be logged in into X (Gnome) to become available.&amp;lt;br/&amp;gt;&lt;br /&gt;
This will create issues with Greyhole, which expects drives to always be available, and will take action when some of them are missing.&lt;br /&gt;
&lt;br /&gt;
Follow this guide to [[Adding a second hard drive to your HDA|permanently mount your drives]], before you include them in your storage pool.&lt;br /&gt;
&lt;br /&gt;
== Monitoring Greyhole ==&lt;br /&gt;
Sometimes you might want to monitor what Greyhole is doing, for example when writing data to your greyhole shares for the first time. Here are a few commands you can type in a terminal to follow along.&lt;br /&gt;
&lt;br /&gt;
'''Scrolling view of total Greyhole operations queue:'''&lt;br /&gt;
{{Code|while [ 1 &amp;lt;nowiki&amp;gt;==&amp;lt;/nowiki&amp;gt; 1 ]; do greyhole --view-queue &amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt; grep Total; sleep 60; done}}&lt;br /&gt;
&lt;br /&gt;
'''Scrolling log of what files Greyhole is working on right now:'''&lt;br /&gt;
{{Code|tail -f /var/log/greyhole.log}}&lt;br /&gt;
&lt;br /&gt;
== Convert Greyhole from SQLite to MySQL ==&lt;br /&gt;
Greyhole is already using MySQL in Amahi 6.0&lt;br /&gt;
&lt;br /&gt;
Greyhole was previously using SQLite as the default database for queueing up tasks on Amahi. This was unqie to Amahi as Greyhole was originally designed to use MySQL for this task.&lt;br /&gt;
&lt;br /&gt;
There are some major performance benefits to using MySQL over SQLite when writing large amounts of files. Switching can be especially useful when moving data to greyhole shares for the first time. For now there is a script you can run if you want to switch over. This script has been tested to be safe while greyhole is working but should be used with discresion.&lt;br /&gt;
&lt;br /&gt;
''To Convert to MySQL, run as root:''&lt;br /&gt;
&lt;br /&gt;
{{Code|/usr/share/greyhole/db_migration-sqlite2mysql.sh}}&lt;br /&gt;
&lt;br /&gt;
To see what DB engine is Greyhole using, do this:&lt;br /&gt;
&lt;br /&gt;
{{Code|grep db_engine /etc/greyhole.conf}}&lt;br /&gt;
&lt;br /&gt;
== Disable Greyhole ==&lt;br /&gt;
For those who do not use Greyhole, you can disable it.  This is based on the fact you never have used it by enabling 'Uses pool' on any share.  Recommend using extreme caution as this could have unpredictable results.&lt;br /&gt;
&lt;br /&gt;
Perform the following steps as user '''root''':&lt;br /&gt;
&lt;br /&gt;
{{Code|chkconfig greyhole off&lt;br /&gt;
rm /etc/monit.d/greyhole.conf&lt;br /&gt;
service monit restart&lt;br /&gt;
service greyhole stop}}&lt;br /&gt;
&lt;br /&gt;
'''DO NOT''' attempt to remove the Greyhole package as it is a dependency of the HDA software.  Doing so will break your HDA.&lt;br /&gt;
&lt;br /&gt;
= Testing and Reliability =&lt;br /&gt;
&lt;br /&gt;
Check out the [[Greyhole grinder]] to help make Greyhole rock solid.&lt;br /&gt;
&lt;br /&gt;
= Reconnect the Greyhole storage pool after re-install of Fedora / Amahi =&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--After re-install, recreate all your shares exacty as they were.&amp;lt;br&amp;gt;&lt;br /&gt;
Add the shares to the storage pool.&amp;lt;br&amp;gt;&lt;br /&gt;
As root, run greyhole --fsck.&amp;lt;br&amp;gt;&lt;br /&gt;
This  will recreate the symlinks in the landing zone /var/hda/files.&amp;lt;br&amp;gt;--&amp;gt;&lt;br /&gt;
* Disconnect all data drives before you reinstall. This will prevent you from destroying them by mistake during the Fedora/Amahi install!&lt;br /&gt;
* Install Amahi per the regular instructions.&lt;br /&gt;
* Connect the data drives, and use hda-diskmount to remount all of them.&lt;br /&gt;
Note that if you can, it would be faster if you can re-mount the drives in the same paths they used to have.&lt;br /&gt;
&lt;br /&gt;
'''Example:''' If you have one 1TB and one 2TB, and the 1TB was mounted as /var/hda/files/drives/drive1, and the 2TB was mounted as /var/hda/files/drives/drive2, it would be better to re-mount that like that on your new HDA. If you mount them otherwise, it will still work, but Greyhole will work a while to re-build the links in your share before they can be usable.&lt;br /&gt;
* Select the drives in the Amahi Dashboard: Setup &amp;gt; Shares &amp;gt; Storage Pool&lt;br /&gt;
* Re-create your shares in the Amahi Dashboard: Setup &amp;gt; Shares.&lt;br /&gt;
Make sure to select 'Use Pool', and select the correct number of extra copies.&lt;br /&gt;
If you don't remember all the shares you had, just check inside the 'gh' folder found at the root of your drives to get a reminder!&lt;br /&gt;
&lt;br /&gt;
'''Example:'''&lt;br /&gt;
{{Code|ls -1 /var/hda/files/drives/*/gh/ &amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt; grep -v : &amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt; sort -u}}&lt;br /&gt;
&lt;br /&gt;
* Launch a fsck to have Greyhole rebuild your shares.&lt;br /&gt;
{{Code|greyhole --fsck}}&lt;br /&gt;
&lt;br /&gt;
Until this completes, some of your files will be missing from your shares.&lt;br /&gt;
&lt;br /&gt;
= Greyhole Troubleshooting =&lt;br /&gt;
&lt;br /&gt;
Page: [[Greyhole troubleshooting]]&lt;br /&gt;
&lt;br /&gt;
= Landing Zone Considerations =&lt;br /&gt;
&lt;br /&gt;
The landing zone or LZ is the area where files arrive first before being distributed to their final destination. See details in the [[Greyhole landing zone]] page.&lt;br /&gt;
&lt;br /&gt;
= Manually updating Greyhole for Amahi =&lt;br /&gt;
Page: [[Greyhole updating]]&lt;br /&gt;
&lt;br /&gt;
= Emptying Greyhole Attic =&lt;br /&gt;
{{Code|greyhole --empty-attic}}&lt;br /&gt;
About the attic: The attic is used like a Recycle Bin, or Trash.&lt;br /&gt;
That means you'll need to manually empty it once in a while.&lt;br /&gt;
To do so, use the --empty-attic parameter (see above).&lt;br /&gt;
Another option is to create a 'Greyhole Attic' Samba share.&lt;br /&gt;
More details about that here: http://greyhole.pommepause.com/doc/attic&lt;br /&gt;
&lt;br /&gt;
= Reference =&lt;br /&gt;
Good [http://revxatlarge.blogspot.com/2011/04/restoring-deleted-files-in-greyhole-and.html article] on Greyhole with terms explained.&lt;/div&gt;</summary>
		<author><name>TheGeebs</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Greyhole&amp;diff=46387</id>
		<title>Greyhole</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Greyhole&amp;diff=46387"/>
		<updated>2011-09-05T22:14:15Z</updated>

		<summary type="html">&lt;p&gt;TheGeebs: Greyhole is now using MySQL, updated to reflect this&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:apps]]&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .8em 1em; background-color: #E6F2FF; margin: 0px 1em;&amp;quot;&amp;gt;&lt;br /&gt;
'''NEW:''' [http://code.google.com/p/greyhole/wiki/MigrateFromWHS Widows Home Server Drive Extender Migration Guide]&lt;br /&gt;
&lt;br /&gt;
'''NEW:''' [[Greyhole troubleshooting]] guide&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== What is Greyhole ==&lt;br /&gt;
&lt;br /&gt;
[http://greyhole.pommepause.com/ Greyhole] is Amahi's [[Storage pooling]] technology. Storage Pooling combines the space of multiple disk drives and makes them look as if they were all part of a single pool of disk space.&lt;br /&gt;
Specifically, Greyhole:&lt;br /&gt;
* Combines the space from multiple drives into a single volume&lt;br /&gt;
* Distributes files across all drives in the pool&lt;br /&gt;
* Creates multiple copies of files in admin-specified shares&lt;br /&gt;
&lt;br /&gt;
This feature is installed by default, but requires a few simple steps to begin utilizing the features.&lt;br /&gt;
&lt;br /&gt;
You can add additional drives to your hda and prepare them for use in Greyhole by following [[Adding a second hard drive to your HDA|this tutorial]].&lt;br /&gt;
&lt;br /&gt;
To add a drive to your Greyhole storage pool. Open your HDA dashboard and navigate to the Shares tab. Then click on the Storage Pool sub-category. You will see a page similar to the one below.&lt;br /&gt;
&lt;br /&gt;
== Important Warnings ==&lt;br /&gt;
&amp;lt;div style=&amp;quot;color:darkred&amp;quot;&amp;gt;You should '''never''' change or delete files in the shared directories (''/var/hda/files/*'' by default) directly on the HDA, using the terminal, or the Gnome file browser, for the shares for which you checked the ''Uses pool'' option in the Amahi dashboard. If you want to work with files on Greyhole shares on the HDA, you should [[Mount Shares Locally]].&amp;lt;br/&amp;gt;&lt;br /&gt;
You should be safe reading existing files directly, or adding new files directly, as long as don't care that your new files will only be moved into the storage pool during the next check, which runs automatically at midnight (or manually using ''greyhole --fsck''). Until then, your new files will be stored in your shared directories (normally ''/var/hda/files/share_name/'').&lt;br /&gt;
&lt;br /&gt;
Also, touching anything inside the '''gh''' directories that Greyhole creates at the root of your partitions is a recipe for disaster.&lt;br /&gt;
&lt;br /&gt;
We [[Greyhole not on root | strongly discourage you from using the root partition in a drive pool]].&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== First things first ==&lt;br /&gt;
&lt;br /&gt;
You need to go in the Settings tab, and enable '''Advanced Settings'''.&amp;lt;br/&amp;gt;&lt;br /&gt;
Without Advanced Settings enabled, you won't see the following page and options.&lt;br /&gt;
&lt;br /&gt;
== For Storage Pool (Partitions) ==&lt;br /&gt;
&lt;br /&gt;
[[File:Storage_Pool_1.png|600px|thumb|left]]&lt;br /&gt;
&lt;br /&gt;
Select the drives you want available for your storage pool.&lt;br /&gt;
&lt;br /&gt;
== Greyhole options ==&lt;br /&gt;
&lt;br /&gt;
The next step is to select the share you want to replicate across the pool.&lt;br /&gt;
&lt;br /&gt;
From the Shares tab, select the Shares sub-catagory. We chose the Pictures share for this tutorial.&lt;br /&gt;
&lt;br /&gt;
[[File:Greyhole_Options_1.png|600px|thumb|left]]&lt;br /&gt;
&lt;br /&gt;
Check the option for &amp;quot;Uses pool&amp;quot; and choose the number of drives to replicate this share. In this instance we have chosen to use all drives available to the greyhole pool.&lt;br /&gt;
&lt;br /&gt;
Note: Greyhole is not a backup solution. If a file is removed, all copies are removed.&lt;br /&gt;
&lt;br /&gt;
== Greyhole advanced options ==&lt;br /&gt;
&lt;br /&gt;
You can further configure Greyhole by manually editing the following file:&amp;lt;br/&amp;gt;&lt;br /&gt;
'''/var/hda/platform/html/config/greyhole.yml'''&lt;br /&gt;
&lt;br /&gt;
To see what options are available, and what they do, refer to the [http://greyhole.googlecode.com/svn/trunk/greyhole.example.conf sample greyhole.conf] provided with Greyhole.&lt;br /&gt;
&lt;br /&gt;
greyhole.yml is in in YAML format. Most of it should be easy enough to modify. The only exception would be the sticky_files (and optional sticky_into) options.&amp;lt;br/&amp;gt;&lt;br /&gt;
Here's an example of how those should appear:&lt;br /&gt;
&lt;br /&gt;
To specify the following to Greyhole in greyhole.conf:&lt;br /&gt;
&lt;br /&gt;
{{Text|Text=sticky_files &amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt; Music/&lt;br /&gt;
 sticky_files &amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt; Videos/Movies/&lt;br /&gt;
     stick_into &amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt; /mnt/hdd1/gh&lt;br /&gt;
     stick_into &amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt; /mnt/hdd5/gh&lt;br /&gt;
 sticky_files &amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt; Backups/CrashPlan/&lt;br /&gt;
     stick_into &amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt; /mnt/hdd0/gh}}&lt;br /&gt;
&lt;br /&gt;
one should specify this in the greyhole.yml file, where '''precise indentation matters''':&lt;br /&gt;
&lt;br /&gt;
{{Text|Text=sticky_files: &lt;br /&gt;
 - - Music/&lt;br /&gt;
 - - Videos/Movies/&lt;br /&gt;
   - - /mnt/hdd1/gh&lt;br /&gt;
     - /mnt/hdd5/gh&lt;br /&gt;
 - - Backups/CrashPlan/&lt;br /&gt;
   - - /mnt/hdd0/gh}}&lt;br /&gt;
&lt;br /&gt;
For your changes to be effective, you'll need to force Amahi to regenerate the greyhole.conf file. You can do so by editing a share, clicking it's path, and just clicking the Save button without actually changing the path.&lt;br /&gt;
&lt;br /&gt;
== Copying your data into Greyhole shares the first time ==&lt;br /&gt;
&lt;br /&gt;
When you start using Greyhole, you might want to copy or move all your exiting files into your new shares that use the storage pool.&lt;br /&gt;
&lt;br /&gt;
Note: This is not necessary if your files are already in Amahi shares. If they are there, and you enable the ''Uses pool'' option in the Amahi dashboard, the files will start getting moved around into the drives in your storage pool during the night (starting at midnight), when the nightly storage pool check starts.&amp;lt;br/&amp;gt;&lt;br /&gt;
The instructions below are for users who have more data to copy into the Greyhole shares than their currently free space in the /var/hda/files/ folder.&lt;br /&gt;
&lt;br /&gt;
One way to do that is to mount the shares that use the Greyhole storage pool, either on the HDA itself, or on a client computer on your local network, and copy your data from their existing location into the mounted shares.&lt;br /&gt;
This can be time consuming, but it is the safest way to use Greyhole.&lt;br /&gt;
&lt;br /&gt;
Another way to move your files from their current location into the storage pool is to share their current location using an Amahi share that ''Uses pool'', then let Greyhole nightly check move the files from there into the pool.&lt;br /&gt;
&lt;br /&gt;
Here's a more detailed walkthrough for this method:&lt;br /&gt;
&lt;br /&gt;
# Setup the Greyhole Storage Pool in the Amahi dashboard, Shares &amp;gt; Storage Pool page.&lt;br /&gt;
# Go in the Shares &amp;gt; Shares page. In there, make sure you have an existing share for each share you have data for. Create new ones if you need, remove the ones you don't need.&lt;br /&gt;
# Edit the ''path'' of each of those shares, and enter the current location of your existing data. For example, the Movies share could have a path = ''/media/External Drive/Movies''&lt;br /&gt;
# Enable the ''Uses pool'' option for each of your shares, and select the number of extra copies you'd like, if any.&lt;br /&gt;
# Now, you either need to wait for Greyhole'S nightly check to start, or you can start it manually from a terminal, as root, using this command: greyhole --fsck&lt;br /&gt;
# Monitor /var/log/greyhole.log to see when the ''fsck'' operation is done.&lt;br /&gt;
# Once ''fsck'' is done, your data has now been moved into the Greyhole storage pool (in the drives you selected in Shares &amp;gt; Storage Pool). All that should be left in the previous location of your data (''/media/External Drive/Movies'' from the previous example) should be symbolic links pointing to the new file copies. If the previous location is just empty directories (no symlinks), do not panic. This is normal if your previous location is an NTFS or FAT partition (drive).&lt;br /&gt;
# Move all those directories / symlinks from there into the correct folders in /var/hda/files/share_name&lt;br /&gt;
# Back in the Amahi dashboard, edit the path of the shares once again, and put back ''/var/hda/files/share_name'' (i.e. the folders where you moved the symbolic links).&lt;br /&gt;
# If you used an NTFS or FAT partition for the previous location, you'll need another fsck to create the symlinks where they should be. Either wait for midnight, or launch it manually, from a command line, as root: ''greyhole --fsck''&lt;br /&gt;
&lt;br /&gt;
You're done. All your existing data is now stored in the various drives included in your storage pool, and are accessible via the Samba shares you have defined in the Amahi dashboard.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Adding a new drive to your HDA and storage pool ==&lt;br /&gt;
This wiki page discusses how to add a new drive to your HDA and to your greyhole storage pool&lt;br /&gt;
[[Adding_a_second_hard_drive_to_your_HDA]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Drive Mounted as /media ==&lt;br /&gt;
Including any drive mounted as /media/Something in your storage pool is usually a bad idea.&amp;lt;br/&amp;gt;&lt;br /&gt;
Those mounts are created by the ''gnome-automounter'', which requires you to be logged in into X (Gnome) to become available.&amp;lt;br/&amp;gt;&lt;br /&gt;
This will create issues with Greyhole, which expects drives to always be available, and will take action when some of them are missing.&lt;br /&gt;
&lt;br /&gt;
Follow this guide to [[Adding a second hard drive to your HDA|permanently mount your drives]], before you include them in your storage pool.&lt;br /&gt;
&lt;br /&gt;
== Monitoring Greyhole ==&lt;br /&gt;
Sometimes you might want to monitor what Greyhole is doing, for example when writing data to your greyhole shares for the first time. Here are a few commands you can type in a terminal to follow along.&lt;br /&gt;
&lt;br /&gt;
'''Scrolling view of total Greyhole operations queue:'''&lt;br /&gt;
{{Code|while [ 1 &amp;lt;nowiki&amp;gt;==&amp;lt;/nowiki&amp;gt; 1 ]; do greyhole --view-queue &amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt; grep Total; sleep 60; done}}&lt;br /&gt;
&lt;br /&gt;
'''Scrolling log of what files Greyhole is working on right now:'''&lt;br /&gt;
{{Code|tail -f /var/log/greyhole.log}}&lt;br /&gt;
&lt;br /&gt;
== Convert Greyhole from SQLite to MySQL ==&lt;br /&gt;
Greyhole is already using MySQL in Amahi 6.0&lt;br /&gt;
&lt;br /&gt;
Greyhole was previously using SQLite as the default database for queueing up tasks on Amahi. This was unqie to Amahi as Greyhole was originally designed to use MySQL for this task.&lt;br /&gt;
&lt;br /&gt;
There are some major performance benefits to using MySQL over SQLite when writing large amounts of files. Switching can be especially useful when moving data to greyhole shares for the first time. For now there is a script you can run if you want to switch over. This script has been tested to be safe while greyhole is working but should be used with discresion.&lt;br /&gt;
&lt;br /&gt;
''To Convert to MySQL, run as root:''&lt;br /&gt;
&lt;br /&gt;
{{Code|/usr/share/greyhole/db_migration-sqlite2mysql.sh}}&lt;br /&gt;
&lt;br /&gt;
To see what DB engine is Greyhole using, do this:&lt;br /&gt;
&lt;br /&gt;
{{Code|grep db_engine /etc/greyhole.conf}}&lt;br /&gt;
&lt;br /&gt;
== Disable Greyhole ==&lt;br /&gt;
For those who do not use Greyhole, you can disable it.  This is based on the fact you never have used it by enabling 'Uses pool' on any share.  Recommend using extreme caution as this could have unpredictable results.&lt;br /&gt;
&lt;br /&gt;
Perform the following steps as user '''root''':&lt;br /&gt;
&lt;br /&gt;
{{Code|chkconfig greyhole off&lt;br /&gt;
rm /etc/monit.d/greyhole.conf&lt;br /&gt;
service monit restart&lt;br /&gt;
service greyhole stop}}&lt;br /&gt;
&lt;br /&gt;
'''DO NOT''' attempt to remove the Greyhole package as it is a dependency of the HDA software.  Doing so will break your HDA.&lt;br /&gt;
&lt;br /&gt;
= Testing and Reliability =&lt;br /&gt;
&lt;br /&gt;
Check out the [[Greyhole grinder]] to help make Greyhole rock solid.&lt;br /&gt;
&lt;br /&gt;
= Reconnect the Greyhole storage pool after re-install of Fedora / Amahi =&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--After re-install, recreate all your shares exacty as they were.&amp;lt;br&amp;gt;&lt;br /&gt;
Add the shares to the storage pool.&amp;lt;br&amp;gt;&lt;br /&gt;
As root, run greyhole --fsck.&amp;lt;br&amp;gt;&lt;br /&gt;
This  will recreate the symlinks in the landing zone /var/hda/files.&amp;lt;br&amp;gt;--&amp;gt;&lt;br /&gt;
* Disconnect all data drives before you reinstall. This will prevent you from destroying them by mistake during the Fedora/Amahi install!&lt;br /&gt;
* Install Amahi per the regular instructions.&lt;br /&gt;
* Connect the data drives, and use hda-diskmount to remount all of them.&lt;br /&gt;
Note that if you can, it would be faster if you can re-mount the drives in the same paths they used to have.&lt;br /&gt;
&lt;br /&gt;
'''Example:''' If you have one 1TB and one 2TB, and the 1TB was mounted as /var/hda/files/drives/drive1, and the 2TB was mounted as /var/hda/files/drives/drive2, it would be better to re-mount that like that on your new HDA. If you mount them otherwise, it will still work, but Greyhole will work a while to re-build the links in your share before they can be usable.&lt;br /&gt;
* Select the drives in the Amahi Dashboard: Setup &amp;gt; Shares &amp;gt; Storage Pool&lt;br /&gt;
* Re-create your shares in the Amahi Dashboard: Setup &amp;gt; Shares.&lt;br /&gt;
Make sure to select 'Use Pool', and select the correct number of extra copies.&lt;br /&gt;
If you don't remember all the shares you had, just check inside the 'gh' folder found at the root of your drives to get a reminder!&lt;br /&gt;
&lt;br /&gt;
'''Example:'''&lt;br /&gt;
{{Code|ls -1 /var/hda/files/drives/*/gh/ &amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt; grep -v : &amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt; sort -u}}&lt;br /&gt;
&lt;br /&gt;
* Launch a fsck to have Greyhole rebuild your shares.&lt;br /&gt;
{{Code|greyhole --fsck}}&lt;br /&gt;
&lt;br /&gt;
Until this completes, some of your files will be missing from your shares.&lt;br /&gt;
&lt;br /&gt;
= Greyhole Troubleshooting =&lt;br /&gt;
&lt;br /&gt;
Page: [[Greyhole troubleshooting]]&lt;br /&gt;
&lt;br /&gt;
= Landing Zone Considerations =&lt;br /&gt;
&lt;br /&gt;
The landing zone or LZ is the area where files arrive first before being distributed to their final destination. See details in the [[Greyhole landing zone]] page.&lt;br /&gt;
&lt;br /&gt;
= Manually updating Greyhole for Amahi =&lt;br /&gt;
Page: [[Greyhole updating]]&lt;br /&gt;
&lt;br /&gt;
= Reference =&lt;br /&gt;
Good [http://revxatlarge.blogspot.com/2011/04/restoring-deleted-files-in-greyhole-and.html article] on Greyhole with terms explained.&lt;/div&gt;</summary>
		<author><name>TheGeebs</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=VPNMacTunnelBlick&amp;diff=38773</id>
		<title>VPNMacTunnelBlick</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=VPNMacTunnelBlick&amp;diff=38773"/>
		<updated>2011-04-16T17:32:49Z</updated>

		<summary type="html">&lt;p&gt;TheGeebs: Page formatting.  Nothing more&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Mac VPN Client - Tunnelblick ==&lt;br /&gt;
&lt;br /&gt;
[http://www.tunnelblick.net/ Tunnelblick] is an open source client for Mac OS X.&lt;br /&gt;
&lt;br /&gt;
''NOTE: Tunnelblick may not work if you have the Cisco VPN client installed at the same time!''&lt;br /&gt;
&lt;br /&gt;
== Preferred Installation Method ==&lt;br /&gt;
# Download and install the latest 3.1.x version of [http://code.google.com/p/tunnelblick/downloads/list Tunnelblick] for Mac OS X&lt;br /&gt;
# Download and install the [http://dl.amahi.org/vpn/Amahi%20VPN%20Client%20Configuration.pkg.zip Amahi VPN Client Configuration package]&lt;br /&gt;
# Replace YourNicknameHere in the first line with your Username&lt;br /&gt;
# Open Tunnelblick under Applications&lt;br /&gt;
# Click Connect MyHDA (Tunnelblick icon next to Spotlight in top right corner of menubar&lt;br /&gt;
* If you'd like to automatically connect when Tunnelblick is opened: Choose ''' Details ''' from the drop-down and check ''' &amp;quot;Connect Automatically&amp;quot; '''&lt;br /&gt;
&lt;br /&gt;
= Alternate Installation Methods: =&lt;br /&gt;
== Semi-automatic Method - Tunnelblick 3.0 ==&lt;br /&gt;
If the above Amahi VPN Client Configuration package fails to install, you should try the steps below.&lt;br /&gt;
&lt;br /&gt;
* We have a script to help in the installation:&lt;br /&gt;
        curl -so install-amahi-vpn &amp;lt;nowiki&amp;gt;http://dl.amahi.org/vpn/mac.sh&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
        chmod 755 install-amahi-vpn&lt;br /&gt;
        ./install-amahi-vpn&lt;br /&gt;
* The above should open a text editor with the conf file&lt;br /&gt;
* Replace YourNicknameHere in the first line, for your nickname &lt;br /&gt;
* Start the VPN!&lt;br /&gt;
&lt;br /&gt;
== Semi-automatic Method - Tunnelblick 3.1 ==&lt;br /&gt;
If the above Amahi VPN Client Configuration package fails to install, you should try the steps below.&lt;br /&gt;
&lt;br /&gt;
* We have a script to help in the installation:&lt;br /&gt;
        curl -so install-amahi-vpn &amp;lt;nowiki&amp;gt;http://dl.amahi.org/vpn/tunnelblick-beta.sh&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
        chmod 755 install-amahi-vpn&lt;br /&gt;
        ./install-amahi-vpn&lt;br /&gt;
* The above should open a text editor with the conf file&lt;br /&gt;
* Replace YourNicknameHere in the first line, for your nickname &lt;br /&gt;
* Start the VPN!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Manual Method ==&lt;br /&gt;
&lt;br /&gt;
* Detailed instructions&lt;br /&gt;
* There are three .ctr/.key files needed (make sure you follow the links to these in this wiki properly) Right click and save as to save these to your computer:&lt;br /&gt;
** [http://dl.amahi.org/vpn/AmahiHDAClient.crt AmahiHDAClient.crt]&lt;br /&gt;
** [http://dl.amahi.org/vpn/AmahiHDAClient.key AmahiHDAClient.key]&lt;br /&gt;
** [http://dl.amahi.org/vpn/ca-cert.crt ca-cert.crt]&lt;br /&gt;
* Download the .ctr/.key files and save them in the /Users/'''username'''/Library/Application Support/Tunnelblick/Configurations/ folder, where '''username''' is the home directory of the current user.&lt;br /&gt;
* Go to the configuration for Tunnelblick and edit the config file.&lt;br /&gt;
* Click on the Tunnelblick icon in the upper right corner of the display, then click '''''Details...'''''&amp;lt;br /&amp;gt;[[Image:tunnelblick-pulldown.png]]&lt;br /&gt;
* &amp;quot;OpenVPN Log Output&amp;quot; window should appear, click on '''''Edit Configuration'''''. Make sure the ''Set Nameserver (Experimental)'' option is ''checked.''&amp;lt;br /&amp;gt;[[Image:tunnelblick-editconfig.png]]&lt;br /&gt;
* Delete the default sample configuration&amp;lt;br /&amp;gt;[[Image:openvpn_conf1.png]]&lt;br /&gt;
* Copy and paste the configuration below into the OpenVPN.conf file, replacing XYZ for your HDA's nickname:&lt;br /&gt;
 &amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
      remote XYZ.yourhda.com 1194&lt;br /&gt;
      client&lt;br /&gt;
      dev tun&lt;br /&gt;
      proto udp&lt;br /&gt;
      resolv-retry infinite&lt;br /&gt;
      nobind&lt;br /&gt;
      persist-key&lt;br /&gt;
      persist-tun&lt;br /&gt;
      ca Ca-cert.crt&lt;br /&gt;
      cert AmahiHDAClient.crt&lt;br /&gt;
      key AmahiHDAClient.key&lt;br /&gt;
      comp-lzo&lt;br /&gt;
      verb 3&lt;br /&gt;
      auth-user-pass&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Any time you want to connect '''from outside of your home network''' and '''into your home network''', simply click on '''Connect'''&lt;br /&gt;
* Don't forget to click on the DNS option.&lt;br /&gt;
* Input your username and password&lt;br /&gt;
* It is possible to use keyrings. Will link here the details when available.&lt;br /&gt;
&lt;br /&gt;
Note:&lt;br /&gt;
* The procedure above has been tested with an Intel-based Mac.&lt;br /&gt;
&lt;br /&gt;
Acessing Shares:&lt;br /&gt;
* Once connected, in Finder, go to &amp;quot;Go&amp;quot; &amp;gt; &amp;quot;Connect to Server&amp;quot;.  You'll be prompted to type in your HDA address (smb://hda)&lt;br /&gt;
* There have been cases in which the hda name did not work due to DNS issues.  If this is the case, you can connect via ip address of your HDA (smb://192.168.X.X)&lt;br /&gt;
[[Category: VPN]]&lt;/div&gt;</summary>
		<author><name>TheGeebs</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=VPNMacTunnelBlick&amp;diff=38767</id>
		<title>VPNMacTunnelBlick</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=VPNMacTunnelBlick&amp;diff=38767"/>
		<updated>2011-04-16T17:27:49Z</updated>

		<summary type="html">&lt;p&gt;TheGeebs: Expanded and cleaned up Normal Install.  Semi-automatic didn't work for me&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Mac VPN Client - Tunnelblick ==&lt;br /&gt;
&lt;br /&gt;
[http://www.tunnelblick.net/ Tunnelblick] is an open source client for Mac OS X.&lt;br /&gt;
&lt;br /&gt;
''NOTE: Tunnelblick may not work if you have the Cisco VPN client installed at the same time!''&lt;br /&gt;
&lt;br /&gt;
= Preferred Installation Method =&lt;br /&gt;
# Download and install the latest 3.1.x version of [http://code.google.com/p/tunnelblick/downloads/list Tunnelblick] for Mac OS X&lt;br /&gt;
# Download and install the [http://dl.amahi.org/vpn/Amahi%20VPN%20Client%20Configuration.pkg.zip Amahi VPN Client Configuration package]&lt;br /&gt;
# Replace YourNicknameHere in the first line with your Username&lt;br /&gt;
# Open Tunnelblick under Applications&lt;br /&gt;
# Click Connect MyHDA (Tunnelblick icon next to Spotlight in top right corner of menubar&lt;br /&gt;
* If you'd like to automatically connect when Tunnelblick is opened: Choose ''' Details ''' from the drop-down and check ''' &amp;quot;Connect Automatically&amp;quot; '''&lt;br /&gt;
&lt;br /&gt;
== Semi-automatic Method - Tunnelblick 3.0 ==&lt;br /&gt;
If the above Amahi VPN Client Configuration package fails to install, you should try the steps below.&lt;br /&gt;
&lt;br /&gt;
* We have a script to help in the installation:&lt;br /&gt;
        curl -so install-amahi-vpn &amp;lt;nowiki&amp;gt;http://dl.amahi.org/vpn/mac.sh&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
        chmod 755 install-amahi-vpn&lt;br /&gt;
        ./install-amahi-vpn&lt;br /&gt;
* The above should open a text editor with the conf file&lt;br /&gt;
* Replace YourNicknameHere in the first line, for your nickname &lt;br /&gt;
* Start the VPN!&lt;br /&gt;
&lt;br /&gt;
== Semi-automatic Method - Tunnelblick 3.1 ==&lt;br /&gt;
If the above Amahi VPN Client Configuration package fails to install, you should try the steps below.&lt;br /&gt;
&lt;br /&gt;
* We have a script to help in the installation:&lt;br /&gt;
        curl -so install-amahi-vpn &amp;lt;nowiki&amp;gt;http://dl.amahi.org/vpn/tunnelblick-beta.sh&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
        chmod 755 install-amahi-vpn&lt;br /&gt;
        ./install-amahi-vpn&lt;br /&gt;
* The above should open a text editor with the conf file&lt;br /&gt;
* Replace YourNicknameHere in the first line, for your nickname &lt;br /&gt;
* Start the VPN!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Manual Method ==&lt;br /&gt;
&lt;br /&gt;
* Detailed instructions&lt;br /&gt;
* There are three .ctr/.key files needed (make sure you follow the links to these in this wiki properly) Right click and save as to save these to your computer:&lt;br /&gt;
** [http://dl.amahi.org/vpn/AmahiHDAClient.crt AmahiHDAClient.crt]&lt;br /&gt;
** [http://dl.amahi.org/vpn/AmahiHDAClient.key AmahiHDAClient.key]&lt;br /&gt;
** [http://dl.amahi.org/vpn/ca-cert.crt ca-cert.crt]&lt;br /&gt;
* Download the .ctr/.key files and save them in the /Users/'''username'''/Library/Application Support/Tunnelblick/Configurations/ folder, where '''username''' is the home directory of the current user.&lt;br /&gt;
* Go to the configuration for Tunnelblick and edit the config file.&lt;br /&gt;
* Click on the Tunnelblick icon in the upper right corner of the display, then click '''''Details...'''''&amp;lt;br /&amp;gt;[[Image:tunnelblick-pulldown.png]]&lt;br /&gt;
* &amp;quot;OpenVPN Log Output&amp;quot; window should appear, click on '''''Edit Configuration'''''. Make sure the ''Set Nameserver (Experimental)'' option is ''checked.''&amp;lt;br /&amp;gt;[[Image:tunnelblick-editconfig.png]]&lt;br /&gt;
* Delete the default sample configuration&amp;lt;br /&amp;gt;[[Image:openvpn_conf1.png]]&lt;br /&gt;
* Copy and paste the configuration below into the OpenVPN.conf file, replacing XYZ for your HDA's nickname:&lt;br /&gt;
 &amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
      remote XYZ.yourhda.com 1194&lt;br /&gt;
      client&lt;br /&gt;
      dev tun&lt;br /&gt;
      proto udp&lt;br /&gt;
      resolv-retry infinite&lt;br /&gt;
      nobind&lt;br /&gt;
      persist-key&lt;br /&gt;
      persist-tun&lt;br /&gt;
      ca Ca-cert.crt&lt;br /&gt;
      cert AmahiHDAClient.crt&lt;br /&gt;
      key AmahiHDAClient.key&lt;br /&gt;
      comp-lzo&lt;br /&gt;
      verb 3&lt;br /&gt;
      auth-user-pass&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Any time you want to connect '''from outside of your home network''' and '''into your home network''', simply click on '''Connect'''&lt;br /&gt;
* Don't forget to click on the DNS option.&lt;br /&gt;
* Input your username and password&lt;br /&gt;
* It is possible to use keyrings. Will link here the details when available.&lt;br /&gt;
&lt;br /&gt;
Note:&lt;br /&gt;
* The procedure above has been tested with an Intel-based Mac.&lt;br /&gt;
&lt;br /&gt;
Acessing Shares:&lt;br /&gt;
* Once connected, in Finder, go to &amp;quot;Go&amp;quot; &amp;gt; &amp;quot;Connect to Server&amp;quot;.  You'll be prompted to type in your HDA address (smb://hda)&lt;br /&gt;
* There have been cases in which the hda name did not work due to DNS issues.  If this is the case, you can connect via ip address of your HDA (smb://192.168.X.X)&lt;br /&gt;
[[Category: VPN]]&lt;/div&gt;</summary>
		<author><name>TheGeebs</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=CouchPotato&amp;diff=37513</id>
		<title>CouchPotato</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=CouchPotato&amp;diff=37513"/>
		<updated>2011-03-24T05:27:52Z</updated>

		<summary type="html">&lt;p&gt;TheGeebs: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:apps]]&lt;br /&gt;
&lt;br /&gt;
'''CouchPotato''' is an automatic NZB and torrent downloader. You can keep a &amp;quot;movies I want&amp;quot;-list and it will search for NZBs/torrents of these movies every X hours. Once a movie is found, it will send it to SABnzbd or download the .nzb or .torrent to a specified directory. &lt;br /&gt;
&lt;br /&gt;
=== Prerequisits: ===&lt;br /&gt;
# SABnzbd&lt;br /&gt;
# CouchPotato&lt;br /&gt;
&lt;br /&gt;
CouchPotato can be accessed from http://cpotato:5000/ -or- yourHDAip:5000 (i.e. 192.168.1.10:5000)&lt;br /&gt;
&lt;br /&gt;
=== How to configure with SABnzbd: ===&lt;br /&gt;
Open your config page at http://cpotato:5000/config/ or by clicking the gear at the top.&lt;br /&gt;
&lt;br /&gt;
 '''General'''&lt;br /&gt;
* Uncheck Launch Browser&lt;br /&gt;
* Leave Host: 0.0.0.0 and Port: 5000&lt;br /&gt;
 '''NZBs / Torrents'''&lt;br /&gt;
* Select  “Sabnzbd” from Download to dropdown&lt;br /&gt;
* Set Host to: localhost:25914&lt;br /&gt;
* Get your Sabnzbd Apikey from http://sabnzbd/config/general/&lt;br /&gt;
* Set Category to: Movies&lt;br /&gt;
 '''Providers'''&lt;br /&gt;
* Set your provider account information&lt;br /&gt;
 '''Quality'''&lt;br /&gt;
* Set your quality preferences&lt;br /&gt;
 '''Renaming'''&lt;br /&gt;
* Set “Download Folder&amp;quot; to: /var/spool/sabnzbd/incoming/Movies/ (By default, SABnzbd's completed downloads folder is &amp;quot;/var/spool/sabnzbd/incoming/&amp;quot;)&lt;br /&gt;
* Set your &amp;quot;Movie destination&amp;quot; anywhere you like (i.e. /var/hda/files/Movies)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Warnings: ===&lt;br /&gt;
* Leave your host as 0.0.0.0, this allows you to access from any pc on your network&lt;br /&gt;
* If you change the port from 5000 you will break the proxy http://cpotato. You can still access CouchPotato from yourHDAip:port-you-set (i.e. http://192.168.1.10:8082)&lt;/div&gt;</summary>
		<author><name>TheGeebs</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Sick_Beard&amp;diff=37507</id>
		<title>Sick Beard</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Sick_Beard&amp;diff=37507"/>
		<updated>2011-03-24T04:30:15Z</updated>

		<summary type="html">&lt;p&gt;TheGeebs: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category: apps]]&lt;br /&gt;
'''NOTE:'''  This Amahi [http://www.amahi.org/apps/sick-beard application] is currently in '''ALPHA''' and integrates with [http://www.amahi.org/apps/sabnzbd SABnzbd]. &lt;br /&gt;
&lt;br /&gt;
=== Prerequisites (Amahi Apps) ===&lt;br /&gt;
# SABnzbd&lt;br /&gt;
# Sick Beard ('''ONLY''' available to testers)&lt;br /&gt;
&lt;br /&gt;
=== SABnzbd Config ===&lt;br /&gt;
# First you should make sure you have designated a &amp;quot;scripts&amp;quot; folder. This is found on the &amp;quot;folders&amp;quot; tab of the &amp;quot;config&amp;quot; option in SABnzbd. Set it to &amp;quot;/var/hda/web-apps/sickbeard/html/autoProcessTV/&amp;quot;&lt;br /&gt;
# Open that scripts folder. Then open the folder titled &amp;quot;autoProcessTV&amp;quot; that you got with your SickBeard installation. Copy all the contents over into your &amp;quot;Scripts&amp;quot; folder.&lt;br /&gt;
# Rename the &amp;quot;autoProcessTV.cfg.sample&amp;quot; to just &amp;quot;autoProcess.TV.cfg&amp;quot;&lt;br /&gt;
# Open that .cfg file in an editor. Change the host, port, username, and password values to the appropriate settings for your Sick Beard server. Then save it and close it.&lt;br /&gt;
# Go back to SABnzbd and click on the &amp;quot;sorting&amp;quot; tab. Disable sorting for TV shows.&lt;br /&gt;
# Go to the &amp;quot;categories&amp;quot; tab. Set the appropriate script as your postprocessing script for your TV shows (sabToSickbeard.py).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''NOTE:'''  The above was modified from [http://sickbeard.com/forums/viewtopic.php?f=3&amp;amp;t=10#p28 Sick Beard Forums].&lt;br /&gt;
&lt;br /&gt;
=== Sick Beard Config ===&lt;br /&gt;
* General&lt;br /&gt;
# Tell it what port to listen on and what login to use. (If installed from Dashboard the default is http://localhost:25914/ Username/Password: Blank/Blank)&lt;br /&gt;
# Create Meta Data &amp;amp; Images ( I leave this off since I let XBMC do it. I don't like the extra files in the directory. XBMC allows me to delete shows from it's interface but it will only delete the show file, not associated meta data files. Hence you'll be left with a bunch of extra files in the folder that you don't need. I let XBMC do this so I can just delete the show (and the file) from XBMC after I've watched it.) This is personal preference though, if you don't want XBMC to take a long time looking things up, download the meta data when the show downloads so that XBMC doesn't have to look for it.&lt;br /&gt;
# Episode Naming: I chose &amp;quot;include show name&amp;quot; and &amp;quot;include episode name&amp;quot;. I use dashes (-) and the format (S01E01) for mine. This is personal preference though.&lt;br /&gt;
# For quality I use &amp;quot;Custom&amp;quot; and then choose &amp;quot;720p TV&amp;quot; and &amp;quot;720p WEB-DL&amp;quot;. I leave the second box empty (since I only want the show downloaded once) and I select the check box for &amp;quot;use season folders&amp;quot;.&lt;br /&gt;
* Episode Downloads:&lt;br /&gt;
# Episode Search: NZB (duh)&lt;br /&gt;
# NZB Options: Found NZBs go to SABnzbd&lt;br /&gt;
# Retention = 600&lt;br /&gt;
# Enter your SABnzbd server info&lt;br /&gt;
# Fill in TV download directory (where you keep all your TV shows for XBMC to scan)&lt;br /&gt;
# Check &amp;quot;rename episodes&amp;quot; and leave the other two boxes unchecked.&lt;br /&gt;
* Search providers:  &lt;br /&gt;
# Fill in your credentials for the providers you use (I use NZBMatrix.com and NZBs.org) &lt;br /&gt;
# Be sure to set the look-up order on the left.&lt;br /&gt;
* Notifications: I have it do the first three notifications for XBMC (notify on snatched (nzb retrieval), download complete, and update library)&lt;br /&gt;
* Save the settings, and that's it. You should be fully configured now.&lt;/div&gt;</summary>
		<author><name>TheGeebs</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=CouchPotato&amp;diff=37501</id>
		<title>CouchPotato</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=CouchPotato&amp;diff=37501"/>
		<updated>2011-03-24T04:21:05Z</updated>

		<summary type="html">&lt;p&gt;TheGeebs: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:apps]]&lt;br /&gt;
&lt;br /&gt;
'''CouchPotato''' is an automatic NZB and torrent downloader. You can keep a &amp;quot;movies I want&amp;quot;-list and it will search for NZBs/torrents of these movies every X hours. Once a movie is found, it will send it to SABnzbd or download the .nzb or .torrent to a specified directory. &lt;br /&gt;
&lt;br /&gt;
=== Prerequisits: ===&lt;br /&gt;
# SABnzbd&lt;br /&gt;
# CouchPotato&lt;br /&gt;
&lt;br /&gt;
CouchPotato can be accessed from http://cpotato:5000/ -or- yourHDAip:5000 (i.e. 192.168.1.10:5000)&lt;br /&gt;
&lt;br /&gt;
=== How to configure with SABnzbd: ===&lt;br /&gt;
Open your config page at http://cpotato:5000/config/ or by clicking the gear at the top.&lt;br /&gt;
&lt;br /&gt;
 '''General'''&lt;br /&gt;
* Uncheck Launch Browser&lt;br /&gt;
* Leave Host: 0.0.0.0 and Port: 5000&lt;br /&gt;
 '''NZBs / Torrents'''&lt;br /&gt;
* Select  “Sabnzbd” from Download to dropdown&lt;br /&gt;
* Set Host to: localhost:25914&lt;br /&gt;
* Get your Sabnzbd Apikey from http://sabnzbd/config/general/&lt;br /&gt;
* Set Category to: Movies&lt;br /&gt;
 '''Providers'''&lt;br /&gt;
* Set your provider account information&lt;br /&gt;
 '''Quality'''&lt;br /&gt;
* Set your quality preferences&lt;br /&gt;
 '''Renaming'''&lt;br /&gt;
* Set “Download Folder to: /var/spool/sabnzbd/incoming/Movies/ (By default, SABnzbd's completed downloads folder is &amp;quot;/var/spool/sabnzbd/incoming/&amp;quot;)&lt;br /&gt;
* Set your Movie destination anywhere you like (i.e. /var/hda/files/Movies)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Warnings: ===&lt;br /&gt;
* Leave your host as 0.0.0.0, this allows you to access from any pc on your network&lt;br /&gt;
* If you change the port from 5000 you will break the proxy http://cpotato. You can still access CouchPotato from yourHDAip:port-you-set (i.e. http://192.168.1.10:8082)&lt;/div&gt;</summary>
		<author><name>TheGeebs</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=CouchPotato&amp;diff=37495</id>
		<title>CouchPotato</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=CouchPotato&amp;diff=37495"/>
		<updated>2011-03-24T04:17:06Z</updated>

		<summary type="html">&lt;p&gt;TheGeebs: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:apps]]&lt;br /&gt;
&lt;br /&gt;
'''CouchPotato''' is an automatic NZB and torrent downloader. You can keep a &amp;quot;movies I want&amp;quot;-list and it will search for NZBs/torrents of these movies every X hours. Once a movie is found, it will send it to SABnzbd or download the .nzb or .torrent to a specified directory. &lt;br /&gt;
&lt;br /&gt;
=== Prerequisits: ===&lt;br /&gt;
# SABnzbd&lt;br /&gt;
# CouchPotato&lt;br /&gt;
&lt;br /&gt;
CouchPotato can be accessed from http://cpotato:5000/ -or- yourHDAip:5000 (i.e. 192.168.1.10:5000)&lt;br /&gt;
&lt;br /&gt;
=== How to configure with SABnzbd: ===&lt;br /&gt;
# '''General'''&lt;br /&gt;
* Uncheck Launch Browser&lt;br /&gt;
* Leave Host: 0.0.0.0 and Port: 5000&lt;br /&gt;
# '''NZBs / Torrents'''&lt;br /&gt;
* Select  “Sabnzbd” from Download to dropdown&lt;br /&gt;
* Set Host to: localhost:25914&lt;br /&gt;
* Get your Sabnzbd Apikey from http://sabnzbd/config/general/&lt;br /&gt;
* Set Category to: Movies&lt;br /&gt;
# '''Providers'''&lt;br /&gt;
* Set your provider account information&lt;br /&gt;
# '''Quality'''&lt;br /&gt;
* Set your quality preferences&lt;br /&gt;
# '''Renaming'''&lt;br /&gt;
* Set “Download Folder to: /var/spool/sabnzbd/incoming/Movies/ (By default, SABnzbd's completed downloads folder is &amp;quot;/var/spool/sabnzbd/incoming/&amp;quot;)&lt;br /&gt;
* Set your Movie destination anywhere you like (i.e. /var/hda/files/Movies)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Warnings: ===&lt;br /&gt;
* Leave your host as 0.0.0.0, this allows you to access from any pc on your network&lt;br /&gt;
* If you change the port from 5000 you will break the proxy http://cpotato. You can still access CouchPotato from yourHDAip:port-you-set (i.e. http://192.168.1.10:8082)&lt;/div&gt;</summary>
		<author><name>TheGeebs</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=CouchPotato&amp;diff=37489</id>
		<title>CouchPotato</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=CouchPotato&amp;diff=37489"/>
		<updated>2011-03-24T04:15:58Z</updated>

		<summary type="html">&lt;p&gt;TheGeebs: Copied my working config&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:apps]]&lt;br /&gt;
&lt;br /&gt;
'''CouchPotato''' is an automatic NZB and torrent downloader. You can keep a &amp;quot;movies I want&amp;quot;-list and it will search for NZBs/torrents of these movies every X hours. Once a movie is found, it will send it to SABnzbd or download the .nzb or .torrent to a specified directory. &lt;br /&gt;
&lt;br /&gt;
=== Prerequisits: ===&lt;br /&gt;
# SABnzbd&lt;br /&gt;
# CouchPotato&lt;br /&gt;
&lt;br /&gt;
CouchPotato can be accessed from http://cpotato:5000/ -or- yourHDAip:5000 (i.e. 192.168.1.10:5000)&lt;br /&gt;
&lt;br /&gt;
=== How to configure with SABnzbd: ===&lt;br /&gt;
# ‘’’General’’’&lt;br /&gt;
* Uncheck Launch Browser&lt;br /&gt;
* Leave Host: 0.0.0.0 and Port: 5000&lt;br /&gt;
# ‘’’NZBs / Torrents’’’&lt;br /&gt;
* Select  “Sabnzbd” from Download to dropdown&lt;br /&gt;
* Set Host to: localhost:25914&lt;br /&gt;
* Get your Sabnzbd Apikey from http://sabnzbd/config/general/&lt;br /&gt;
* Set Category to: Movies&lt;br /&gt;
# ‘’’Providers’’’&lt;br /&gt;
* Set your provider account information&lt;br /&gt;
# ‘’’Quality’’’&lt;br /&gt;
* Set your quality preferences&lt;br /&gt;
# ‘’’Renaming’’’&lt;br /&gt;
* Set “Download Folder to: /var/spool/sabnzbd/incoming/Movies/ (By default, SABnzbd's completed downloads folder is &amp;quot;/var/spool/sabnzbd/incoming/&amp;quot;)&lt;br /&gt;
* Set your Movie destination anywhere you like (i.e. /var/hda/files/Movies)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Warnings: ===&lt;br /&gt;
* Leave your host as 0.0.0.0, this allows you to access from any pc on your network&lt;br /&gt;
* If you change the port from 5000 you will break the proxy http://cpotato. You can still access CouchPotato from yourHDAip:port-you-set (i.e. http://192.168.1.10:8082)&lt;/div&gt;</summary>
		<author><name>TheGeebs</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=CouchPotato&amp;diff=37129</id>
		<title>CouchPotato</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=CouchPotato&amp;diff=37129"/>
		<updated>2011-03-23T04:43:20Z</updated>

		<summary type="html">&lt;p&gt;TheGeebs: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:apps]]&lt;br /&gt;
&lt;br /&gt;
'''CouchPotato''' is an automatic NZB and torrent downloader. You can keep a &amp;quot;movies I want&amp;quot;-list and it will search for NZBs/torrents of these movies every X hours. Once a movie is found, it will send it to SABnzbd or download the .nzb or .torrent to a specified directory. &lt;br /&gt;
&lt;br /&gt;
=== Prerequisits: ===&lt;br /&gt;
# SABnzbd&lt;br /&gt;
# CouchPotato&lt;br /&gt;
&lt;br /&gt;
CouchPotato can be accessed from http://cpotato:5000/ -or- yourHDAip:5000 (i.e. 192.168.1.10:5000)&lt;br /&gt;
&lt;br /&gt;
=== How to configure with SABnzbd: ===&lt;br /&gt;
* Please Add Instructions&lt;br /&gt;
* Instructions are incomplete and untested&lt;br /&gt;
* By default, SABnzbd's completed downloads folder is &amp;quot;/var/spool/sabnzbd/incoming/&amp;quot;&lt;br /&gt;
* CouchPotato should be set to look for downloads in &amp;quot;/var/spool/sabnzbd/incoming/Movies&amp;quot;&lt;br /&gt;
* Your SABnzbd API key can be found at http://sabnzbd/config/general/&lt;br /&gt;
* Host might be &amp;quot;localhost:25914&amp;quot; or &amp;quot;yourHDAip:25914&amp;quot;&lt;br /&gt;
* Category should be set as Movies&lt;br /&gt;
&lt;br /&gt;
=== Warnings: ===&lt;br /&gt;
* Leave your host as 0.0.0.0, this allows you to access from any pc on your network&lt;br /&gt;
* If you change the port from 5000 you will break the proxy http://cpotato. You can still access CouchPotato from yourHDAip:port-you-set (i.e. http://192.168.1.10:8082)&lt;/div&gt;</summary>
		<author><name>TheGeebs</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=CouchPotato&amp;diff=37123</id>
		<title>CouchPotato</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=CouchPotato&amp;diff=37123"/>
		<updated>2011-03-23T04:38:14Z</updated>

		<summary type="html">&lt;p&gt;TheGeebs: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:apps]]&lt;br /&gt;
&lt;br /&gt;
CouchPotato is an automatic NZB and torrent downloader. You can keep a &amp;quot;movies I want&amp;quot;-list and it will search for NZBs/torrents of these movies every X hours. Once a movie is found, it will send it to SABnzbd or download the .nzb or .torrent to a specified directory. &lt;br /&gt;
&lt;br /&gt;
CouchPotato can be accessed from http://cpotato:5000/ -or- yourHDAip:5000 (i.e. 192.168.1.10:5000)&lt;br /&gt;
&lt;br /&gt;
How to configure with SABnzbd:&lt;br /&gt;
* Please Add Instructions&lt;br /&gt;
* Instructions are incomplete and untested&lt;br /&gt;
* By default, SABnzbd's completed downloads folder is &amp;quot;/var/spool/sabnzbd/incoming/&amp;quot;&lt;br /&gt;
* CouchPotato should be set to look for downloads in &amp;quot;/var/spool/sabnzbd/incoming/Movies&amp;quot;&lt;br /&gt;
* Your SABnzbd API key can be found at http://sabnzbd/config/general/&lt;br /&gt;
* Host might be &amp;quot;localhost:25914&amp;quot; or &amp;quot;yourHDAip:25914&amp;quot;&lt;br /&gt;
* Category should be set as Movies&lt;br /&gt;
&lt;br /&gt;
Warnings:&lt;br /&gt;
* Leave your host as 0.0.0.0, this allows you to access from any pc on your network&lt;br /&gt;
* If you change the port from 5000 you will break the proxy http://cpotato. You can still access CouchPotato from yourHDAip:port-you-set (i.e. http://192.168.1.10:8082)&lt;/div&gt;</summary>
		<author><name>TheGeebs</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=CouchPotato&amp;diff=37117</id>
		<title>CouchPotato</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=CouchPotato&amp;diff=37117"/>
		<updated>2011-03-23T04:37:29Z</updated>

		<summary type="html">&lt;p&gt;TheGeebs: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:apps]]&lt;br /&gt;
&lt;br /&gt;
CouchPotato is an automatic NZB and torrent downloader. You can keep a &amp;quot;movies I want&amp;quot;-list and it will search for NZBs/torrents of these movies every X hours. Once a movie is found, it will send it to SABnzbd or download the .nzb or .torrent to a specified directory. &lt;br /&gt;
&lt;br /&gt;
CouchPotato can be accessed from http://cpotato:5000/ -or- yourHDAip:5000 (i.e. 192.168.1.10:5000)&lt;br /&gt;
&lt;br /&gt;
How to configure with SABnzbd:&lt;br /&gt;
* Please Add Instructions&lt;br /&gt;
* Instructions are incomplete and untested&lt;br /&gt;
* By default, SABnzbd's completed downloads folder is &amp;quot;/var/spool/sabnzbd/incoming/&amp;quot;&lt;br /&gt;
* CouchPotato should be set to look for downloads in &amp;quot;var/spool/sabnzbd/incoming/Movies&amp;quot;&lt;br /&gt;
* Your SABnzbd API key can be found at http://sabnzbd/config/general/&lt;br /&gt;
* Host might be &amp;quot;localhost:25914&amp;quot; or &amp;quot;yourHDAip:25914&amp;quot;&lt;br /&gt;
* Category should be set as Movies&lt;br /&gt;
&lt;br /&gt;
Warnings:&lt;br /&gt;
* Leave your host as 0.0.0.0, this allows you to access from any pc on your network&lt;br /&gt;
* If you change the port from 5000 you will break the proxy http://cpotato. You can still access CouchPotato from yourHDAip:port-you-set (i.e. http://192.168.1.10:8082)&lt;/div&gt;</summary>
		<author><name>TheGeebs</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=CouchPotato&amp;diff=37111</id>
		<title>CouchPotato</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=CouchPotato&amp;diff=37111"/>
		<updated>2011-03-23T04:12:49Z</updated>

		<summary type="html">&lt;p&gt;TheGeebs: Begining of CouchPotato wiki&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:apps]]&lt;br /&gt;
&lt;br /&gt;
CouchPotato is an automatic NZB and torrent downloader. You can keep a &amp;quot;movies I want&amp;quot;-list and it will search for NZBs/torrents of these movies every X hours. Once a movie is found, it will send it to SABnzbd or download the .nzb or .torrent to a specified directory. &lt;br /&gt;
&lt;br /&gt;
CouchPotato can be accessed from http://cpotato:5000/ -or- yourHDAip:5000 (i.e. 192.168.1.10:5000)&lt;br /&gt;
&lt;br /&gt;
How to configure with SABnzbd:&lt;br /&gt;
* Please Add Instructions&lt;br /&gt;
* Instructions are incomplete and untested&lt;br /&gt;
* By default, SABnzbd's completed downloads folder is &amp;quot;/var/spool/sabnzbd/incoming/&amp;quot;&lt;br /&gt;
* CouchPotato should be set to look for downloads in &amp;quot;var/spool/sabnzbd/Movies&amp;quot;&lt;br /&gt;
* Your SABnzbd API key can be found at http://sabnzbd/config/general/&lt;/div&gt;</summary>
		<author><name>TheGeebs</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=CouchPotato&amp;diff=37105</id>
		<title>CouchPotato</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=CouchPotato&amp;diff=37105"/>
		<updated>2011-03-23T04:05:26Z</updated>

		<summary type="html">&lt;p&gt;TheGeebs: Created page with &amp;quot;Category:apps  CouchPotato is an automatic NZB and torrent downloader. You can keep a &amp;quot;movies I want&amp;quot;-list and it will search for NZBs/torrents of these movies every X hours....&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:apps]]&lt;br /&gt;
&lt;br /&gt;
CouchPotato is an automatic NZB and torrent downloader. You can keep a &amp;quot;movies I want&amp;quot;-list and it will search for NZBs/torrents of these movies every X hours. Once a movie is found, it will send it to SABnzbd or download the .nzb or .torrent to a specified directory. &lt;br /&gt;
&lt;br /&gt;
CouchPotato can be accessed from http://cpotato:5000/ or @Port:5000 i.e. 192.168.1.10:5000 with no special configuration&lt;br /&gt;
&lt;br /&gt;
How to configure with SABnzbd:&lt;br /&gt;
* Please Add Instructions&lt;/div&gt;</summary>
		<author><name>TheGeebs</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Sabnzbd&amp;diff=37093</id>
		<title>Sabnzbd</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Sabnzbd&amp;diff=37093"/>
		<updated>2011-03-23T03:54:36Z</updated>

		<summary type="html">&lt;p&gt;TheGeebs: Sabnzbd created from sabnzb&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:apps]]&lt;br /&gt;
How to update to newer version:&lt;br /&gt;
&lt;br /&gt;
* Download the new version from the website&lt;br /&gt;
* Extract the sabnzbd folder from the zip file&lt;br /&gt;
(WHEN DOWNLOADING THE LATEST VERSION AND EXTRACTING THE sabnzbd FOLDER ,IT MAY CONTAIN THE VERSION NUMBER IN THE FOLDER NAME. ENSURE THAT YOU CHANGE THE FOLDER NAME TO JUST sabnzbd IF THIS IS THE CASE)&lt;br /&gt;
* Login to the hda and replace the folder sabnzd in /usr/share with the one from the zip.&lt;br /&gt;
* Then do&lt;br /&gt;
       service sabnzbd restart&lt;br /&gt;
&lt;br /&gt;
* ... and you should be good to go.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Accessing sabnzbd using an IP address and port number.&lt;br /&gt;
(needed for using some sabnzbd remote control apps such as mynzb for the iPad)&lt;br /&gt;
&lt;br /&gt;
* Open sabnzbd using http://sabnzbd&lt;br /&gt;
* Navigate to the sabnzbd configuration page&lt;br /&gt;
* Ensure the option for host is set to 0.0.0.0&lt;br /&gt;
* Save changes using the icon at the bottom of the sabnzbd configuration page and then restart       sabnzbd.&lt;br /&gt;
* You should now be able to access sabnzbd using x.x.x.x:25914 (where &amp;quot;x&amp;quot; is the hda IP address and &amp;quot;25914&amp;quot; is the default port of sabnzbd when installed via the hda.&lt;/div&gt;</summary>
		<author><name>TheGeebs</name></author>
		
	</entry>
</feed>