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 drive letter changes randomly after reboots

Featured Replies

Hi,

 

i'm using a lot of drives (SATA/USB) in my unraid server and (i think when i add/remove an additional drive) the drive letters (sd*) are randomly changed completely after reboots. That's really annoying, because i use them for and in different VMs, and they don't work then and have to be re-configured.

 

Is that normal?

 

Thanks

tower-diagnostics-20220123-0117.zip

Drive letters are never guaranteed to stay the same under linux, and will change for array devices.  You want to identify them for passthrough by something like /dev/disk/by-id 

 

  • Author
22 minutes ago, Squid said:

Drive letters are never guaranteed to stay the same under linux, and will change for array devices.  You want to identify them for passthrough by something like /dev/disk/by-id 

 

 

"/dev/disk/by-id"

Which id is that?

  • Author

I need something, that stays also after reboots, like it is in windows.

That must be possible somehow, otherwise i would have to reconfigure all the VMs after reboots again and again...

Edited by Stri

ok.  Then better question is 

 

how are you 

Quote

 use them for and in different VMs

 

  • Author
1 minute ago, Squid said:

ok.  Then better question is 

 

how are you 

 

 

yep. i use them as passed through disks in several vms. for example 1 ssd as primary boot device in a windows 10 vm, in 2 other windows (10/11) as passed through disks.

  • Author

...and when my former SATA is now USB - the disk does not work anymore in the VM or is another drive...

 

edit:

a special binding in vm settings with serial number would be nice - something like /dev/disk/A06TBAS for example :)

or did i miss something - but i "only" want to bind the disks to the VM, think that should be possible somehow in such a powerful OS like Unraid.

Edited by Stri

Yes. I understand.  How are you referencing the drives for passthrough?  Under Linux the /dev/sdX monikers are never guaranteed to stay the same from one boot to the other.  It's akin to looking at a drive in Windows Disk Manager and seeing disk #0, disk #1 etc -> those will potentially change, but the "letter" stays the same.  Your solution is to reference them instead by /dev/disk/by-id/.... (this is more akin to the drive "letter" that windows uses) that will stay the same all the time unless by you moving from SATA to USB changed the ID (which some USB adapters will do) in which case there's not much you can do.

  • Author

Thanks Squid, will try that tomorrow.

 

edit: i use "/dev/sd*" now...

Edited by Stri

  • Author

When i change settings in vm from /dev/sd* to /dev/disk/by-id/*ID* (e.g. "/dev/disk/by-id/TOSHIBA_**********") - VM isn't saved - it's stuck @ "Updating" :-/

Same also for different VM. Tried a reboot - same.

 

Unraid version 6.10.0-rc2

tower-diagnostics-20220123-1458.zip

Edited by Stri

Semi-known issue which is hopefully fixed on next release.  The solution is to apparently switch your vdisks (if you have them) from "Auto" to Manual and set them accordingly.

  • Author
9 hours ago, Squid said:

Semi-known issue which is hopefully fixed on next release.  The solution is to apparently switch your vdisks (if you have them) from "Auto" to Manual and set them accordingly.

 

don't know what you mean and issue is not resolved yet.

1 use case:

i try to start the vm from an unassigned device/ssd - and want to switch from /dev/sd* to /dev/disk/by-id/? (still don't know which id should i add here - "Intenso_SSD_Sata_III_AUSAT0608OUT******" for example?), but GUI is stuck @ updating anyway, so i can't change it.

i don't have a vdisk, i have the whole ssd with windows 10 on it. how can i transform it to a vdisk - if that is the solution?

don't want to set it up completely new now...

 

another one:

- pass through several disks (USB/SATA) to 2 different vms - same issue here (changing sd* after reboots and can't update vms (stuck @ updating)).

 

edit:

could now save VM in XML view, but when i want to start vm - i get the error message "

Execution error

Cannot access storage file '/dev/disk/by-id/Intenso_SSD_Sata_III_AUSAT0608O..........': No such file or directory"

Edited by Stri

  • Author

UPDATE/SOLUTION:

After a bit of research it's resolved.

Maybe it helps for other not so experienced people like me, i'm quite new to unraid/linux.

 

1. find out ID from drive:
ls -l /dev/disk/by-id

--> in GUI the ID was different - in console i saw, that an "ata-" is kind of missing in GUI.

 

2. edit VM in xml mode and replace "/dev/sd*" with "/dev/disk/by-id/ID" - saving works now

 

3. start vm :)

Edited by Stri

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.