KDE - Hot Swapped Hard Drive Not Recognized Until Reboot Of O.S.?

Hi,

Running a fully updated openSUSE Tumbleweed KDE 64Bit Linux O.S. on a custom desktop.
Desktop has a 5 1/4" hot swap mobile hard drive rack.
(allows switching of 3.5" hard disk drive while computer is on.

The problem is when changing hard disk drives, the new HDD is not recognized by openSUSE until a reboot of O.S.?
Any ideas on how to fix the above, thanks!

Jesse

Is the rack connected to a hot-swap-compatible controller? If you make a swap while running ‘dmesg -w’, what new output results from dmesg? Is it recognized if you follow up the swap with ‘partprobe’?

Hi
Are you also making sure the disk your removing is powered down?


echo 1 > /sys/block/<disk>/device/delete

You might want to take a closer look at the hardware specs of your hot-swap rack.
In my experience, you don’t need to power down the disk automatic detection is performed entirely by hardware.

Is your disk a standalone or part of a RAID array and if so it could make a difference if software or hardware RAID?
If you’ve broken your array, the new disk might be detected but won’t be mounted until you rebuild the array or otherwise instruct what to do with your new disk.

TSU

“dmesg -w”:

  188.363229] ata2: SATA link down (SStatus 0 SControl 300)
  193.757317] ata2: SATA link down (SStatus 0 SControl 300)
  198.281226] ata2: SATA link down (SStatus 0 SControl 300)
  198.281236] ata2.00: disabled
  198.281261] ata2.00: detaching (SCSI 1:0:0:0)
  198.286422] sd 1:0:0:0: [sdb] Synchronizing SCSI cache
  198.286453] sd 1:0:0:0: [sdb] Synchronize Cache(10) failed: Result: hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK
  198.286454] sd 1:0:0:0: [sdb] Stopping disk
  198.286460] sd 1:0:0:0: [sdb] Start/Stop Unit failed: Result: hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK