Changes

From Amahi Wiki
Jump to: navigation, search
=Tips=
==Mount Order==
The following guide will outline how to manually order your disks hard drives and mount drives them automatically on boot.
First[[Open Terminal as root|In a Terminal, get as root]], 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 there are four data drives (sda1, sdb1, sdc1, sdd1) and the Operating system assigned to a fifth drive, sde.
Take note of the UUID's for each drive. Easiest to cut and paste UUID's straight from the terminal - no typo's!.
Then edit Edit ''/etc/fstab'' to mount each drive - for novices, easiest to do this using a graphical editor. You might consider first making a copy called fstab.bak (use the "save as" command, close file and then gedit the original fstab again) so that you can recover the original fstab file if you make mistakes.:
<div style="border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;">
nano /etc/fstab
</div>
Then '''very carefully''' add the following line for each disk into the end of the fstab file. Make sure you paste in the right Ensure correct UUID, hard drive number and hard drive file system (ext4 in this case)are added.
UUID=55d9333f-d801-425a-b2af-d65c5966d56f /var/hda/files/drives/drive1 ext4 defaults 1 2
It should look something like the following when lines are added for each of the five drives in this example. Note lines  :'''NOTE:''' Lines beginning with # are comments where the remainder of the line is ignored)
<div style="border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;">
# Mounting Greyhole Drives for Drive Pool.
#
</div>
Save Verify there are no issues by executing the file and quit the editor. To see if that will work at boot time, try withfollowing:
<div style="border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;">
mount -a
</div>
If that gives you there are errors, there is most likely a good chance that this line was not added properly and your . If this is not corrected, the machine may not reboot boot and get stuck mounting hang trying to mount the hard drives!
Note that the ''hda-diskmount'' command had already added lines to mount my OS drive which had two partitions (root or /Once there are no errors, and home)reboot machine:<div style="border: 1px solid #A3B1BF; padding: . 5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;"> Save file and close. Save file and reboot machine. </div>Check that Verify the hard drives have successfully mounted in Amahi hda (Setup - Shares - Storage Pool)the '''HDA Dashboard'''.
In this case, if If all drives mounted successfully, it should look something like this (Ubuntu):
[[File:Gstreet_greyhole_pool.png|options|caption]]
12,424

edits