amahi / disk-wizard

Amahi Disk Wizard plugin
GNU Affero General Public License v3.0
3 stars 7 forks source link

Amahi - Problem assigning share location after adding external hard drive #20

Open beckga opened 6 years ago

beckga commented 6 years ago

I installed a 3 TB external hard drive using disk wizard and when I try to add a new share and point the location to the new drive, it doesn't seem to change the location. I get an error when I attempt to check the size of my new share:

du: cannot read directory '/var/hda/files/drives/Seagate3tb/lost+found': Permission denied 20480 /var/hda/files/drives/Seagate3tb.

Is this because the drive is 3 TB? I didn't see an option in disk wizard to specify it being greater than 2 TB. Your assistance is appreciated.

tmkasun commented 6 years ago

Hi @beckga ,

It seems like a permission issue, You can look in the last fstab entry and check how the mounting permissions are given there. You can do that by ssh to the amahi server run cat /etc/fstab and check for the mounting entry for /var/hda/files/drives/Seagate3tb mount location

beckga commented 6 years ago

Here is what is shown when I do that:

[beck@localhost ~]$ cat /etc/fstab

#

/etc/fstab

Created by anaconda on Thu Feb 25 17:21:24 2016

#

Accessible filesystems, by reference, are maintained under '/dev/disk'

See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info

# UUID=12ef5b39-4e9a-45f2-bd68-7dd813d9e998 / ext4 defaults 1 1 UUID=42e165d0-edfc-45a4-b4b8-e53cc87561bf /boot ext4 defaults 1 2 UUID=f328698f-9f26-4a46-b2fb-08163a819a6d swap swap defaults 0 0 UUID=2d94008a-ee54-431f-937e-9684cc48c318 /var/hda/files/drives/ExtWD1 auto auto,rw,exec 0 0 UUID=a68ab9b1-e390-4f95-acbf-9f002bf29899 /var/hda/files/drives/EXTSG2 auto auto,rw,exec 0 0 UUID=b66ef287-35ac-4e2a-89ef-851f3bf428e2 /var/hda/files/drives/Seagate3tb auto auto,rw,exec 0 0 [beck@localhost ~]$

I have 2 other external HD’s attached (that I can successfully access) and the lines for them look similar. Do you agree or have another suggestion? I have bolded those last entries near the bottom of the file.

Thanks for your assistance.

Sent from my iPad

On Mar 1, 2018, at 9:46 AM, Kasun Thennakoon notifications@github.com wrote:

Hi @beckga ,

It seems like a permission issue, You can look in the last fstab entry and check how the mounting permissions are given there. You can do that by ssh to the amahi server run cat /etc/fstab and check for the mounting entry for /var/hda/files/drives/Seagate3tb mount location

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.