pop-os / pop

A project for managing all Pop!_OS sources
https://system76.com/pop
2.48k stars 87 forks source link

[Dell G3 15 3590] Missing SATA drive after kernel upgrade to 6.9.3 #3399

Open driuba opened 4 weeks ago

driuba commented 4 weeks ago

Distribution (run cat /etc/os-release):

╭─[2024-10-27 12:31:07] ~ 
╰─$ cat /etc/os-release
NAME="Pop!_OS"
VERSION="22.04 LTS"
ID=pop
ID_LIKE="ubuntu debian"
PRETTY_NAME="Pop!_OS 22.04 LTS"
VERSION_ID="22.04"
HOME_URL="https://pop.system76.com"
SUPPORT_URL="https://support.system76.com"
BUG_REPORT_URL="https://github.com/pop-os/pop/issues"
PRIVACY_POLICY_URL="https://system76.com/privacy"
VERSION_CODENAME=jammy
UBUNTU_CODENAME=jammy
LOGO=distributor-logo-pop-os

Related Application and/or Package Version (run apt policy $PACKAGE NAME):

╭─[2024-10-27 12:35:06] ~ 
╰─$ apt policy linux-generic
linux-generic:
  Installed: 6.9.3.76060903.202405300957~1726766035~22.04~4092a0e
  Candidate: 6.9.3.76060903.202405300957~1726766035~22.04~4092a0e
  Version table:
 *** 6.9.3.76060903.202405300957~1726766035~22.04~4092a0e 1001
       1001 http://apt.pop-os.org/release jammy/main amd64 Packages
        100 /var/lib/dpkg/status
     5.15.0.124.124 500
        500 http://apt.pop-os.org/ubuntu jammy-security/main amd64 Packages
        500 http://apt.pop-os.org/ubuntu jammy-updates/main amd64 Packages
     5.15.0.25.27 500
        500 http://apt.pop-os.org/ubuntu jammy/main amd64 Packages

Issue/Bug Description:
After kernel update to 6.9.3 my SATA drive is no longer detected. This causes the system to fail at boot up, as this SATA drive is required for cryptsetup and LVM as a home partition. I've mentioned my issue on https://github.com/pop-os/pop/issues/3316#issuecomment-2188067204, however, original issue doesn't seem to be related to mine.

Steps to reproduce (if you know):
In my case it was enough to run usual apt upgrade that upgraded the kernel. I did, however replicate this same issue on a live USB. The issue seems to only go away if I perform a proper shutdown and then boot into the older kernel (6.8.0).

Expected behavior:
System should boot up without issue and SATA drive should be properly detected.

Other Notes:
I've ran some disk scans and it didn't reveal any errors.
I'm using a laptop with Nvidia graphics and two drives: NVMe (root) and SATA (home):

╭─[2024-10-27 12:46:50] ~ 
╰─$ nvidia-smi 
Sun Oct 27 12:46:56 2024       
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 560.35.03              Driver Version: 560.35.03      CUDA Version: 12.6     |
|-----------------------------------------+------------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id          Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |
|                                         |                        |               MIG M. |
|=========================================+========================+======================|
|   0  NVIDIA GeForce GTX 1660 ...    Off |   00000000:01:00.0 Off |                  N/A |
| N/A   53C    P0             18W /   60W |     326MiB /   6144MiB |      1%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+

+-----------------------------------------------------------------------------------------+
| Processes:                                                                              |
|  GPU   GI   CI        PID   Type   Process name                              GPU Memory |
|        ID   ID                                                               Usage      |
|=========================================================================================|
|    0   N/A  N/A      1562      G   /usr/lib/xorg/Xorg                            172MiB |
|    0   N/A  N/A      1739      G   /usr/bin/gnome-shell                           32MiB |
|    0   N/A  N/A      6106      G   firefox                                       113MiB |
|    0   N/A  N/A      9357      G   x-terminal-emulator                             3MiB |
+-----------------------------------------------------------------------------------------+
╭─[2024-10-27 12:46:56] ~ 
╰─$ lsblk
NAME              MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINTS
sda                 8:0    0 931,5G  0 disk  
└─sda1              8:1    0 931,5G  0 part  
  └─crypthome     252:1    0 931,5G  0 crypt 
    └─pop_os-home 252:4    0 931,5G  0 lvm   /home
zram0             251:0    0  15,3G  0 disk  [SWAP]
nvme0n1           259:0    0 476,9G  0 disk  
├─nvme0n1p1       259:1    0     2G  0 part  /boot/efi
└─nvme0n1p2       259:2    0 474,9G  0 part  
  └─cryptroot     252:0    0 474,9G  0 crypt 
    ├─pop_os-swap 252:2    0    16G  0 lvm   [SWAP]
    └─pop_os-root 252:3    0 458,9G  0 lvm   /
╭─[2024-10-27 12:49:30] ~ 
╰─$ sudo smartctl -i /dev/sda
smartctl 7.2 2020-12-30 r5155 [x86_64-linux-6.8.0-76060800daily20240311-generic] (local build)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Crucial/Micron Client SSDs
Device Model:     CT1000MX500SSD1
Serial Number:    2109E4FE1ABB
LU WWN Device Id: 5 00a075 1e4fe1abb
Firmware Version: M3CR033
User Capacity:    1.000.204.886.016 bytes [1,00 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    Solid State Device
Form Factor:      2.5 inches
TRIM Command:     Available
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ACS-3 T13/2161-D revision 5
SATA Version is:  SATA 3.3, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Sun Oct 27 12:49:35 2024 EET
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
╭─[2024-10-27 12:49:38] ~ 
╰─$ sudo smartctl -i /dev/nvme0n1                                                                                                                                                                              130 ↵
smartctl 7.2 2020-12-30 r5155 [x86_64-linux-6.8.0-76060800daily20240311-generic] (local build)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Number:                       KBG40ZNS512G NVMe TOSHIBA 512GB
Serial Number:                      797PD9QNPQFN
Firmware Version:                   10410106
PCI Vendor/Subsystem ID:            0x1e0f
IEEE OUI Identifier:                0x8ce38e
Total NVM Capacity:                 512.110.190.592 [512 GB]
Unallocated NVM Capacity:           0
Controller ID:                      0
NVMe Version:                       1.3
Number of Namespaces:               1
Namespace 1 Size/Capacity:          512.110.190.592 [512 GB]
Namespace 1 Formatted LBA Size:     512
Namespace 1 IEEE EUI-64:            8ce38e 040011527d
Local Time is:                      Sun Oct 27 12:50:01 2024 EET
jacobgkau commented 3 weeks ago

What motherboard or laptop model are you using? And what model of SATA drive?

driuba commented 3 weeks ago

What motherboard or laptop model are you using?

From memory: it's a Dell G3 15 3590.

I'll double check the motherboard model probably tomorrow after work.

And what model of SATA drive?

It's a Crucial MX500 1TB 3D NAND SATA 2.5-inch 7mm (with 9.5mm adapter) Internal SSD. Model number from smartctl: CT1000MX500SSD1.