Difference between revisions of "Adding a second hard drive to your HDA"

From Amahi Wiki
Jump to: navigation, search
m (corrected misspelled word and corrected grammar)
Line 1: Line 1:
IMPORTANT NOTES:
+
More hard drives can be added in your Amahi HDA for additional storage space.
  
* This is an '''advanced''' howto on how to add a drive to your HDA
+
We'll detail how to add such hard drives, and how to put them to good use.
* This page may need a refresh to make sure it matches the new script called hda-diskmount, based on the old script. Please edit this page if you find any issues that need to be corrected
 
* 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
 
  
=Quickstart=
+
=Important Notes=
A secondary hard drive (fat32, ntfs, etc) can be added for additional storage in your Amahi HDA.
 
  
First thing's first, make sure your drive is '''detected''' by the BIOS, connected properly and '''formatted''' properly. Once the BIOS sees it, you need to have it partitioned.
+
* This is an '''advanced''' how-to on how to add additional drives to your HDA.
 +
* 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.
  
You can check this with the following command (run before and after connecting the (USB) disk):
+
=Step by step instructions=
  
        dmesg
+
==Make sure your drive is detected by the BIOS==
 +
It should be listed in the drives that appear when you boot your computer, before the Fedora boot screen appears. You can also enter you BIOS and confirm they appear there.
  
You'll see something along the lines of
+
==Make sure your drive is detected by Fedora==
 +
Open a Terminal, and type the following command:
  
        USB Mass Storage device found at ...
+
<div style="border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;">
 +
ls -1 /dev/disk/by-id/ | egrep -v "part|scsi"
 +
</div>
  
followed by a line with a /dev/sd<x> device.  
+
Look for the line that match the hard drive you added.
  
<ul>
+
IDE and SATA hard drives will start with '''ata-''' and USB hard drives will start with '''usb-'''.<br/>
<li>run the diskmounter script: <code>root@localhost # hda-diskmount</code><br>
+
Look for your hard drive model and serial number.
Answer "yes" to the prompt to make the drive world writable.</li>
 
<li>install pmount if you get an error: <code>root@localhost # yum -y install pmount</code></li>
 
<li>try to run the script again: <code>root@localhost # hda-diskmount</code></li>
 
<li>reboot</li>
 
<li>check your /etc/fstab how the disk is mounted: <code>root@localhost # cat /etc/fstab</code> (it will usually be the last line that's added). Edit it to where you want to mount it.</li>
 
</ul>
 
  
=Complete walkthrough=
+
Example:
  
 +
<div style="border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;">
 +
[gb@hda ~]$ ls -1 /dev/disk/by-id/ | egrep -v "part|scsi"<br/>
 +
ata-Hitachi_HDS722020ALA330_JK1131YAGDU37V<br/>
 +
ata-ST31000528AS_6VP08W65<br/>
 +
ata-ST3750640A_3QD0LJN8<br/>
 +
ata-ST3750640A_5QD27A57<br/>
 +
ata-WDC_WD10EADS-00L5B1_WD-WCAU4C700358<br/>
 +
usb-ST310003_33AS_9E1CA6FFFFFF-0:0<br/>
 +
usb-ST375064_0A_2009031309E2-0:0
 +
</div>
  
Your new drive can be configured to mount permanently using the hda-diskmounter script (thanks to Dennis Kaarsemaker and Luigi Capriotti).  You can use this for adding a new fixed (internal) disk or an external USB/FireWire disk.
+
==Install prerequisites==
  
* Make sure you have pmount installed: yum -y install pmount
+
[[Open Terminal as root|In a Terminal, as root]], type the following command:
* Execute the script as ''root'' and answer YES to the prompt to make the drive writable to all users.
 
* Once complete, reboot and the secondary drive should automatically mount. 
 
* As user ''root'', edit '''''/etc/fstab''''' to change location of shared ''//hda'' folders to the secondary drive.
 
* To run the diskmounter script, in the directory where the file is located, do the following:
 
  
<code>hda-diskmounter</code>  
+
<div style="border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;">
 +
yum -y install pmount fuse fuse-libs ntfs-3g gparted
 +
</div>
  
This is what the script added for my drive:
+
==Partition and format the hard drive==
''Added by diskmounter utility''
 
''/dev/sdb1 /var/hda/files vfat rw,user,fmask=0111,dmask=0000 0 0''
 
  
I changed second path to '''''/var/hda/files''''' to enable all shared files to be stored on the secondary hard drive.  This is the default path for ''//hda'' file storage system.
+
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.
  
If you get something similar 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 like that) its nothing to worry about if you get that when executed the hda-diskmounter script.
+
You should (unless you have a good reason not to) use GParted to partition and format your hard drive.<br/>
 +
From the HDA desktop (or using VNC), [[Open Terminal as root]] and type '''gparted''' to launch the GParted application.
  
 +
To know what /dev/sd<x> you need to select in GParted, use the following command, in a Terminal:
  
=If the script doesn't work for you=
+
<div style="border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;">
 +
ls -l /dev/disk/by-id/
 +
</div>
  
These instructions are adapted from [http://www.mjmwired.net/resources/mjm-fedora-f9.html#ntfs here]
+
Find the row corresponding to your hard drive, and look at the end of the line to identify the correct /dev/sd<x> to select in GParted.
  
If you're planning to mount a NTFS disk, you'll need to make sure you have ntfs-3g, fuse and fuse libs all installed. If not, login as root and run:
+
Example:
 +
<div style="border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;">
 +
[gb@hda ~]$ <strong>ls -l /dev/disk/by-id/</strong><br/>
 +
total 0<br/>
 +
lrwxrwxrwx 1 root root  9 2010-02-18 03:24 ata-Hitachi_HDS722020ALA330_JK1131YAGDU37V -> ../../sda<br/>
 +
lrwxrwxrwx 1 root root 10 2010-02-18 03:24 ata-Hitachi_HDS722020ALA330_JK1131YAGDU37V-part1 -> ../../sda1<br/>
 +
lrwxrwxrwx 1 root root  9 2010-02-18 03:24 ata-ST31000528AS_6VP08W65 -> ../../sdb
 +
</div>
  
$ yum install fuse fuse-libs ntfs-3g
+
In the above example, /dev/sdb would be what I would select in GParted. sda in my primary hard drive, and sdb my second hard drive.
  
Then use fdisk to find the disk by running fdisk -l (this is a lower case L not a 1). You may have to give the path (/sbin/fdisk) to make it work.
+
You probably want to create a single partition, and format it as ''ext3''.<br/>
 +
Note that Windows can't read ext3 partitions, so if you want to read your disk on Windows, you should format as NTFS instead. And you should do that on Windows before you connect the drive in your HDA.<br/>
 +
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.
  
$ /sbin/fdisk -l
+
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.<br/>
 +
<a href="http://www.mepisguides.com/Mepis-6/Install/gparted/gparted-set-partition.html">Here's one</a> that looks simple. Just use ext3 instead of fat32 in you follow that tutorial.
  
This should return the needed information about all your disks. Look out for your newly attached disk. In my case in among the results I can find:
+
==Mount the hard drive==
  
Disk /dev/sdb: 120.0GB 120034123776 bytes
+
A script is provided with Amahi that will look for unmounted partitions in your system, and mount any it finds.
255 heads, 63 sectors/track.... etc etc.
 
  
I know my disk is 120GB so that's the right one. This tells us the name of the new disk which is "sdb" in my case. Running
+
[[Open Terminal as root|In a Terminal, as root]], type the following command:
 
 
$ sudo /sbin/fdisk -lu /dev/sdb | grep NTFS
 
  
..will give you a break down of partitions. In my case, there's just one partition, sdb1, so this is the partition I will mount.
+
<div style="border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;">
 +
hda-diskmount
 +
</div>
  
Now we can go on to create the mount points if needs be. But because my disk contains all my music, I want it to be mounted as if it were my local "Music" folder, so for me the mount point already exists. But if just want to access your disk easily you could just as easily mount it anywhere. Commonly mount points are put in either /mnt/ or /media/. It doesn't matter where - just be consistent when you are doing this.  
+
Example:
To do this run these commands as root:
+
<div style="border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;">
$ cd /mnt/
+
[root@hda ~]$ hda-diskmount<br/>
$ mkdir my_ntfs_disk
+
<nowiki>****************************************************************</nowiki><br/>
 +
Ignoring /dev/sda1 - already in /etc/fstab or mounted<br/>
 +
<nowiki>****************************************************************</nowiki><br/>
 +
Mounted /dev/<strong style="color:green">sdb1</strong> as '<strong style="color:red">/var/hda/files/drives/sdb1</strong>' (read-write)<br/>
 +
You may want your system to mount it every time you boot.<br/>
 +
To do so, add this line VERY CAREFULLY to /etc/fstab and reboot:<br/>
 +
<strong style="color:blue">/dev/sdb1 /var/hda/files/drives/sdb1 ext4 defaults 1 2</strong><br/>
 +
<nowiki>****************************************************************</nowiki><br/>
 +
All Linux, Windows and Mac partitions on non-removable disks have been mounted<br/>
 +
</div>
  
Substituting my_ntfs_disk for whatever you want to call it.  
+
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.<br/>
 +
Just note down the information in bold (green, red and blue). We'll use them below.
  
Now we can mount the disk in the desired location. Again as root run this command:
+
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.
$ mount /dev/sdb1 /mnt/my_ntfs_drive -t ntfs-3g -r -o umask=0222
 
  
This command will make the mounted drive read only. That's great if that's what you want, but for me, since I want to save my music there, I need it to be read and writeable. For this you'll use:
+
==Get your partition UUID==
 +
Each partition in Linux can be identified with a unique identifier. This identifier, the UUID, is what you'll want to use to permanently mount your new partition.
  
$ mount /dev/sdb1 /mnt/my_ntfs_drive -t ntfs-3g -rw -o umask=0000
+
To get the UUID of your new partition, execute this command in a Terminal. Replace <strong style="color:green">sdb1</strong> with the (green) value you received from hda-diskmount.
 +
<div style="border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;">
 +
ls -l /dev/disk/by-uuid/ | grep <strong style="color:green">sdb1</strong>
 +
</div>
  
or in my case
+
Example:
 +
<div style="border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;">
 +
[gb@hda ~]$ <strong>ls -l /dev/disk/by-uuid/ | grep sdb1</strong><br/>
 +
lrwxrwxrwx 1 root root 10 2010-02-18 03:24 9d972abc-1639-44df-a60e-668618d40236 -> ../../sdb1
 +
</div>
  
$ mount /dev/sdb1 /home/USERNAME/Music -t ntfs-3g -rw -o umask=0000
+
In the example above, my UUID is '''9d972abc-1639-44df-a60e-668618d40236'''. Note that down.
  
because I want it mounted in my "Music" file.
+
==Use the hard drive==
  
Remember in both of these commands you'll need to substitute sdb1 with whatever the partition name/number is on your machine. And in the second command USERNAME is your linux username.
+
You have a choice here on how to use your new hard drive storage space. We'll offer some examples.
  
If you now go to your desktop, you should see the drive is mounted there. Click on it to see the contents are there. If you've mounted it as say So far so good? Ok, let's continue.
+
===Use the hard drive for all shares===
 +
If you want all your shares to be on your new hard drive, here's how to do that.
  
What you've achieved so far is a temporary mounting of the drive/partition. That shows it can be done but you'll need to make it permanent otherwise when you reboot it'll disappear again. For this you need to edit fstab with your favourite text editor. As root run:
+
First, you'll need to move all you shares data into your new drive.<br/>
 +
[[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.
 +
<div style="border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;">
 +
mv /var/hda/files/* <strong style="color:red">/var/hda/files/drives/sdb1/</strong>
 +
</div>
 +
You'll get a warning about "cannot move `/var/hda/files/drives' to a subdirectory of itself"; that is fine, ignore that.
  
$ gedit /etc/fstab
+
Next, you'll need to unmount your new hard drive, and remount it as /var/hda/files
  
A text editor window will pop up. Enter this on the last line:
+
<div style="border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;">
 +
umount /var/hda/files/drives/sdb1/
 +
</div>
  
/dev/sdb1  /mnt/my_ntfs_drive    ntfs-3g    ro,defaults,umask=0222 0 0
+
<div style="border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;">
 +
nano /etc/fstab
 +
</div>
  
* change '''ro to rw''' and '''umask=0222 to umask=0000''' if you want it to be writable.
+
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 first two values.<br/>
 +
Instead of /dev/sdb1, enter '''UUID=''' followed by the UUID you found earlier.<br/>
 +
Replace the second value with '''/var/hda/files'''.
  
You'll need to do this for every partition, so if you have several partitions on sdb, the last lines of you fstab may look something like this
+
hda-diskmount gave me:
 +
<div style="border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;">
 +
<strong style="color:blue">/dev/sdb1 /var/hda/files/drives/sdb1 ext4 defaults 1 2</strong>
 +
</div>
  
/dev/sdb1  /mnt/my_ntfs_drive_C    ntfs-3g    ro,defaults,umask=0222 0 0
+
So I should add this instead:
/dev/sdb2  /mnt/my_ntfs_drive_D    ntfs-3g    ro,defaults,umask=0222 0 0
+
<div style="border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;">
/dev/sdb3  /mnt/my_ntfs_drive_E    ntfs-3g    ro,defaults,umask=0222 0 0
+
<strong>UUID=9d972abc-1639-44df-a60e-668618d40236</strong> <strong>/var/hda/files</strong> ext4 defaults 1 2
 +
</div>
  
When you reboot, you should find your data where you want it.  
+
Make sure you do '''not''' change anything else from the blue line you received from hda-diskmount.<br/>
 +
It might not be the same thing as the above example; oyu need to use the values you've received.
  
= Guide to Adding a Hard Drive to Fedora =
+
Save and exit nano (CTRL-X), and try your new mount:
  
This is a good guide, for advanced users, to adding a hard drive to Fedora:
+
<div style="border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;">
 +
mount -a
 +
</div>
  
http://fedoranews.org/tchung/storage/
+
That's it. All your shares in /var/hda/files are now on your new hard drive.
  
And a good fedora 9 guide here, including a section on adding a hard drive here:
+
===Use the hard drive for only some shares===
 +
If you want only some of your shares to be on your new hard drive, here's how to do that.
  
http://www.mjmwired.net/resources/mjm-fedora-f9.html
+
First, you'll need to move your shares data, if any, into your new drive.<br/>
 +
[[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 exists).
 +
<div style="border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;">
 +
mv /var/hda/files/<strong>something</strong> <strong style="color:red">/var/hda/files/drives/sdb1/</strong>
 +
</div>
  
=Partitioning a Brand New Disk=
+
Repeat with every share you want on your new drive.
  
If you have a blank, unpartitioned, drive, you have to 1) partition it and 2) format it.
+
Next, you'll need to make the mount permanent
  
If you want to move this disk to windows machines, you may want to format it as NTFS. To do this, it's best if you do that in Windows.
+
<div style="border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;">
 +
umount /var/hda/files/drives/sdb1<br/>
 +
nano /etc/fstab
 +
</div>
  
 +
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 first value only.<br/>
 +
Instead of /dev/sdb1, enter '''UUID=''' followed by the UUID you found earlier.
  
To make a partition, it's best to use (as root)
+
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 add it as-is:
  
            gparted
+
hda-diskmount gave me:
 +
<div style="border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;">
 +
<strong style="color:blue">/dev/sdb1 /var/hda/files/drives/sdb1 ext4 defaults 1 2</strong>
 +
</div>
  
in your fedora desktop, as it's graphical and will help make decisions.
+
So I should add this:
 +
 
 +
<div style="border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;">
 +
<strong>UUID=9d972abc-1639-44df-a60e-668618d40236</strong> /var/hda/files/drives/sdb1 ext4 defaults 1 2
 +
</div>
 +
 
 +
Save and exit nano (CTRL-X), and try your new mount:
 +
 
 +
<div style="border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;">
 +
mount -a
 +
</div>
 +
 
 +
That's it. Your share(s) are now on your new hard drive.

Revision as of 00:14, 8 March 2010

More hard drives can be added in your Amahi HDA for additional storage space.

We'll detail how to add such hard drives, and how to put them to good use.

Important Notes

  • This is an advanced how-to on how to add additional drives to your HDA.
  • 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.

Step by step instructions

Make sure your drive is detected by the BIOS

It should be listed in the drives that appear when you boot your computer, before the Fedora boot screen appears. You can also enter you BIOS and confirm they appear there.

Make sure your drive is detected by Fedora

Open a Terminal, and type the following command:

ls -1 /dev/disk/by-id/ | egrep -v "part|scsi"

Look for the line that match the hard drive you added.

IDE and SATA hard drives will start with ata- and USB hard drives will start with usb-.
Look for your hard drive model and serial number.

Example:

[gb@hda ~]$ ls -1 /dev/disk/by-id/ | egrep -v "part|scsi"
ata-Hitachi_HDS722020ALA330_JK1131YAGDU37V
ata-ST31000528AS_6VP08W65
ata-ST3750640A_3QD0LJN8
ata-ST3750640A_5QD27A57
ata-WDC_WD10EADS-00L5B1_WD-WCAU4C700358
usb-ST310003_33AS_9E1CA6FFFFFF-0:0
usb-ST375064_0A_2009031309E2-0:0

Install prerequisites

In a Terminal, as root, type the following command:

yum -y install pmount fuse fuse-libs ntfs-3g gparted

Partition and format the hard drive

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.

You should (unless you have a good reason not to) use GParted to partition and format your hard drive.
From the HDA desktop (or using VNC), Open Terminal as root and type gparted to launch the GParted application.

To know what /dev/sd<x> you need to select in GParted, use the following command, in a Terminal:

ls -l /dev/disk/by-id/

Find the row corresponding to your hard drive, and look at the end of the line to identify the correct /dev/sd<x> to select in GParted.

Example:

[gb@hda ~]$ ls -l /dev/disk/by-id/
total 0
lrwxrwxrwx 1 root root 9 2010-02-18 03:24 ata-Hitachi_HDS722020ALA330_JK1131YAGDU37V -> ../../sda
lrwxrwxrwx 1 root root 10 2010-02-18 03:24 ata-Hitachi_HDS722020ALA330_JK1131YAGDU37V-part1 -> ../../sda1
lrwxrwxrwx 1 root root 9 2010-02-18 03:24 ata-ST31000528AS_6VP08W65 -> ../../sdb

In the above example, /dev/sdb would be what I would select in GParted. sda in my primary hard drive, and sdb my second hard drive.

You probably want to create a single partition, and format it as ext3.
Note that Windows can't read ext3 partitions, so if you want to read your disk on Windows, you should format as NTFS instead. And you should do that on Windows before you connect the drive in your HDA.
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.

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.
<a href="http://www.mepisguides.com/Mepis-6/Install/gparted/gparted-set-partition.html">Here's one</a> that looks simple. Just use ext3 instead of fat32 in you follow that tutorial.

Mount the hard drive

A script is provided with Amahi that will look for unmounted partitions in your system, and mount any it finds.

In a Terminal, as root, type the following command:

hda-diskmount

Example:

[root@hda ~]$ hda-diskmount
****************************************************************
Ignoring /dev/sda1 - already in /etc/fstab or mounted
****************************************************************
Mounted /dev/sdb1 as '/var/hda/files/drives/sdb1' (read-write)
You may want your system to mount it every time you boot.
To do so, add this line VERY CAREFULLY to /etc/fstab and reboot:
/dev/sdb1 /var/hda/files/drives/sdb1 ext4 defaults 1 2
****************************************************************
All Linux, Windows and Mac partitions on non-removable disks have been mounted

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.
Just note down the information in bold (green, red and blue). We'll use them below.

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.

Get your partition UUID

Each partition in Linux can be identified with a unique identifier. This identifier, the UUID, is what you'll want to use to permanently mount your new partition.

To get the UUID of your new partition, execute this command in a Terminal. Replace sdb1 with the (green) value you received from hda-diskmount.

ls -l /dev/disk/by-uuid/ | grep sdb1

Example:

[gb@hda ~]$ ls -l /dev/disk/by-uuid/ | grep sdb1
lrwxrwxrwx 1 root root 10 2010-02-18 03:24 9d972abc-1639-44df-a60e-668618d40236 -> ../../sdb1

In the example above, my UUID is 9d972abc-1639-44df-a60e-668618d40236. Note that down.

Use the hard drive

You have a choice here on how to use your new hard drive storage space. We'll offer some examples.

Use the hard drive for all shares

If you want all your shares to be on your new hard drive, here's how to do that.

First, you'll need to move all you shares data into your new drive.
In a Terminal, as root, type the following command. Replace the path in red with the path you received when you ran hda-diskmount.

mv /var/hda/files/* /var/hda/files/drives/sdb1/

You'll get a warning about "cannot move `/var/hda/files/drives' to a subdirectory of itself"; that is fine, ignore that.

Next, you'll need to unmount your new hard drive, and remount it as /var/hda/files

umount /var/hda/files/drives/sdb1/

nano /etc/fstab

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 first two values.
Instead of /dev/sdb1, enter UUID= followed by the UUID you found earlier.
Replace the second value with /var/hda/files.

hda-diskmount gave me:

/dev/sdb1 /var/hda/files/drives/sdb1 ext4 defaults 1 2

So I should add this instead:

UUID=9d972abc-1639-44df-a60e-668618d40236 /var/hda/files ext4 defaults 1 2

Make sure you do not change anything else from the blue line you received from hda-diskmount.
It might not be the same thing as the above example; oyu need to use the values you've received.

Save and exit nano (CTRL-X), and try your new mount:

mount -a

That's it. All your shares in /var/hda/files are now on your new hard drive.

Use the hard drive for only some shares

If you want only some of your shares to be on your new hard drive, here's how to do that.

First, you'll need to move your shares data, if any, into your new drive.
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 exists).

mv /var/hda/files/something /var/hda/files/drives/sdb1/

Repeat with every share you want on your new drive.

Next, you'll need to make the mount permanent

umount /var/hda/files/drives/sdb1
nano /etc/fstab

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 first value only.
Instead of /dev/sdb1, enter UUID= followed by the UUID you found earlier.

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 add it as-is:

hda-diskmount gave me:

/dev/sdb1 /var/hda/files/drives/sdb1 ext4 defaults 1 2

So I should add this:

UUID=9d972abc-1639-44df-a60e-668618d40236 /var/hda/files/drives/sdb1 ext4 defaults 1 2

Save and exit nano (CTRL-X), and try your new mount:

mount -a

That's it. Your share(s) are now on your new hard drive.