Page 1 of 1

Mount Shares Locally - Remove/Delete Share

Posted: Tue Mar 26, 2013 9:35 pm
by highlan
So, I'm mounting my shares locally to use with MythTv, but I'm running into an error. I added a Share for my MythTv files, but decided I didn't like the name so I deleted it and created a new share. I then decided I didn't like that share, so I created a third share Now, when I run the service mount_shares_locally restart (aka service ... restart), I get error (13) saying "Permission denied" for the first share I deleted and I get error (6) "no such device or address" for the second share that I deleted. In summary:

- created share "A", ran service ... restart
- deleted "A", created "B", ran service ... restart (got error 6 for "A")
- deleted "B", created "C", ran service ... restart

Now getting the following errors when running service ... restart

Mounting share ["A"]
mount error (13): Permission denied
Mounting share ["B"]
mount error (6): no such device or address

all other shares mount fine, including the new mount "C".

Any ideas?

Re: Mount Shares Locally - Remove/Delete Share

Posted: Wed Mar 27, 2013 3:16 am
by bigfoot65
Ensure the share permissions and ownership are correct.

Re: Mount Shares Locally - Remove/Delete Share

Posted: Mon Apr 01, 2013 6:10 pm
by highlan
Sorry for the late reply. When I rebooted one time, the error went away. But now, I deleted a share, and it's back. The admin user I used to create the system and install amahi is the owner. I'm not sure what the following permission mean, but they look just like all the others, except the last number. For all the other folders, the number is 2.

drwxrwxr-x 5

I also noticed, that when I delete a share from the dashboard, the corresponding folder in /var/hda/files remains and is not deleted.

Thoughts?

John

Re: Mount Shares Locally - Remove/Delete Share

Posted: Mon Apr 01, 2013 6:19 pm
by bigfoot65
The folder has to be deleted manually by design. You also have to restart mount_shares_locally afterwards.

This prevents accidentally removing data.

[ Post made via Android ] Image

Re: Mount Shares Locally - Remove/Delete Share

Posted: Mon Apr 01, 2013 8:34 pm
by highlan
Ahh! Forcing the user to delete the folder manually makes sense and I knew about having to restart mount_shares_locally, but thanks for confirming.

Any idea on the error (6)?

Re: Mount Shares Locally - Remove/Delete Share

Posted: Tue Apr 02, 2013 5:05 am
by bigfoot65
You may have to remove the mount point for A. It would be something like /mnt/samba/A.

Re: Mount Shares Locally - Remove/Delete Share

Posted: Tue Apr 02, 2013 8:50 am
by highlan
You may have to remove the mount point for A. It would be something like /mnt/samba/A.
That did it! Thanks!