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.

Need Help with Proper rclone OneDrive Mount Setup - Getting getxattr Errors

Featured Replies

Hi everyone,

I'm relatively new to unRAID and trying to get back up to speed with Linux after about 20 years away. I need help setting up a stable rclone configuration for mounting multiple OneDrive accounts.

My Setup:

  • unRAID 7.2.3

  • 3 OneDrive accounts I want to mount and access via SMB:

    • OneDrive_A (personal account)

    • OneDrive_B (shared account)

    • OneDrive_C (will add later)

  • Cache pool: Kingston NVMe 2TB (ZFS)

  • Array with 4x8TB Seagate IRONWOLF HDDs

Current Approach: I'm currently mounting rclone to /mnt/cache/rclone/OneDrive_xxx and then bind mounting to /mnt/user/OneDrive_xxx so the shares appear in the Shares tab and are accessible via SMB.

Mount script example:

#!/bin/bash
set -euo pipefail
REMOTE="OneDrive_A:"
CACHE_MNT="/mnt/cache/rclone/OneDrive_A"
USER_SHARE="/mnt/user/OneDrive_A"
# Ensure FUSE allow_other
if ! grep -q '^user_allow_other$' /etc/fuse.conf; then
  sed -i 's/^#user_allow_other$/user_allow_other/' /etc/fuse.conf 2>/dev/null || true
  grep -q '^user_allow_other$' /etc/fuse.conf || echo 'user_allow_other' >> /etc/fuse.conf
fi
mkdir -p "$CACHE_MNT" "$USER_SHARE"
# If already mounted, exit
if mountpoint -q "$CACHE_MNT" && mountpoint -q "$USER_SHARE"; then
  exit 0
fi
# Cleanup
umount -l "$USER_SHARE" 2>/dev/null || true
fusermount -uz "$CACHE_MNT" 2>/dev/null || true
pkill -f "rclone.*mount.*OneDrive_A" 2>/dev/null || true
# Mount rclone
rclone mount "$REMOTE" "$CACHE_MNT" \
  --vfs-cache-mode writes \
  --allow-other \
  --default-permissions \
  --dir-cache-time 72h \
  --poll-interval 15s \
  --vfs-cache-max-age 12h \
  --log-level INFO \
  --daemon
# Bind mount to user share
mount --bind "$CACHE_MNT" "$USER_SHARE"
echo "Mounted OneDrive_A"
```
emhttpd: error: malloc_share_locations, 8649: Operation not supported (95): getxattr: /mnt/user/OneDrive_A
emhttpd: error: malloc_share_locations, 8649: Operation not supported (95): getxattr: /mnt/user/OneDrive_B

These repeat constantly and fill up my syslog.

  1. Problems I'm Experiencing:
    Constant getxattr errors in syslog during array startup:

  2. Array shutdown issues: I've had problems where the cache pool stays busy and won't unmount because of the rclone mounts. I've created shutdown scripts that run "At Stopping of Array" to unmount everything, which helps, but I'm not sure if this is the best approach.

My Questions:

  1. Is this the right approach for mounting OneDrive to be accessible via SMB? Should I be using a different mount location?

  2. How do I properly handle the getxattr errors? Are they harmless, or is there a better mounting strategy that avoids them entirely?

  3. What's the community standard for rclone cloud mounts on unRAID? I've seen references to /mnt/user/mount_rclone/ in some GitHub scripts, but that seems to have similar issues.

  4. Is there a recommended way to make rclone mounts appear as native unRAID shares without these complications?

Additional Context:

  • The mounts work fine functionally - I can access files via SMB

  • Array does stop properly now with my shutdown scripts, but I want to make sure this is stable long-term

  • I'm planning to add a third OneDrive account once I get this sorted

Any guidance from experienced unRAID + rclone users would be greatly appreciated! I want to make sure I'm following best practices rather than fighting against the system.

Thanks in advance!

Edited by DockLoco

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.