Page 1 of 1

SOLVED: Add second drive containing files

Posted: Mon Mar 09, 2020 9:51 am
by prinzy
Today I started to migrate from Windows Home Server 2011 to Amahi... On WHS I had 2 HDD's (1 for WHS and 1 for data / files)
Installation and set up went all good. During installation I only enabled 1 HDD for the installation.

Now I would like to add the other HDD as well, but it contains all my data so I'm not sure how to do this and I really want to be cautious.
I read the Wiki several times, but I couldn't figure out how to safely add the drive without losing my data.

Assistance with correctly adding the second drive would be much appreciated.... :?

Re: Add second drive containing files

Posted: Mon Mar 09, 2020 2:33 pm
by bigfoot65
Follow the wiki guidance but skip the partition and format steps.

There is also guidance on the internet that might help.

Re: Add second drive containing files

Posted: Wed Mar 11, 2020 4:35 am
by prinzy
Thanks! I've managed to mount the drives.. All files still available :) I also pointed all the shares to the new drive (Drive3)
Now I can view all of the files, but not able to copy, move or delete. I have tried to chmod -R (775) and chown (admin), but it does not apply on the files, only the folders.
See below how I set up my /etc/fstab:
UUID=368bf68c-c883-456c-b82b-977938b37701 / ext4 defaults 1 1
UUID=2c2ee51d-dc07-46a1-8ea4-743caa95f0a1 /boot ext4 defaults 1 2
UUID=da8db931-8970-4dd8-b314-da85a799d718 /home ext4 defaults 1 2
UUID=bd4684d5-6a3a-4479-ab05-08ca6752908f swap swap defaults 0 0
UUID=0A8ACED18ACEB889 /var/hda/files ntfs-3g rw,user,fmask=0113,dmask=0002,uid=500,gid=100,noatime 1 2
UUID=A0665771665746E6 /var/hda/files/drives/drive4 ntfs-3g rw,user,fmask=0113,dmask=0002,uid=500,gid=100,noatime 1 2
I also don't see drive1 and drive2 anymore after pointing all shares to the new drive.
Any step I missed.. I would like to copy all of my files to the corresponding Amahi share.

Re: Add second drive containing files

Posted: Wed Mar 11, 2020 6:32 pm
by bigfoot65
Also best to reset permissions on shares using the dashboard. There is an option on each share to reset permissions which will apply to the folder and all files within.

If you can see the files, that's good.

You have too many options on the lines in the fstab. That could be causing the issue.

As you can tell from the adding a second hard drive to your HDA guidance, you don't need much. Obviously for a different hard drive format, you need the ntfs-3g, but most of the other options are noise that is not needed. This could be part of your problem.

I would recommend trying:
ntfs-3g defaults 1 2
after the mount point and that's it.

Re: Add second drive containing files

Posted: Thu Mar 12, 2020 9:25 am
by prinzy
This actually worked and my Amahi server is now fully set up.
Thank you so much! I never would have figured this out myself.

Re: Add second drive containing files

Posted: Thu Mar 12, 2020 3:09 pm
by bigfoot65
No problem.

Happy to help.

Marking as resolved.