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.

Unassigned Devices - Managing Disk Drives and Remote Shares Outside of The Unraid Array

Featured Replies

1 hour ago, Kilrah said:

No. That shouldn't be a problem for anything though.

It is becurse my app data backup is going to that drive. And that is a problem when i restore that it is with root. I will like to do it with nobody 😊

  • Replies 11.9k
  • Views 2.1m
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • It's that self healing feature I built into UD.  It just fixes itself.

  • New release of UD.  Changes: When changing the mount point (which is also the share name), the mount point is checked for a duplicate of a user share or another UD device.  Samba cannot handle

  • Major new release of UD: "Where are the switches?"  The "Pass Through", "Read Only", "Automount", and "Share" switches have been moved to a new Edit Settings dialog.  This is also where the sc

Posted Images

Just now, DanielPT said:

It is becurse my app data backup is going to that drive. And that is a problem when i restore that it is with root. I will like to do it with nobody 😊

Your backup is in archives, right? If so the user/perms of the backed up files are stored in the archive and the drive perms don't matter.

15 minutes ago, dlandon said:

Someone please post the output of this command:

cat /var/state/unassigned.devices/share_names.json
root@Unraid:~# cat /var/state/unassigned.devices/share_names.json
{
    "\/\/KILRAH\/D": "KILRAH_D_SMB",
    "\/\/KILRAH\/unraid": "KILRAH_unraidbackup"
}

 

  • Author

Unzip and copy the attached file:

cp lib.php /usr/local/emhttp/plugins/unassigned.devices/include/lib.php

Wait for about 5 seconds to be sure UD refreshes the GUI and see if you can then mount a drive.

lib.zip

  • Author
20 minutes ago, dlandon said:

Unzip and copy the attached file:

cp lib.php /usr/local/emhttp/plugins/unassigned.devices/include/lib.php

Wait for about 5 seconds to be sure UD refreshes the GUI and see if you can then mount a drive.

lib.zip 30.18 kB · 1 download

No takers?  I guess I'll wait a bit more and release what I have to fix the problem.

Sorry I cannot figure out how to do it, I don't seem to have that directory that I can find.

I don't normally mess around with that type of stuff

  • Author
17 minutes ago, Damienc said:

Sorry I cannot figure out how to do it, I don't seem to have that directory that I can find.

I don't normally mess around with that type of stuff

Go ahead and update UD and give it a try.

17 minutes ago, dlandon said:

Go ahead and update UD and give it a try.

That is working now.
 

Now time to rebuild my Plex Database.

 

Thank You!

1 hour ago, dlandon said:

Go ahead and update UD and give it a try.

Updating has resolved the issue for me. Thank you so much.

7 hours ago, Kilrah said:

Your backup is in archives, right? If so the user/perms of the backed up files are stored in the archive and the drive perms don't matter.

Yea they are :)

But when i  restore with duplicacy it tryes to restore the owner :)

 

Thats why i will like it to just be "nobody" :)

 

 

 

 

14 minutes ago, DanielPT said:

But when i  restore with duplicacy it tryes to restore the owner :)

Where are you restoring? Should not be on the external backup drive...

3 minutes ago, Kilrah said:

Where are you restoring? Should not be on the external backup drive...

Im trying to restore to a share called "Restore"

 

:)

 

image.png.892802d552f929e2f642fcbd16f17768.png

Unassigned devices is not working correctly for me after upgrading to 6.12.8, device is set for automount and it does mount but is not reflected in the UI:

image.thumb.png.6353810ec73559e85d1b0c5e1d287538.png

If i click MOUNT. the button just goes back to the same state

Additionally the SMB share is not created even if it says so in the syslog:

Feb 17 11:36:23 Tower unassigned.devices: Mounting partition 'sdg1' at mountpoint '/mnt/disks/ZCH0859H'...
Feb 17 11:36:23 Tower unassigned.devices: Mount cmd: /sbin/mount -t 'xfs' -o rw,relatime '/dev/sdg1' '/mnt/disks/ZCH0859H'
Feb 17 11:36:23 Tower unassigned.devices: Successfully mounted '/dev/sdg1' on '/mnt/disks/ZCH0859H'.
Feb 17 11:36:23 Tower unassigned.devices: Adding SMB share 'ZCH0859H'.
Feb 17 11:36:23 Tower unassigned.devices: Warning: Unassigned Devices are not set to be shared with NFS.

 

UPDATE:

SMB share is created if I execute the script manually:

/tmp/unassigned.devices/add-smb

 

Edited by bubbl3
Added finding

  • Author
17 minutes ago, bubbl3 said:

Unassigned devices is not working correctly for me after upgrading to 6.12.8, device is set for automount and it does mount but is not reflected in the UI:

image.thumb.png.6353810ec73559e85d1b0c5e1d287538.png

If i click MOUNT. the button just goes back to the same state

Additionally the SMB share is not created even if it says so in the syslog:

Feb 17 11:36:23 Tower unassigned.devices: Mounting partition 'sdg1' at mountpoint '/mnt/disks/ZCH0859H'...
Feb 17 11:36:23 Tower unassigned.devices: Mount cmd: /sbin/mount -t 'xfs' -o rw,relatime '/dev/sdg1' '/mnt/disks/ZCH0859H'
Feb 17 11:36:23 Tower unassigned.devices: Successfully mounted '/dev/sdg1' on '/mnt/disks/ZCH0859H'.
Feb 17 11:36:23 Tower unassigned.devices: Adding SMB share 'ZCH0859H'.
Feb 17 11:36:23 Tower unassigned.devices: Warning: Unassigned Devices are not set to be shared with NFS.

 

UPDATE:

SMB share is created if I execute the script manually:

/tmp/unassigned.devices/add-smb

 

Post diagnostics.

1 minute ago, dlandon said:

Give me the output of this command:

cat /proc/mounts

 

root@Tower:~# cat /proc/mounts
rootfs / rootfs rw,size=65861692k,nr_inodes=16465423,inode64 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,relatime 0 0
tmpfs /run tmpfs rw,relatime,size=65536k,mode=755,inode64 0 0
/dev/sda1 /boot vfat rw,noatime,nodiratime,fmask=0177,dmask=0077,codepage=437,iocharset=iso8859-1,shortname=mixed,flush,errors=remount-ro 0 0
/dev/loop0 /lib squashfs ro,relatime,errors=continue 0 0
overlay /lib overlay rw,relatime,lowerdir=/lib,upperdir=/var/local/overlay/lib,workdir=/var/local/overlay-work/lib 0 0
/dev/loop1 /usr squashfs ro,relatime,errors=continue 0 0
overlay /usr overlay rw,relatime,lowerdir=/usr,upperdir=/var/local/overlay/usr,workdir=/var/local/overlay-work/usr 0 0
devtmpfs /dev devtmpfs rw,relatime,size=8192k,nr_inodes=16465424,mode=755,inode64 0 0
devpts /dev/pts devpts rw,relatime,gid=5,mode=620,ptmxmode=000 0 0
tmpfs /dev/shm tmpfs rw,relatime,inode64 0 0
fusectl /sys/fs/fuse/connections fusectl rw,relatime 0 0
hugetlbfs /hugetlbfs hugetlbfs rw,relatime,pagesize=2M 0 0
cgroup2 /sys/fs/cgroup cgroup2 rw,nosuid,nodev,noexec,relatime,nsdelegate,memory_recursiveprot 0 0
tmpfs /var/log tmpfs rw,relatime,size=131072k,mode=755,inode64 0 0
efivarfs /sys/firmware/efi/efivars efivarfs rw,nosuid,nodev,noexec,relatime 0 0
rootfs /mnt rootfs rw,size=65861692k,nr_inodes=16465423,inode64 0 0
tmpfs /mnt/disks tmpfs rw,relatime,size=1024k,inode64 0 0
tmpfs /mnt/remotes tmpfs rw,relatime,size=1024k,inode64 0 0
tmpfs /mnt/addons tmpfs rw,relatime,size=1024k,inode64 0 0
tmpfs /mnt/rootshare tmpfs rw,relatime,size=1024k,inode64 0 0
nfsd /proc/fs/nfs nfsd rw,relatime 0 0
nfsd /proc/fs/nfsd nfsd rw,relatime 0 0
/dev/sdg1 /mnt/disks/ZCH0859H xfs rw,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota 0 0
/dev/md1p1 /mnt/disk1 xfs rw,noatime,nouuid,attr2,inode64,logbufs=8,logbsize=32k,noquota 0 0
/dev/md2p1 /mnt/disk2 xfs rw,noatime,nouuid,attr2,inode64,logbufs=8,logbsize=32k,noquota 0 0
/dev/md3p1 /mnt/disk3 xfs rw,noatime,nouuid,attr2,inode64,logbufs=8,logbsize=32k,noquota 0 0
/dev/md4p1 /mnt/disk4 xfs rw,noatime,nouuid,attr2,inode64,logbufs=8,logbsize=32k,noquota 0 0
/dev/md5p1 /mnt/disk5 xfs rw,noatime,nouuid,attr2,inode64,logbufs=8,logbsize=32k,noquota 0 0
/dev/md6p1 /mnt/disk6 xfs rw,noatime,nouuid,attr2,inode64,logbufs=8,logbsize=32k,noquota 0 0
/dev/md7p1 /mnt/disk7 xfs rw,noatime,nouuid,attr2,inode64,logbufs=8,logbsize=32k,noquota 0 0
/dev/nvme0n1p1 /mnt/cache btrfs rw,noatime,ssd,discard=async,space_cache=v2,subvolid=5,subvol=/ 0 0
shfs /mnt/user0 fuse.shfs rw,nosuid,nodev,noatime,user_id=0,group_id=0,default_permissions,allow_other 0 0
shfs /mnt/user fuse.shfs rw,nosuid,nodev,noatime,user_id=0,group_id=0,default_permissions,allow_other 0 0
/dev/loop2 /var/lib/docker btrfs rw,noatime,ssd,space_cache=v2,subvolid=5,subvol=/ 0 0
/dev/loop2 /var/lib/docker/btrfs btrfs rw,noatime,ssd,space_cache=v2,subvolid=5,subvol=/ 0 0
/dev/loop3 /etc/libvirt btrfs rw,noatime,ssd,space_cache=v2,subvolid=5,subvol=/ 0 0
nsfs /run/docker/netns/d4f21cba8555 nsfs rw 0 0
nsfs /run/docker/netns/99301db2a02f nsfs rw 0 0
nsfs /run/docker/netns/e2f446f6a4a5 nsfs rw 0 0
nsfs /run/docker/netns/4671951dc6db nsfs rw 0 0
nsfs /run/docker/netns/ea6dae047f70 nsfs rw 0 0
nsfs /run/docker/netns/dcd0116882af nsfs rw 0 0
nsfs /run/docker/netns/3141f5f422ad nsfs rw 0 0
nsfs /run/docker/netns/9130782b52fb nsfs rw 0 0
nsfs /run/docker/netns/7dab268b47f0 nsfs rw 0 0
nsfs /run/docker/netns/6e12348ec98d nsfs rw 0 0
nsfs /run/docker/netns/1b7c59eaca16 nsfs rw 0 0
nsfs /run/docker/netns/86b1c75956dc nsfs rw 0 0
nsfs /run/docker/netns/0f8eedf38d1b nsfs rw 0 0
/dev/sdg1 /mnt/disks/ZCH0859H/incomplete xfs rw,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota 0 0
nsfs /run/docker/netns/225a436b9432 nsfs rw 0 0
nsfs /run/docker/netns/5210094db0a7 nsfs rw 0 0
tmpfs /run/user/0 tmpfs rw,nosuid,nodev,relatime,size=13175704k,nr_inodes=3293926,mode=700,inode64 0 0

Of course this is after i manually executed the smbshare script

  • Author

I see the problem, but I don't understand how it happens.  Give me some time to work on a solution.

@dlandon can confirm the UI is fixed and reflects the disk being mounted, but the SMB share was not created at boot. See the diagnostics attached and the output of cat /proc/mounts , this time I didn't run the add-smb script manually.
 

root@Tower:~# cat /proc/mounts
rootfs / rootfs rw,size=65861692k,nr_inodes=16465423,inode64 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,relatime 0 0
tmpfs /run tmpfs rw,relatime,size=65536k,mode=755,inode64 0 0
/dev/sda1 /boot vfat rw,noatime,nodiratime,fmask=0177,dmask=0077,codepage=437,iocharset=iso8859-1,shortname=mixed,flush,errors=remount-ro 0 0
/dev/loop0 /lib squashfs ro,relatime,errors=continue 0 0
overlay /lib overlay rw,relatime,lowerdir=/lib,upperdir=/var/local/overlay/lib,workdir=/var/local/overlay-work/lib 0 0
/dev/loop1 /usr squashfs ro,relatime,errors=continue 0 0
overlay /usr overlay rw,relatime,lowerdir=/usr,upperdir=/var/local/overlay/usr,workdir=/var/local/overlay-work/usr 0 0
devtmpfs /dev devtmpfs rw,relatime,size=8192k,nr_inodes=16465424,mode=755,inode64 0 0
devpts /dev/pts devpts rw,relatime,gid=5,mode=620,ptmxmode=000 0 0
tmpfs /dev/shm tmpfs rw,relatime,inode64 0 0
fusectl /sys/fs/fuse/connections fusectl rw,relatime 0 0
hugetlbfs /hugetlbfs hugetlbfs rw,relatime,pagesize=2M 0 0
cgroup2 /sys/fs/cgroup cgroup2 rw,nosuid,nodev,noexec,relatime,nsdelegate,memory_recursiveprot 0 0
tmpfs /var/log tmpfs rw,relatime,size=131072k,mode=755,inode64 0 0
efivarfs /sys/firmware/efi/efivars efivarfs rw,nosuid,nodev,noexec,relatime 0 0
rootfs /mnt rootfs rw,size=65861692k,nr_inodes=16465423,inode64 0 0
tmpfs /mnt/disks tmpfs rw,relatime,size=1024k,inode64 0 0
tmpfs /mnt/remotes tmpfs rw,relatime,size=1024k,inode64 0 0
tmpfs /mnt/addons tmpfs rw,relatime,size=1024k,inode64 0 0
tmpfs /mnt/rootshare tmpfs rw,relatime,size=1024k,inode64 0 0
nfsd /proc/fs/nfs nfsd rw,relatime 0 0
nfsd /proc/fs/nfsd nfsd rw,relatime 0 0
/dev/md1p1 /mnt/disk1 xfs rw,noatime,nouuid,attr2,inode64,logbufs=8,logbsize=32k,noquota 0 0
/dev/md2p1 /mnt/disk2 xfs rw,noatime,nouuid,attr2,inode64,logbufs=8,logbsize=32k,noquota 0 0
/dev/md3p1 /mnt/disk3 xfs rw,noatime,nouuid,attr2,inode64,logbufs=8,logbsize=32k,noquota 0 0
/dev/md4p1 /mnt/disk4 xfs rw,noatime,nouuid,attr2,inode64,logbufs=8,logbsize=32k,noquota 0 0
/dev/md5p1 /mnt/disk5 xfs rw,noatime,nouuid,attr2,inode64,logbufs=8,logbsize=32k,noquota 0 0
/dev/md6p1 /mnt/disk6 xfs rw,noatime,nouuid,attr2,inode64,logbufs=8,logbsize=32k,noquota 0 0
/dev/md7p1 /mnt/disk7 xfs rw,noatime,nouuid,attr2,inode64,logbufs=8,logbsize=32k,noquota 0 0
/dev/nvme0n1p1 /mnt/cache btrfs rw,noatime,ssd,discard=async,space_cache=v2,subvolid=5,subvol=/ 0 0
shfs /mnt/user0 fuse.shfs rw,nosuid,nodev,noatime,user_id=0,group_id=0,default_permissions,allow_other 0 0
shfs /mnt/user fuse.shfs rw,nosuid,nodev,noatime,user_id=0,group_id=0,default_permissions,allow_other 0 0
/dev/sdg1 /mnt/disks/ZCH0859H xfs rw,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota 0 0
/dev/loop2 /var/lib/docker btrfs rw,noatime,ssd,space_cache=v2,subvolid=5,subvol=/ 0 0
/dev/loop2 /var/lib/docker/btrfs btrfs rw,noatime,ssd,space_cache=v2,subvolid=5,subvol=/ 0 0
/dev/loop3 /etc/libvirt btrfs rw,noatime,ssd,space_cache=v2,subvolid=5,subvol=/ 0 0
nsfs /run/docker/netns/133a2385364a nsfs rw 0 0
nsfs /run/docker/netns/5e2c60229e3f nsfs rw 0 0
nsfs /run/docker/netns/86b05786ef76 nsfs rw 0 0
nsfs /run/docker/netns/54188258c33f nsfs rw 0 0
nsfs /run/docker/netns/1429a1c211de nsfs rw 0 0
nsfs /run/docker/netns/b06ebc25f551 nsfs rw 0 0
nsfs /run/docker/netns/dcefdc5d840d nsfs rw 0 0
nsfs /run/docker/netns/50061aaae80d nsfs rw 0 0
nsfs /run/docker/netns/58f45d9663bf nsfs rw 0 0
nsfs /run/docker/netns/f1c5a05c5df4 nsfs rw 0 0
nsfs /run/docker/netns/8227e3776579 nsfs rw 0 0
nsfs /run/docker/netns/4583b25e57bb nsfs rw 0 0
nsfs /run/docker/netns/a27582ff11e7 nsfs rw 0 0
/dev/sdg1 /mnt/disks/ZCH0859H/incomplete xfs rw,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota 0 0
nsfs /run/docker/netns/4ef83a37736d nsfs rw 0 0
nsfs /run/docker/netns/eaf7b8eddd9e nsfs rw 0 0
tmpfs /run/user/0 tmpfs rw,nosuid,nodev,relatime,size=13175704k,nr_inodes=3293926,mode=700,inode64 0 0

 

tower-diagnostics-20240217-1455.zip

Edited by bubbl3

  • Author
26 minutes ago, bubbl3 said:

this time I didn't run the add-smb script manually.

Please don't do that.  That is not what that script is for.  It just so happens that that script reloads SMB settings and makes the share appear in this case.  You should never have to use the command line to get UD to work.  Just go to the disk settings and toggle the share switch.  That should enbale SMB for that device.

 

I'm not seeing anything yet, but I'm looking.

  • Author
40 minutes ago, bubbl3 said:

can confirm the UI is fixed and reflects the disk being mounted, but the SMB share was not created at boot. See the diagnostics attached and the output of cat /proc/mounts , this time I didn't run the add-smb script manually.

Give me the output of this command:

ls /etc/samba/unassigned.devices/

 

27 minutes ago, dlandon said:

Give me the output of this command:

ls /etc/samba/unassigned.devices/

 

 

Looks like it's not there:
 

root@Tower:~# ls /etc/samba/unassigned.devices/
/bin/ls: cannot access '/etc/samba/unassigned.devices/': No such file or directory

 

The one there is called unassigned-shares

root@Tower:/etc/samba# ls
lmhosts  smb-fruit.conf  smb-names.conf  smb-shares.conf  smb-unassigned.conf  smb.conf  unassigned-shares/
root@Tower:/etc/samba# cd unassigned-shares/
root@Tower:/etc/samba/unassigned-shares# ls
ZCH0859H.conf


 

Edited by bubbl3

  • Author
18 minutes ago, bubbl3 said:

 

Looks like it's not there:
 

root@Tower:~# ls /etc/samba/unassigned.devices/
/bin/ls: cannot access '/etc/samba/unassigned.devices/': No such file or directory

 

The one there is called unassigned-shares

root@Tower:/etc/samba# ls
lmhosts  smb-fruit.conf  smb-names.conf  smb-shares.conf  smb-unassigned.conf  smb.conf  unassigned-shares/
root@Tower:/etc/samba# cd unassigned-shares/
root@Tower:/etc/samba/unassigned-shares# ls
ZCH0859H.conf


 

Thanks.  Looks like I gave you the wrong path.  Now show the output of this command:

cat /etc/samba/unassigned-shares/ZCH0859H.conf

and

cat /etc/samba/smb-unassigned.conf

 

5 minutes ago, dlandon said:

Thanks.  Looks like I gave you the wrong path.  Now show the output of this command:

cat /etc/samba/unassigned-shares/ZCH0859H.conf

and

cat /etc/samba/smb-unassigned.conf

 

 

 

root@Tower:/etc/samba/unassigned-shares# cat /etc/samba/unassigned-shares/ZCH0859H.conf
[ZCH0859H]
        comment = ZCH0859H
        path = /mnt/disks/ZCH0859H
        browseable = yes
        valid users = emanuele
        write list = emanuele
        vfs objects = catia fruit streams_xattr
        fruit:encoding = native
        case sensitive = auto
        preserve case = yes
        short preserve case = yes
[global]

 

root@Tower:/etc/samba/unassigned-shares# cat /etc/samba/smb-unassigned.conf
include = /etc/samba/unassigned-shares/ZCH0859H.conf

 

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.