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


dlandon

Recommended Posts

On 9/25/2021 at 6:23 PM, JorgeB said:

This means the devices have all the same ID, quite common with USB devices, in this case:

 

Sep 23 22:18:59 Tower kernel: scsi 8:0:0:0: Direct-Access     JMicron  Generic          0209 PQ: 0 ANSI: 6

 

That won't work with Unraid, it requires each device to have a unique identification.

Is there any chance to update the behavior to identify the devices by their address/bus/port? Like I did for pass through them into VMs?

Link to comment
8 hours ago, docfallingapart said:

Sounds great. If not I'll let you know. Thanks.

I updated to the new version (2021.09.26) . Unfortunately, I'm getting a different but similar error. Looks the same expect the last line number has changed.  Everything does seem to be working fine. If you need anything from me, please let me know.

 

Warning: syntax error, unexpected '!' in Unknown on line 41 in /usr/local/emhttp/plugins/unassigned.devices/include/lib.php on line 1816

Link to comment
3 hours ago, snowborder714 said:

Are you able to have an UD drive auto-mount and be passed through (for VM usage)?  It seems that I can't have both of these options enabled at the same time.

They are incompatible with each other.   Passing a drive through to a VM removes it from Unraid control when the VM starts.

 

Perhaps if you explain why you both want to mount the drive at the UnRaid level and pass the drive through to a VM we might be able to suggest a better approach.

Link to comment
3 hours ago, itimpi said:

They are incompatible with each other.   Passing a drive through to a VM removes it from Unraid control when the VM starts.

 

Perhaps if you explain why you both want to mount the drive at the UnRaid level and pass the drive through to a VM we might be able to suggest a better approach.

 

Good to know.  It was just a misunderstanding on my end as I was trying to get a VM to auto-start with the UD disk attached (being used for security camera footage storage).  I changed it to just auto-mount and removed passed through and the VM now auto-starts just fine.

Thanks for the help and clarification.

Link to comment

I have a small problem mounting some of my encrypted discs.

 

I'm trying to migrate everything from my old server to a new unraid Volume and have to mount all my encrypted pre-filled HDDs for that to copy the files to a new Volume.

Some of my HDDs show up correctly as LUKS with the mount option, some are not recognized and only format is available.

 

Checking them, I can see the difference.

The LUKS mountable drives have an encrypted partion filling the whole drive, while the unrecognized drives are fully encrypted with a partition in the encrypted container. So "nothing visible" without mounting them.

 

Is there any way to tell UD that those are LUKS encrypted drives containing EXT4 partitions so I can mount them and migrate the files?

 

Thanks in advance, very new to unraid.

Edited by Hutschipferd
Link to comment

Apologies if this is covered in the previous 252 pages but has consideration been given to adding the ability to mount and/or create disk/partition images (typically using dd in the background)

 

Perhaps niche but genuinely useful especially if RO mode is an option.

Link to comment
4 hours ago, NAS said:

Apologies if this is covered in the previous 252 pages but has consideration been given to adding the ability to mount and/or create disk/partition images (typically using dd in the background)

 

Perhaps niche but genuinely useful especially if RO mode is an option.

Are you talking about a VM vdisk?

Link to comment

Not a VM thing just a normal raw imaging action such as:

 

`dd if=/dev/sdX of=/mnt/mybackup.img`

 

or in reverse

 

`dd if=mnt/mybackup.img of=/dev/sdX`

 

There are many other options such as compressed images, partition images etc but all are just variations on the theme of disk image handling.

Link to comment

Hey,

 

I am trying to install unassigned.devices-plus from https://github.com/dlandon/unassigned.devices/blob/master/unassigned.devices-plus.plg to access my exFat drives but the installation process failed with simple-xml parse errors (error log attached).

 

Has anyone else had this issue or has any idea what I can do?

 

Thx Ingmar

error.txt

Link to comment
23 minutes ago, igoehr said:

Hey,

 

I am trying to install unassigned.devices-plus from https://github.com/dlandon/unassigned.devices/blob/master/unassigned.devices-plus.plg to access my exFat drives but the installation process failed with simple-xml parse errors (error log attached).

 

Has anyone else had this issue or has any idea what I can do?

 

Thx Ingmar

error.txt 209.87 kB · 0 downloads

Working fine for me.  You might try a reboot.

Link to comment

So . . . i had a VM where i set a share to an unassigned disk. This VM would create files on the disk. However, now i'm unable to delete these files. 

 

When running new permissions or docker safe new perms, i cannot 'select' the disks to redo their persmissions.

How would i get control again over the disk files, without simply formatting?

Link to comment

Hey, I'm hoping someone can advise me and resolve this issue.

 

So I'm new to Unraid and I'm just starting out. I'm using my Unraid server mainly for Docker. Which includes transmission,sonarr and radarr.  I have all my Movies and TV Shows stored on my synology NAS. So then i  decided the best way to get these folders within Unraid would be to use Unassigned Devices plugin. So i got my SMB of both the MOVIES and TV Shows folders in Unraid.

 

The paths to these are mnt/remotes/Movies and mnt/remotes/TV Shows. When i installed radarr and Sonarr this points to  folders called /movies and /tv.

 

This is where the issue happens.../movies works fine and i can mount that into Radarr and it just works fine. But when i go to /tv folder it shows a empty folder. If i go into Protainer i can see that /mnt/remotes/TV Show is pointing to /tv folder but it will not show any the tv shows in there. I have tried editing my .env file and writing it like this "mnt/remotes/TV Shows" due to the space being in the name but that completely broke the mount.

 

Any ideas please?

 

Link to comment
37 minutes ago, Dialatech2303 said:

The paths to these are mnt/remotes/Movies and mnt/remotes/TV Shows

Can you see these files in something other than the dockers? If so, then you have a problem with the docker and not with UD. You can go directly to the correct support thread for any of your dockers by clicking on its icon and selecting Support.

 

Are you specifying slave mode in the mapping?

 

Link to comment

Hello,

Via the view of the active processes I noticed that Unraid constantly tries to scan any external IP addresses for port 445 (SMB):

Portscan.PNG

 

Further investigation has revealed that the Unassigned.Devices plugin seems to be the culprit.

root@ADL15-SRV01:~# grep -rnw '/boot/' -e '/dev/tcp'
root@ADL15-SRV01:~# grep -rnw '/usr/' -e '/dev/tcp'
/usr/local/emhttp/plugins/unassigned.devices/scripts/port_ping.sh:21:        timeout -s 5 $timeout bash -c "(echo >/dev/tcp/${ip}/${port}) &>/dev/null && echo $ip" 2>/dev/null &
/usr/local/emhttp/plugins/ca.backup2/scripts/backup.php:300:        

 

Why is the plugin doing this and how can I prevent it?

Link to comment

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.