Page 1 of 1

USB drive name suddnenly changed

Posted: 16 Jun 2025, 12:27
by Terrariaria
F2-424 with latest TOS6.

I have 2 USB drives: usbshare_sda1 and usdbshare_sdb1.

I'm not sure why but out of the blue I noticed that usbshare_sda1 has been changed to usbshare_sdc1 which has thrown my sabnzbd and *arr stack out of sync.

Why did my USB drive suddenly change its name? I added an additional 3.5" HDD disk but I don't think that should affect USB drive name?

Re: USB drive name suddnenly changed

Posted: 16 Jun 2025, 15:06
by TMzethar
Currently, there is no way to control the allocation of HDD device identifiers. After adding a new HDD, please adjust the synchronization/backup path configuration. We will discuss potential optimizations for this issue.

Re: USB drive name suddnenly changed

Posted: 16 Jun 2025, 15:07
by Terrariaria
But how does adding a new HDD, change the name of my USB drive from usbshare_sda1 to usbshare_sdc1?

Re: USB drive name suddnenly changed

Posted: 17 Jun 2025, 05:04
by sianderson
TMzethar wrote: 16 Jun 2025, 15:06 Currently, there is no way to control the allocation of HDD device identifiers. After adding a new HDD, please adjust the synchronization/backup path configuration. We will discuss potential optimizations for this issue.
the problem is you cant just "adjust" back up paths, its prevented you have to delete them and reset them up again from scratch (i have raised this myself before)

and you will also find that upon reboot of the nas drive they will change again from usbshare_sdc1 back to usbshare_sda1 or usbshare_sdb1 as sda1 doesnt actually exist so its free to assign it back to that on next boot, so then your suggestion would be to delete those backup configs again and set them back up to the original?

as it sounds like TOS is still remembering that it had a USB plugged in, but now recognizes it as a different drive so assigns it a new device id

the simple solution seems to be just unplug the usb and plug it back in again it should then recognise them back to their original ids as it detects the unplug and does the correct thing

there is a bug there somewhere that it doesnt release the device id to be allocated again under certain circumstances so allocates the next one even though it shouldnt have changed as it already knew about it, in my example it was a software update (TOS), here it seems like an additional hard drive

Re: USB drive name suddnenly changed

Posted: 17 Jun 2025, 08:39
by Terrariaria
What has happened is both my USB drives got moved up 1 letter.

sda1 -> sdb1

sdb1 -> sdc1

So I realised both my usb drives got affected which is annoying since I had to fix directories for them both

Re: USB drive name suddnenly changed

Posted: 17 Jun 2025, 17:44
by TMzethar
The device names (sd*) for both USB and HDD are sorted alphabetically in the order of detection. There is no way to fix the order at this time.

Re: USB drive name suddnenly changed

Posted: 17 Jun 2025, 18:52
by Terrariaria
Well that sucks because I'm going to be returning this HDD for a different one....

So when I take it out, I'm going to have to reset all the directories again and then reset the directories AGAIN once the replacement HDD arrives.

Whoever thought this would be a good idea?

Re: USB drive name suddnenly changed

Posted: 19 Jun 2025, 09:59
by Terrariaria
Ok so I removed the HDD and it renamed all the USB drives as predicted..

sda1 -> sdb1 -> sda1

sdb1 -> sdc1 -> sdb1

What a pain.