<div style="border: 1px solid #A3B1BF; padding: .8em 1em; background-color: #E6F2FF; margin: 0px 1em;">
'''NOTE:''' In the future, The Amahi [https://www.amahi.org/apps/disk-wizard Disk Wizard] application (in Amahi 8 or greater '''ONLY'Development'') will provide provides this capability from the DashboardUI.
</div>
<br />
The purpose of this tutorial is to make partitioning, formatting, and mounting hard drives in the Amahi server simple for those new to Linux.
The scenario is to have an HDA with a single hard drive, but want to connect additional hard drive(s) for increased storage. Examples provided are for adding a single hard drive.
In order to keep this process simple, it's important '''NOT''' to connect additional hard drive(s) until the end of the [[Adding_a_second_hard_drive_to_your_HDA#Preparation|Preparation]] step.
=Disclaimer=
* [https://www.amahi.org 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.
* [http://en.wikipedia.org/wiki/GUID_Partition_Table GUID-partitioned] hard drives (such as those previously used in a Mac or have GPT partition tables) are not supported in this tutorial.
* [httpshttp://wwwen.amahiwikipedia.org Amahi/wiki/GNU_nano nano] 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.* GUID-partitioned drives (such as drives previously in a Mac or have GPT partition tables) are not supported in this tutorial.* ''nano'' is used as the command-line text editor (refer to [http://www.howtogeek.com/howto/42980/the-beginners-guide-to-nano-the-linux-command-line-text-editor/ beginners guide to nano] as needed).
=Prerequisites=
Fedora
<div style="border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px; text-align: left">
yum dnf -y install pmount fuse fuse-libs ntfs-3g util-linux-ng parted nano
</div>
:'''NOTE:''' <code>yum</code> (deprecated) has been replaced with <code>dnf</code> as the package manager for Fedora 23 and greater.
Ubuntu
<div style="border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px; text-align: left">
</div>
:'''NOTE:''' Drives Hard drives must be formatted as '''MBR''' not '''GUID/GPT''' for ''hda-diskmount '' to recognize the diskwork correctly.
=Preparation=
ls -l /dev/disk/by-id/ > before.txt
cat before.txt
</div><br />
:EXAMPLE:
ls -l /dev/disk/by-id/ > after.txt
cat after.txt
</div><br />
:EXAMPLE:
lrwxrwxrwx 1 root root 9 2010-02-18 03:24 ata-ST31000528AS_6VP08W65 -> ../../sdb
:'''FYI:''' IDE/SATA hard drives will start with '''ata-''' and USB hard drives will start with '''usb-'''.<br/>
'''TIP:''' IDE=Partition/SATA hard drives will start with '''ata-''' Format=Compare the difference between before.txt and USB after.txt to determine the new hard drives will start with '''usb-'''drive(s) device name. This can be done automatically.<br/>
=Partition/Format=Compare [[Open Terminal as root|In a Terminal, as root]], execute the difference between before.txt and after.txt to determine the new hard drive(s) device name. This can be done automatically by executingfollowing:
<div style="border: 1px solid #A3B1BF; padding: .5em 1em; background-color: #E6F2FF; margin: 3px 3px 1em 3px;">
diff before.txt after.txt
</div><br />
:EXAMPLE:
lrwxrwxrwx 1 root root 9 2010-02-18 03:24 ata-ST31000528AS_6VP08W65 -> ../../sdb
At this point, partition and format the hard drive(s) if they are new. For hard drive(s) that contain data to be preserved, skip to the [[Adding_Hard_Drives_101Adding_a_second_hard_drive_to_your_HDA#Mount|Mount]] step.
==Command-line (Fedora)==
To partition the hard drive(s), execute the applicable commands (substitute sdX with hard drive device name, such as ''sdb''):
[[Open Terminal as root|In a Terminal, as root]], execute the following:
<blockquote><div style="border: 1px solid #A3B1BF; padding: .5em 1em; background-color: #E6F2FF; margin: 3px 3px 1em 3px;">
parted /dev/sdX
</div></blockquote><br />* Up to 2TB, at the ''(parted)'' prompt, enter::# mklabel msdos (answer ''yes'' when if prompted):# mkpart primary 0% 100%:# quit<br />* Greater than 2TB, at the ''(parted)'' prompt, enter::# mklabel gpt (answer ''yes'' when if prompted):# mkpart primary 0% 100%:# quit<br />
Verify the new partition was created:
<div style="border: 1px solid #A3B1BF; padding: .5em 1em; background-color: #E6F2FF; margin: 3px 3px 1em 3px;">
ls -l /dev/disk/by-uuidid/</div><br />
:EXAMPLE:
lrwxrwxrwx 1 root root 10 Dec 29 9 2010-02-1803:10 1b8597e024 ata-5d95-4474-b093-53099c8c81c9 Hitachi_HDS722020ALA330_JK1131YAGDU37V -> ../../sda1sda lrwxrwxrwx 1 root root 10 Dec 29 18:10 1c1610332010-c69502-4291-aba1-257d3987edf7 -> ../../dm-0 lrwxrwxrwx 1 root root 10 Dec 29 1803:10 b701725124 ata-cb54Hitachi_HDS722020ALA330_JK1131YAGDU37V-438b-92a3-781537c565e6 part1 -> ../../sdbsda1 lrwxrwxrwx 1 root root 10 Dec 29 18:10 c1fe62b3 9 2010-41dc-4a67-8a6b-09f90b7893ba -> ../../dm02-1 lrwxrwxrwx 1 root root 10 Dec 29 1803:10 e0f5a9bd-f52b-431e-89af24 ata-61da70659bdd ST31000528AS_6VP08W65 -> ../../dm-2sdb <span style="color:#FF0000">'''lrwxrwxrwx 1 root root 10 Dec 29 9 2010-02-1803:10 547b073d-e591-491324 ata-b4fbST31000528AS_6VP08W65-7c5084353979 part1 -> ../../sdb1'''</span>
The new partition is named sdX1 (i.e. sdb1 in <span style="color:#FF0000">'''RED'''</span>).
<blockquote><div style="border: 1px solid #A3B1BF; padding: .5em 1em; background-color: #E6F2FF; margin: 3px 3px 1em 3px;">
mkfs.ext4 -j /dev/sdX1
</div></blockquote><br />
Repeat the [[Adding_a_second_hard_drive_to_your_HDA#Partition/Format|Partition/Format]] step for each hard drive to be partitioned and formatted.
==[http://gparted.org GParted] (Ubuntu)==
From the HDA desktop (or using VNC), [[Open_Terminal_as_root|In a terminal as root]] and type '''gparted''' to launch the application.
* Select Device > Create Partition Table... > Advanced > (Choose 'gpt')
* Create partition
:<b>NOTE:</b> [http://gparted.org GParted] supports GUID-partitioned drives, however, the hda-mount script do not support currently.
Mount the hard drive(s)/partition(s) for use in the HDA.
Execute :'''NOTE:''' If you prefer not to use ''hda-diskmount'', refer to [[Adding_a_second_hard_drive_to_your_HDA#hda-diskmount|Troubleshooting ''hda-diskmount]]. [[Open Terminal as root|In a Terminal, as root]], execute the following command. It (it will create drive1, drive2, etc and mount the hard drive(s) automatically):
<div style="border: 1px solid #A3B1BF; padding: .5em 1em; background-color: #E6F2FF; margin: 3px 3px 1em 3px;">
hda-diskmount
</div><br />
:EXAMPLE:
All Linux, Windows and Mac partitions on non-removable disks have been mounted
The line in <span style="color:#0000FF">'''BLUE'''</span> is what you need to copy and add to the bottom of ''/etc/fstab''. This is '''REQUIRED''' for the hard drive(s) to be permanently mounted. There will be multiple lines for multiple hard drive(s) added. Ensure you copy and add '''ONLY''' those which were not present in the ''before.txt'' file. The new hard drive storage space can be used for [[Adding_a_second_hard_drive_to_your_HDA#All Shares|All Shares]], [[Adding_a_second_hard_drive_to_your_HDA#Some Shares|Some Shares]], or the [[Adding_a_second_hard_drive_to_your_HDA#Greyhole Storage Pool|Greyhole Storage Pool]]. Follow the guidance below based on desired usagefor each hard drive.
==All Shares==
Host '''ALL''' shares on the new hard drive.
Move all the shares data to the new drive by executing the following command (replace , replacing path in '''<span style="color: red;">RED</span>''' with the path from the ''hda-diskmount'' output line in <span style="color:#0000FF">'''BLUE'''</span>).<br /> [[Open Terminal as root|In a Terminal, as root]], execute the following:
<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/drive1/</strong>
</div>
:'''NOTE:''' There may be a '''WARNING''' that can be ignored indicating ''/var/hda/files/drives cannot be moved to a subdirectory of itself'' which should be ignored.
Unmount the new hard drive:
umount /var/hda/files/drives/drive1/
</div>
Mount the new hard drive permanently as ''/var/hda/files'', using the by editing ''nano/etc/fstab'' command line editor:
<div style="border: 1px solid #A3B1BF; padding: .5em 1em; background-color: #E6F2FF; margin: 3px 3px 1em 3px;">
nano /etc/fstab
==Some Shares==
Host '''SOME''' shares on the new hard drive.
If you want only Move some of your shares data to be on your the new hard drive, hereby executing the following command (replace path in '''<span style="color: red;">RED</span>''' with the path from the ''hda-diskmount'' output line in <span style="color:#0000FF">'''BLUE'''s how </span>; sharename will be the share to do thatmove to the new drive).<br />
First, you'll want to move your previous shares data, if any, into your new drive.<br/>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).<br/>[[Open Terminal as root|In a Terminal, as root]], type execute 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).:
<div style="border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;">
mv /var/hda/files/<strong>somethingsharename</strong> <strong style="color:red">/var/hda/files/drives/drive1/</strong>
</div>
Repeat the process with every share to be moved to the new drive.
Repeat with every share you want on your Unmount the new hard drive. Next, you'll need to make the mount permanent:
<div style="border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;">
umount /var/hda/files/drives/drive1<br/> nano /etc/fstab
</div>
In nano, youMount the new hard drive permanently by editing ''ll need to add a new line at the bottom. Take the line that hda-diskmount gave you, and insert that.<br/> So, following previous examples, I should add thisetc/fstab'': <div style="border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px; text-align: left;"> <span style="color: blue;">UUID=9d972abc-1639-44df-a60e-668618d40236 nano /varetc/hda/files/drives/drive1 ext4 defaults 1 2</span>fstab
</div>
Add the line to ''/etc/fstab'' provided in the ''hda-diskmount'' output in '''<span style="color: blue;">BLUE</span>'''.
:EXAMPLE /etc/fstab:
#
# /etc/fstab
# Created by anaconda on Sat Nov 9 01:46:39 2013
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
UUID=1ebbf241-528c-465e-889f-acc15400dd8c / ext4 defaults 1 1
UUID=087b15a5-c3ca-4615-b6ee-bf5f399a803e /boot ext4 defaults 1 2
UUID=75346b8e-b162-458c-b0e9-a8d48ec2bc82 swap swap defaults 0 0
UUID=ad85eeb9-18f0-4b85-9bfa-b88a5d1489b3 swap swap defaults 0 0
<span style="color:#0000FF">'''UUID=547b073d-e591-4913-b4fb-7c5084353979 /var/hda/files/drives/drive1 ext4 defaults 1 2'''</span>
Verify the hard drive(s)/partition(s) configuration is correct in ''/etc/fstab''.
Save and exit nano (CTRL-XNext, Y, ENTER), and try your new mountexecute the following:
<div style="border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;">
mount -a
ls /var/hda/files/drives/drive1
</div>
The last command will display contents of the new hard drive. All shares are now located on the new hard drive.
That last command should show you '''<u>HDA Dashboard Update</u><br />'''The location of each share that was moved to the content of you new hard drivewill need updated. Select ''Setup'' followed by the ''Shares'' section. Expand each share that was moved individually and change the location (path) accordingly.
NowFor example, you need to update the original movies location of the moved shares within Amahi. Go to your was <strongspan style="color:red">Amahi Dashboard/var/hda/files/movies</strongspan>, click on but the new location might be <strongspan style="color:blue">Setup</strong>, then <strong>Sharesvar/hda/files/drives/drive1/movies</strongspan>.
Click on one of the Repeat for any other 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 locationhard drive. Verify these shares are accessible from another machine within your network.
For example, the original movies location was'''NOTE: <span style="color:red">/var/hda/files/movies</span><br/>The new location might be: <span style="color:blue">/var/hda/files/drives/drive1/movies</span> Repeat for any other shares that you have moved. Check that you can access these shares from another machine within your network. Finally, if you have ''' If any services that depend on the location of these sharesa moved share, make sure ensure they are configured to use the new share location. For example, if you have a [https://www.amahi.org/apps/dlna DLNA server ] is installed, check its the configuration files file to make sure that verify it can find any media folders that have been movedthe new share location. Secondly, <em>check validate that that all such services start correctly and behave as expected</em>. If the service doesn't start, it may be that it is testing 's looking for a specific share location during the service startup. Check the startup files in <strong>/etc/init.d</strong> to see if this is the case. That's it. Your share(s) are now on your new hard drivestart up.
==Greyhole Storage Pool==
USe Use new hard drive for [[Storage_pooling|Greyhole Storage Pool]].
[[Open Terminal as root|In a Terminal, as root]], edit mount the new hard drive permanently by editing ''/etc/fstab'':
<div style="border: 1px solid #A3B1BF; padding: .5em 1em; background-color: #E6F2FF; margin: 3px 3px 1em 3px;">
nano /etc/fstab
</div>Add the line to ''/etc/fstab'' provided in the ''hda-diskmount'' output in '''<span style="color: blue;">BLUE<br /span>'''.:EXAMPLE/etc/fstab:
#
# /etc/fstab
UUID=ad85eeb9-18f0-4b85-9bfa-b88a5d1489b3 swap swap defaults 0 0
<span style="color:#0000FF">'''UUID=547b073d-e591-4913-b4fb-7c5084353979 /var/hda/files/drives/drive1 ext4 defaults 1 2'''</span>
The line in <span style="color:#0000FF">'''BLUE'''</span> is what you need to copy and add to the bottom of ''/etc/fstab''. This is '''REQUIRED''' for the hard drive(s) to be permanently mounted.
There will be multiple lines for multiple hard drive(s) added. Ensure you copy and add '''ONLY''' those which were not present in the ''before.txt'' file.
Verify the hard drive(s)/partition(s) configuration is correct in ''/etc/fstab''.
=Verify/Test=
Verify the hard drive/partition is mounted. [[Open Terminal as root|In a Terminal, as root]], execute the following:
<div style="border: 1px solid #A3B1BF; padding: .5em 1em; background-color: #E6F2FF; margin: 3px 3px 1em 3px;">
df -h
</div><br />
:EXAMPLE:
=Tips=
==Mount Order==
The following guide will outline how to manually order your disks hard drives and mount drives them automatically on boot.
1. First[[Open Terminal as root|In a Terminal, as root]], get executing the following command to obtain the UUID for each hard drive by opening a terminal and entering command :<div style="border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;"> blkid<pre/div>gstreet@gstreet-MicroServer:~$ sudo blkid[sudo] password for gstreetEXAMPLE: /dev/sda1: LABEL="Seagate-Alpha2TB" UUID="55d9333f-d801-425a-b2af-d65c5966d56f" TYPE="ext4" /dev/sdb1: LABEL="Seagate-Beta2TB" UUID="5bd5498f-30c1-4780-948e-ca46656507d2" TYPE="ext4" /dev/sdc1: LABEL="WD-Charlie2TB" UUID="a7337504-376a-4d36-9f7a-1a24c0f55fbd" TYPE="ext4" /dev/sdd1: LABEL="WD-Delta2TB" UUID="8d881dcb-8de3-4621-b9bd-00025196868a" TYPE="ext4" /dev/sde1: LABEL="root" UUID="4d6f8004-d190-4234-a03b-b68de988abf0" TYPE="ext4" /dev/sde3: LABEL="home" UUID="d0531fa1-9311-4d53-b838-f35898adbd98" TYPE="ext4" /dev/sde5: LABEL="swap" UUID="3c39206c-ba60-47ff-a1fe-f5821b2ab543" TYPE="swap"</pre></div> In this case, the user has four data drives (sda1, sdb1, sdc1, sdd1) and the Operating system assigned to a fifth drive, sde.
Take note of In this case, there are four data drives (sda1, sdb1, sdc1, sdd1) and the UUID's for each Operating system assigned to a fifth drive, sde. Easiest to cut and paste UUID's straight from the terminal - no typo's!
2. Then edit /etc/fstab to mount Take note of the UUID's for each drive - for novices, easiest to do this using a graphical editor. You might consider first making a copy called fstab.bak (use the "save as" command, close file Easiest to cut and then gedit the original fstab again) so that you can recover paste UUID's straight from the original fstab file if you make mistakesterminal.
Edit ''/etc/fstab'' to mount each drive:
<div style="border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;">
sudo nano /etc/fstab
</div>
Then '''very carefully''' add the following line for each disk into the end of the fstab file. Ensure correct UUID, hard drive number and hard drive file system (ext4 in this case) are added.
3. :EXAMPLE: Then '''very carefully''' add the following line for each disk into the end of the fstab file. Make sure you paste in the right UUID, drive number and drive file system (=55d9333f-d801-425a-b2af-d65c5966d56f /var/hda/files/drives/drive1 ext4 in this case). defaults 1 2
<div style="border: 1px solid #A3B1BF; padding: It should look something like the following when lines are added for each of the five drives in this example.5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;">UUID=55d9333f-d801-425a-b2af-d65c5966d56f /var/hda/files/drives/drive1 ext4 defaults 1 2</div>
It should look something like the following when lines are added for each of the five drives in this example. Note lines beginning with # are comments where the remainder of the line is ignored) <div style="border: 1px solid #A3B1BF; paddingEXAMPLE: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;">
# Mounting Greyhole Drives for Drive Pool.
#
#
#
</div>
Save :'''NOTE:''' Lines beginning with # are comments where the file and quit remainder of the editor. To see if that will work at boot time, try withline is ignored Verify there are no issues by executing the following:
<div style="border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;">
mount -a
</div>
If there are errors,most likely a line was not added properly. If this is not corrected, the machine may not boot and hang trying to mount the hard drives!
If that gives you Once there are no errors, there is a good chance that this line was not added properly and your reboot machine may not :<div style="border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;"> reboot and get stuck mounting </div>Verify the hard drives!have successfully mounted in the '''HDA Dashboard'''.
Note that the hda-diskmount command had already added lines to mount my OS drive which had two partitions (root or /, and home). Save file and close. 4. Save file and reboot machine. 5. Check that drives have successfully mounted in Amahi hda (Setup - Shares - Storage Pool) In this case, if If all drives mounted successfully, it should look something like this (Ubuntu):
:EXAMPLE:
[[File:Gstreet_greyhole_pool.png|options|caption]]
:'''NOTE:''' This can take a ''long'' time to complete! Recommend starting it in the evening so it will be completed the next day.
[[Open Terminal as root|In a Terminal, as root]], type the execute following command. Replace (replace '''sdb1''' with the (<strong style="color:greenblue">sdb1BLUE</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;">
e2fsck -cn /dev/<strong style="color:green">'''sdb1</strong>'''
</div>
You'll receive a message stating '''WARNING!!!''' ''Running e2fsck on a mounted filesystem may cause SEVERE filesystem damage. Do you really want to continue (y/n)?''<br/>
Answer ''yes''. The <code>-cn</code> option we're using can safely be used on mounted file systems.
==Spin Down Hard Drives==
Low power is a good thing to have in servers. If you do not use your server very often, you may want to force the hard drives to spin down faster than the default. Here is how.
First ensure ''hdparm'' package is installed:
sudo dnf install hdparm
To force to spin down after 10 minutes of being idle, add these lines to <code>/etc/rc.local</code>:
<pre>
# power drives down after 10 minutes idle
/sbin/hdparm -S120 /dev/sda
/sbin/hdparm -S120 /dev/sdb
...
</pre>
Most drives will power down on their own without doing this.
You'll receive Once stopped, the drive may take as long as 30 seconds to respond to a warning that says subsequent disk access, though most drives are much quicker. The encoding of the -S timeout value is somewhat peculiar. A value of zero means "timeouts are disabled"WARNING!!! : the device will not automatically enter standby mode. Running e2fsck on Values from 1 to 240 specify multiples of 5 seconds, yielding timeouts from 5 seconds to 20 minutes. Values from 241 to 251 specify from 1 to 11 units of 30 minutes, yielding timeouts from 30 minutes to 5.5 hours. A value of 252 signifies a timeout of 21 minutes. A value of 253 sets a mounted filesystem vendor-defined timeout period between 8 and 12 hours, and the value 254 is reserved. 255 is interpreted as 21 minutes plus 15 seconds. Note that some older drives may cause SEVERE filesystem damage have very different interpretations of these values. Do It may make the system run cooler and power efficient (especially on a Home Server you really want to continue (y/nare rarely using all of the pool drives at the same time)?"<br/>Answer ''yes''. The -cn option we're using can safely be used on mounted filesystems.
=Troubleshooting=
==hda-diskmount==If ''hda-diskmount'' does not mount the hard drive, or you can manually prefer to do it. Complete manually, complete the following steps:
* Create the mount point (choose one '''NOT''' in use)[[Open Terminal as root|in a Terminal, as root]] by executing the following:
<blockquote><div style="border: 1px solid #A3B1BF; padding: .5em 1em; background-color: #E6F2FF; margin: 3px 3px 1em 3px;">
mkdir -p /var/hda/files/drives/drive1
</div></blockquote><br />* Identify the hard drive to mount and copy the UUID from the output that corresponds to the hard drive (i.e. sdb)
<blockquote><div style="border: 1px solid #A3B1BF; padding: .5em 1em; background-color: #E6F2FF; margin: 3px 3px 1em 3px;">
ls -l /dev/disk/by-uuid/
</div></blockquote><br />
:EXAMPLE:
:The UUID for sdX1 (i.e. sdb1 is <span style="color:#FF0000">'''RED'''</span>).
* Add the following to the end of ''/etc/fstab'', replacing the UUID as captured in the previous step
<blockquote><div style="border: 1px solid #A3B1BF; padding: .5em 1em; background-color: #E6F2FF; margin: 3px 3px 1em 3px;">
nano /etc/fstab
</div></blockquote><br />
:EXAMPLE:
#
:The new entry will be mounted as ''/var/hda/files/drives/drive1'' (i.e. sdb1 in '''<span style="color:#0000FF">BLUE</span>''')
* Mount the hard drive
<blockquote><div style="border: 1px solid #A3B1BF; padding: .5em 1em; background-color: #E6F2FF; margin: 3px 3px 1em 3px;">
mount -a
</div></blockquote><br />
:If all goes well, there should not be any output. If there are errors, stop and diagnose the problem.
* Accomplish [[Adding_Hard_Drives_101#Verify/Test|Verify/Test]] step to ensure the hard drive is properly mounted.<br />
Repeat this process for each hard drive to be mounted.
==Partitions > 2.1TB==
If by following this tutorial you are unable to mount hard drives with partitions > 2.1TB, refer to the [[Partitions_Over_2.1_TB|Partitions over 2.1TB]] guidance.
=Help=
If you need assistance, please post in the [https://forums.amahi.org Amahi Forums] or receive '''LIVE''' support on the [http://talk.amahi.org Amahi IRC channel].