Mount Shares Locally - Remove/Delete Share

highlan
Posts: 32
Joined: Mon Oct 01, 2012 1:22 pm

Mount Shares Locally - Remove/Delete Share

Postby highlan » Tue Mar 26, 2013 9:35 pm

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?

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Mount Shares Locally - Remove/Delete Share

Postby bigfoot65 » Wed Mar 27, 2013 3:16 am

Ensure the share permissions and ownership are correct.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

highlan
Posts: 32
Joined: Mon Oct 01, 2012 1:22 pm

Re: Mount Shares Locally - Remove/Delete Share

Postby highlan » Mon Apr 01, 2013 6:10 pm

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

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Mount Shares Locally - Remove/Delete Share

Postby bigfoot65 » Mon Apr 01, 2013 6:19 pm

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
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

highlan
Posts: 32
Joined: Mon Oct 01, 2012 1:22 pm

Re: Mount Shares Locally - Remove/Delete Share

Postby highlan » Mon Apr 01, 2013 8:34 pm

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)?

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Mount Shares Locally - Remove/Delete Share

Postby bigfoot65 » Tue Apr 02, 2013 5:05 am

You may have to remove the mount point for A. It would be something like /mnt/samba/A.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

highlan
Posts: 32
Joined: Mon Oct 01, 2012 1:22 pm

Re: Mount Shares Locally - Remove/Delete Share

Postby highlan » Tue Apr 02, 2013 8:50 am

You may have to remove the mount point for A. It would be something like /mnt/samba/A.
That did it! Thanks!

Who is online

Users browsing this forum: No registered users and 16 guests