Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Cannot delete share: device or resource busy

Featured Replies

Hi all -

 

I'm encountering an odd error. I have a share called `Time Machine - Jacques` located on `/mnt/disk1/`. I am trying to delete it, but unraid will not allow it:

What happens:

  1. If you try to Delete, rename or change in the GUI it "processes" but nothing happens
  2. Krusader will not let you delete
  3. In the terminal, `rm -rf <directory>` returns "Cannot remove device or resource busy"

 

Details:

  1. There is nothing in the share (confirmed in terminal using ls -alh)
  2. The permissions are identical to other shares (confirmed in terminal)
  3. There are no processes running (confirmed using lsof | grep)
  4. There are no loops running on it (confirmed using losetup)
  5. I've run in Safe Mode and stopped all Containers and VMs
  6. Disk Check ran and came back normal

 

Questions:

  1. Ideas or recommendations?
  2. Can I delete without mounting the array?

 

Thanks

Solved by jacquesgalore

  • Author

I have been able to delete this now (once) via umount, but now the share re-appears every time I reboot.

 

The same thing happens with renames and any settings. Upon reboot, the "Time Machine - Jacques" is back.

  • Author

This appears to be the root of the issue in the boot logs.

 

May 14 07:10:34 Carlino unassigned.devices: Mounting 'Auto Mount' Remote Shares...
May 14 07:10:39 Carlino unassigned.devices: Using Gateway '192.168.50.1' to Ping Remote Shares.
May 14 07:10:45 Carlino emhttpd: shcmd (530): rmdir '/mnt/user/Time Machine - Jacques'
May 14 07:10:45 Carlino shfs: /usr/sbin/zfs destroy -r disk1/Time Machine - Jacques
May 14 07:10:45 Carlino shfs: error: retval 2 attempting 'zfs destroy'
May 14 07:10:45 Carlino root: rmdir: failed to remove '/mnt/user/Time Machine - Jacques': Device or resource busy

 

  • Author
  • Solution

I was able to solve this by:

1. Unmounting the share

2. Using `zfs destroy -r` instead of `rm -rf`

 

It appears that `rm -rf` is "queueing" the command but upon boot the changes are not successful.

 

By using zfs directly I was able to circumvent this.

I have the same issue, how do I unmount the share?

 

I get an error saying it is already unmounted. Still says device or resource is busy :(

  • 8 months later...

I have the same issue (apparently) but it's a pool and can't be accessed (as far as I know) without mounting the array.

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...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.