Changes

From Amahi Wiki
Jump to: navigation, search
==All Shares==
Host '''ALL''' shares on the new hard drive by moving all the shares data to the new drive.<br/>
If you want all your shares to be on your new hard drive, here's how to do that.
 
First, you'll want to move all you 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.<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/drive1/</strong>
</div>
You'll get a warning about "cannot move `/var/hda/files/drives' to a subdirectory of itself"; that is fine, ignore that.
Next, youThere will be a '''WARNING''' indicating ''ll need to unmount your new hard drive, and remount it as /var/hda/files/drives cannot be moved to a subdirectory of itself''. This is nothing to worry about and can be ignored.
Next, ''unmount'' the new hard drive and remount it as ''/var/hda/files''
<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/
</div>
To mount the new hard drive permanently, add a new line at the bottom of ''/etc/fstab''.
<div style="border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;">
nano /etc/fstab
</div>
Use the line provided in the hda-diskmount result (the blue one) and change the second value (the path). Replace the second value with ''/var/hda/files''.
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).<br/>Replace the second value with '''/var/hda/files'''. hda-diskmount gave meORIGINAL EXAMPLE:
<div style="border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;">
<span style="color:blue">UUID=9d972abc-1639-44df-a60e-668618d40236 <strong>/var/hda/files/drives/drive1</strong> ext4 defaults 1 2</span>
</div>
 So I should add this insteadMODIFIED EXAMPLE:
<div style="border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;">
UUID=9d972abc-1639-44df-a60e-668618d40236 <strong>/var/hda/files</strong> ext4 defaults 1 2
</div>
Make sure you do '''notDO NOT''' change anything else from the blue line you received from in the hda-diskmountresult. Now execute:<br/>It might not be the same thing as the above example; you need to use the values you've received. Save and exit nano (CTRL-X, Y, ENTER), 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
ls /var/hda/files/
</div>
 
The last command will display contents of the new hard drive. All shares are now on the new hard drive.
12,424

edits