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.

[?] When does the device name (sda, adb, ...) change?

Featured Replies

Hello,

 

For a plugin I am working on:

 

Does anyone know (definitely) when the device name (sda, adb, ...) given to HDD/CD-DVD ROMs devices change?

 

is it only when connecting it to a different SATA port? Or can it change for other reasons?

 

Thanks

 

Once a device is connected it will hold that alias. If a a new device is connected it will get the next alias.

 

However you cannot guarantee it will be the same alias each time obviously. Also if a drive drops and comes up it may get a new alias.

 

sd* is not a good way to address things far better to look at more modern alternatives such as UUID etc

  • Author

Once a device is connected it will hold that alias. If a a new device is connected it will get the next alias.

 

However you cannot guarantee it will be the same alias each time obviously. Also if a drive drops and comes up it may get a new alias.

 

sd* is not a good way to address things far better to look at more modern alternatives such as UUID etc

 

For my plugin I need to know when a drive has physically been connected to a different SATA port - is this possible?

 

Edit:

 

I will try use lsscsi.

 

/dev/disk/by-path does not show all devices for some reason.

Once a device is connected it will hold that alias. If a a new device is connected it will get the next alias.

 

However you cannot guarantee it will be the same alias each time obviously. Also if a drive drops and comes up it may get a new alias.

 

sd* is not a good way to address things far better to look at more modern alternatives such as UUID etc

 

For my plugin I need to know when a drive has physically been connected to a different SATA port - is this possible?

 

Edit:

 

I will try use lsscsi.

 

/dev/disk/by-path does not show all devices for some reason.

 

Good tip sparky. Curious about by-path though wonder why that is not defitnitve.

 

Also udev can be your friend it is super powerful

Archived

This topic is now archived and is closed to further replies.

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.