Unable to hot plug/swap sata drives

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
KalaDude
Level 1
Level 1
Posts: 40
Joined: Sat Jul 03, 2021 1:11 pm

Unable to hot plug/swap sata drives

Post by KalaDude »

I have new system. In years past I used to be able to attach 1 or more sata drives directly to my system while the system is running. By attach I mean using a spare SATA cable attached to the mobo and using a power connector from the PSU (case open). Drive would automatically mount and be available.

As time went on this function started to not work sometimes and then not work at all. I assumed it was the motherboard. Got a new mobo. In the BIOS I enabled hot plug for all 4 of the SATA connections. Yet it doesn't work.

Is there a setting or configuration file that needs to be changed in Linux Mint to enable this? Or something else?

Code: Select all

System:
  Kernel: 5.19.0-45-generic x86_64 bits: 64 compiler: N/A Desktop: Cinnamon 5.4.12 tk: GTK 3.24.33
    wm: Mutter dm: LightDM Distro: Linux Mint 21 Vanessa base: Ubuntu 22.04 jammy
Machine:
  Type: Desktop System: Micro-Star product: MS-7C35 v: 2.0 serial: <superuser required>
  Mobo: Micro-Star model: MEG X570 UNIFY (MS-7C35) v: 2.0 serial: <superuser required>
    BIOS: American Megatrends LLC. v: A.F0 date: 03/01/2023
Battery:
  Device-1: hidpp_battery_0 model: Logitech Wireless Mouse M325 serial: <filter>
    charge: 55% (should be ignored) status: Discharging
CPU:
  Info: 8-core model: AMD Ryzen 7 5800X3D bits: 64 type: MT MCP arch: Zen 3 rev: 2 cache:
    L1: 512 KiB L2: 4 MiB L3: 96 MiB
  Speed (MHz): avg: 2965 high: 4313 min/max: 2200/4549 boost: enabled cores: 1: 3547 2: 3555
    3: 2200 4: 3552 5: 4175 6: 4313 7: 2200 8: 3559 9: 3565 10: 3575 11: 2200 12: 2200 13: 2200
    14: 2200 15: 2200 16: 2200 bogomips: 108806
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Graphics:
  Device-1: NVIDIA vendor: Micro-Star MSI driver: nvidia v: 530.41.03 pcie: speed: 16 GT/s
    lanes: 8 ports: active: none off: DP-2,DP-3,HDMI-A-1 empty: DP-1 bus-ID: 2d:00.0
    chip-ID: 10de:2786
  Display: x11 server: X.Org v: 1.21.1.4 driver: X: loaded: nvidia gpu: nvidia display-ID: :0
    screens: 1
  Screen-1: 0 s-res: 4000x3269 s-dpi: 96
  Monitor-1: DP-2 pos: top-right res: 1440x2560 dpi: 93 diag: 800mm (31.5")
  Monitor-2: DP-4 pos: primary,bottom-l res: 2560x1440 dpi: 93 diag: 800mm (31.5")
  Monitor-3: HDMI-0 pos: middle-l res: 2560x1440 dpi: 93 diag: 800mm (31.5")
  OpenGL: renderer: NVIDIA GeForce RTX 4070/PCIe/SSE2 v: 4.6.0 NVIDIA 530.41.03
    direct render: Yes
Audio:
  Device-1: NVIDIA vendor: Micro-Star MSI driver: snd_hda_intel v: kernel pcie: speed: 16 GT/s
    lanes: 8 bus-ID: 2d:00.1 chip-ID: 10de:22bc
  Device-2: AMD Starship/Matisse HD Audio vendor: Micro-Star MSI driver: snd_hda_intel v: kernel
    pcie: speed: 16 GT/s lanes: 16 bus-ID: 2f:00.4 chip-ID: 1022:1487
  Sound Server-1: ALSA v: k5.19.0-45-generic running: yes
  Sound Server-2: PulseAudio v: 15.99.1 running: yes
  Sound Server-3: PipeWire v: 0.3.48 running: yes
Network:
  Device-1: Realtek RTL8125 2.5GbE vendor: Micro-Star MSI driver: r8169 v: kernel pcie:
    speed: 5 GT/s lanes: 1 port: f000 bus-ID: 27:00.0 chip-ID: 10ec:8125
  IF: enp39s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
Bluetooth:
  Device-1: Intel AX210 Bluetooth type: USB driver: btusb v: 0.8 bus-ID: 1-4:2 chip-ID: 8087:0032
  Report: hciconfig ID: hci0 rfk-id: 0 state: down bt-service: enabled,running rfk-block:
    hardware: no software: yes address: <filter>
Drives:
  Local Storage: total: 3.64 TiB used: 1.86 TiB (51.2%)
  ID-1: /dev/nvme0n1 vendor: Western Digital model: WD BLACK SN850X 4000GB size: 3.64 TiB
    speed: 63.2 Gb/s lanes: 4 serial: <filter> temp: 52.9 C
Partition:
  ID-1: / size: 3.58 TiB used: 1.86 TiB (52.0%) fs: ext4 dev: /dev/nvme0n1p3
  ID-2: /boot/efi size: 512 MiB used: 4 KiB (0.0%) fs: vfat dev: /dev/nvme0n1p2
Swap:
  ID-1: swap-1 type: file size: 2 GiB used: 0 KiB (0.0%) priority: -2 file: /swapfile
USB:
  Hub-1: 1-0:1 info: Hi-speed hub with single TT ports: 6 rev: 2.0 speed: 480 Mb/s
    chip-ID: 1d6b:0002
  Device-1: 1-4:2 info: Intel AX210 Bluetooth type: Bluetooth driver: btusb rev: 2.0
    speed: 12 Mb/s chip-ID: 8087:0032
  Hub-2: 2-0:1 info: Super-speed hub ports: 4 rev: 3.1 speed: 10 Gb/s chip-ID: 1d6b:0003
  Hub-3: 3-0:1 info: Hi-speed hub with single TT ports: 6 rev: 2.0 speed: 480 Mb/s
    chip-ID: 1d6b:0002
  Device-1: 3-5:2 info: Micro Star MYSTIC LIGHT type: HID driver: hid-generic,usbhid rev: 1.1
    speed: 12 Mb/s chip-ID: 1462:7c35
  Hub-4: 3-6:3 info: Genesys Logic Hub ports: 4 rev: 2.0 speed: 480 Mb/s chip-ID: 05e3:0608
  Hub-5: 4-0:1 info: Super-speed hub ports: 4 rev: 3.1 speed: 10 Gb/s chip-ID: 1d6b:0003
  Hub-6: 5-0:1 info: Hi-speed hub with single TT ports: 4 rev: 2.0 speed: 480 Mb/s
    chip-ID: 1d6b:0002
  Device-1: 5-1:2 info: Logitech Washable Keyboard K310 type: Keyboard,HID
    driver: hid-generic,usbhid rev: 1.1 speed: 1.5 Mb/s chip-ID: 046d:c326
  Device-2: 5-2:3 info: Logitech Unifying Receiver type: Keyboard,Mouse,HID
    driver: logitech-djreceiver,usbhid rev: 2.0 speed: 12 Mb/s chip-ID: 046d:c52b
  Hub-7: 6-0:1 info: Super-speed hub ports: 4 rev: 3.1 speed: 10 Gb/s chip-ID: 1d6b:0003
Sensors:
  System Temperatures: cpu: N/A mobo: N/A gpu: nvidia temp: 58 C
  Fan Speeds (RPM): N/A gpu: nvidia fan: 0%
Repos:
  Packages: 2767 apt: 2755 flatpak: 12
  No active apt repos in: /etc/apt/sources.list
  No active apt repos in: /etc/apt/sources.list.d/linuxgndu-sqlitebrowser-focal.list
  Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list
    1: deb http: //packages.linuxmint.com vanessa main upstream import backport
    2: deb http: //archive.ubuntu.com/ubuntu jammy main restricted universe multiverse
    3: deb http: //archive.ubuntu.com/ubuntu jammy-updates main restricted universe multiverse
    4: deb http: //archive.ubuntu.com/ubuntu jammy-backports main restricted universe multiverse
    5: deb http: //security.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse
  Active apt repos in: /etc/apt/sources.list.d/virtualbox.list
    1: deb [arch=amd64 signed-by=/usr/share/keyrings/oracle-virtualbox-2016.gpg] http: //download.virtualbox.org/virtualbox/debian jammy contrib
Info:
  Processes: 355 Uptime: 6h 29m Memory: 125.72 GiB used: 4.76 GiB (3.8%) Init: systemd v: 249
  runlevel: 5 Compilers: gcc: 11.3.0 alt: 11/12/9 Client: Unknown python3.10 client inxi: 3.3.13
Last edited by LockBot on Sat Dec 23, 2023 11:00 pm, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
KalaDude
Level 1
Level 1
Posts: 40
Joined: Sat Jul 03, 2021 1:11 pm

Re: Unable to hot plug/swap sata drives

Post by KalaDude »

I tried checking with the mobo manufacturer, MSI.

Their responses:
Hello - what operating system are you currently on? It would be up to the OS to initialize the drive.
Hello - we do not support Linux or its OS. We are not able to troubleshoot this.
User avatar
coffee412
Level 9
Level 9
Posts: 2580
Joined: Mon Nov 12, 2012 7:38 pm
Location: I dont know
Contact:

Re: Unable to hot plug/swap sata drives

Post by coffee412 »

KalaDude wrote: Thu Jun 29, 2023 6:51 pm I tried checking with the mobo manufacturer, MSI.

Their responses:
Hello - what operating system are you currently on? It would be up to the OS to initialize the drive.
Hello - we do not support Linux or its OS. We are not able to troubleshoot this.
Word from the Wise;

Just because the bios supports hot swap drives does not mean hardware wise it would survive plugging in a drive while your system is up and running. The term 'hot swap' is not really well defined. Sure, The bios supports it however, You should have the correct hardware to support it.

You could accidentally damage the hard drive and or motherboard doing it your way.

I recommend a bay insert that handles drives meant for hot swapping that fits in your existing case or perhaps a new case. The hot swap bays should have a power button unique for each drive.
Ryzen x1800 Asus Prime x370-Pro 32 gigs Ram RX480 graphics
Dell PE T610, Dell PE T710
- List your hardware Profile: inxi -Fxpmrz
MeshCentral * Virtualbox * Debian * InvoiceNinja * NextCloud * Linux since kernel 2.0.36
KalaDude
Level 1
Level 1
Posts: 40
Joined: Sat Jul 03, 2021 1:11 pm

Re: Unable to hot plug/swap sata drives

Post by KalaDude »

I think its a chip set issue and maybe how linux interfaces with those chipsets.

I bought another MSI mobo but this time with a B450 chip set. I installed the now spare parts (cpu, ram, gpu) from the previous build, which had also been an X570 mobo and where swapping never worked.

I totally forgot to check if I had enabled hot swapping in the B450 BIOS but decided to try it anyway and VOILA I was able to hot swap with no problems both SSD's and HDD's mounted with no issues.

I checked the BIOS settings on the B450 ssytem and hot swapping was NOT enabled, yet hot swapping still worked. So of course, I tried disabling hot swapping in the BIOS on the new X570 system. Alas this did not fix the problem.

So now I'm not sure if I should report this issue to a different forum that deals with higher level OS issues. Also not sure if that would be Mint forum or an Ubuntu forum.
Locked

Return to “Storage”