Cannot delete AFP user share


Recommended Posts

I am using Unraid Beta 14

I made a user share called Time Machine Backup that I now want to delete.  I cannot seem to delete it.  I expect that because of some permission issue.  I can telnet into my server as root but do not know the command to delete the share.

 

Any help is appreciated.  Thanks.

Link to comment

The share must be empty before it can be deleted. AFP also adds some hidden files that must be removed.

 

1. Disable SMB, AFP and NFS for the share.

2. Connect with Telnet or use an attached keyboard and monitor. Login as root.

3. Enter

rm /mnt/user/share name/*
rm /mnt/disk1/share name/.*

The second command may need to be repeated for disk2, disk3, etc.

4. Delete the share using the web GUI.

Link to comment

Thank you for the response. 

 

My share is called Time Machine Backup.  When I try the command      rm /mnt/disk1/Time Machine Backup/*  I get...

 

rm: cannot remove `/mnt/disk1/Time': No such file or directory

rm: cannot remove `Machine': No such file or directory

rm: cannot remove `Backup/*': No such file or directory

 

 

There must be some kind of syntax that I am unaware of.  I am a linux idiot and don't know console commands for ffiles and folders  The share I want to delete is only on disk one.  Any advice?

 

Link to comment

I changed the name of the share to a single word (Time) for simplicity.  Still no luck.  The output is below. 

 

 

root@Tower:~# rm /mnt/disk1/Time/.*

rm: cannot remove `/mnt/disk1/Time/.': Is a directory

rm: cannot remove `/mnt/disk1/Time/..': Is a directory

rm: cannot remove `/mnt/disk1/Time/.AppleDB': Is a directory

root@Tower:~# root@Tower:~# rm /mnt/disk1/Time/.*

rm: cannot remove `/mnt/disk1/Time/.AppleDB': Is a directory

root@Tower:~#

 

Link to comment
  • 5 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.