Changes

From Amahi Wiki
Jump to: navigation, search
no edit summary
=Mount the hard drive=
==Using hda-diskmount script==
A script is provided with Amahi that will look for unmounted partitions in your system, and mount any it finds.
</div>
This might occur if you have made changes to the drive configuration order after you installed Amahi. If you want to stay with the reconfigured drive order, instructions on how to fix this are herein the next section, Manually setting up the disk mount order==Manually setting up the disk mount order == 1. First, get the UUID for each drive by opening a terminal and entering command  Ubuntu:{{Code|Code=gstreet@gstreet-MicroServer:~$ sudo blkid[sudo] password for gstreet:/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"}} 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 the UUID's for each drive. Easiest to cut and paste UUID's straight from the terminal - no typo's! 2. Then 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. Ubuntu: {{Code|Code=sudo gedit /etc/fstab}} 3. Then carefully add the following line for each disk into the end of the fstab file  <div style="border: 1px solid #A3B1BF; padding: .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. Make sure you paste in the right UUID, drive number and drive file system (ext4 in this case). 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. "## Drive1 = Seagate-Alpha2TB in Microserver Bay 1 from left UUID=55d9333f-d801-425a-b2af-d65c5966d56f /var/hda/files/drives/drive1 ext4 defaults 1 2## Drive2 = Seagate-Beta2TB in Microserver Bay 2 from left UUID=5bd5498f-30c1-4780-948e-ca46656507d2 /var/hda/files/drives/drive2 ext4 defaults 1 2## Drive3 = WD-Charlie2TB in Microserver Bay 3 from left UUID=a7337504-376a-4d36-9f7a-1a24c0f55fbd /var/hda/files/drives/drive3 ext4 defaults 1 2## Drive4 = WD-Delta2TB in Microserver Bay 4 from left UUID=8d881dcb-8de3-4621-b9bd-00025196868a /var/hda/files/drives/drive4 ext4 defaults 1 2#</div> Note that the hda-dismount 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 drives in Amahi hda (Setup - Shares - Storage Pool) In my case looked like [img]https://docs.google.com/viewer?pid=explorer&srcid=0B4db0S5lBIq8enc1M0pJM3R1Mzg&docid=1b9781c1bebebe893591963b49cd0ab8%7C714e2385b5a30391311cd1211c8e3b8b&a=bi&pagenumber=1&w=800[/img] 
==Test your hard drive==