<?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=Brian+Speirs</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=Brian+Speirs"/>
	<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php/Special:Contributions/Brian_Speirs"/>
	<updated>2026-04-08T05:39:41Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.34.2</generator>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Adding_a_second_hard_drive_to_your_HDA&amp;diff=61310</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=61310"/>
		<updated>2012-10-13T22:11:02Z</updated>

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

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