Changes

From Amahi Wiki
Jump to: navigation, search
no edit summary
<div style="border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px; text-align: left">
yum -y install pmount fuse fuse-libs ntfs-3g gparted<br/><br/>
wget -q -O /usr/sbin/hda-diskmount2 http://dl.dropbox.com/u/3022105/Amahi/hda-diskmount2
 
chmod +x /usr/sbin/hda-diskmount2
</div>
 
Note: hda-diskmount2 is an updated version of the hda-diskmount script that comes with Amahi. Upcoming versions of Amahi will include this new version.
=Partition and format the hard drive=
<div style="border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;">
hda-diskmount2diskmount
</div>
Example:
<div style="border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px; text-align: left;">
[root@hda ~]$ hda-diskmount2diskmount<br/>
<nowiki>****************************************************************</nowiki><br/>
Ignoring /dev/sda1 - already in /etc/fstab or mounted<br/>
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-diskmount2 diskmount script.
==Test your hard drive==
Note that this step can take a ''long'' time to complete! You'll probably want to start it in the evening, to have it completed in the morning.
To do so, [[Open Terminal as root|in a Terminal, as root]], type the following command. Replace <strong style="color:green">sdb1</strong> with the (green) value you received from hda-diskmount2diskmount.
<div style="border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;">
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-diskmount2diskmount.
<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>
In nano, you'll need to add a new line at the bottom. Take the line that hda-diskmount2 diskmount gave you (the blue one), and change the second value (the path).<br/>
Replace the second value with '''/var/hda/files'''.
hda-diskmount2 diskmount gave me:
<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/sdb1</strong> ext4 defaults 1 2</span>
</div>
Make sure you do '''not''' change anything else from the blue line you received from hda-diskmount2diskmount.<br/>
It might not be the same thing as the above example; you need to use the values you've received.
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 the following command. Replace the path in red with the path you received when you ran hda-diskmount2diskmount. 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>
In nano, you'll need to add a new line at the bottom. Take the line that hda-diskmount2 diskmount gave you, and insert that.<br/>
So, following previous examples, I should add this:
</div>
In nano, you'll need to add a new line at the bottom. Take the line that hda-diskmount2 diskmount gave you, and insert that.<br/>
So, following previous examples, I should add this: