DietPi failed to boot M2 SSD problem

Creating a bug report/issue

X I have searched the existing open and closed issues

Required Information

  • DietPi version | unknown
  • Distro version | unknown
  • Kernel version | unknown
  • SBC model | RPi 4 4GB
  • Power supply used | RPi Power Supply
  • SD card used | m2 SSD WD Red 1TB

Additional Information (if applicable)

  • Software title | Nextcloud
  • Was the software title installed freshly or updated/migrated? Updated
  • Can this issue be replicated on a fresh installation of DietPi? No.

Steps to reproduce

  1. Power on RPi
  2. Boot screen stuck

Expected behaviour

  • clean boot

Actual behaviour

  • M2 not recognised

Extra details

  • I tried to update my DietPi and kernel with a running Nextcloud. Update didn’t worked correctly: Asked me to reboot and did that several times bot reboot was still recommended.
  • Next I tried to restore the DietPi Backup I created before: Backup failed after reboot: New problem - DietPi can’t boot. I ran into this problem (firmware not detected).
  • Took out the M2 SSD and attached it to my Laptop: Doesn’t show. In the Drives App it is shown with no media
  • sudo fdisk -l gives me this:
  • Festplatte /dev/loop0: 4 KiB, 4096 Bytes, 8 Sektoren
    Einheiten: Sektoren von 1 * 512 = 512 Bytes
    Sektorgröße (logisch/physikalisch): 512 Bytes / 512 Bytes
    E/A-Größe (minimal/optimal): 512 Bytes / 512 Bytes
    
    
    Festplatte /dev/loop1: 63,77 MiB, 66863104 Bytes, 130592 Sektoren
    Einheiten: Sektoren von 1 * 512 = 512 Bytes
    Sektorgröße (logisch/physikalisch): 512 Bytes / 512 Bytes
    E/A-Größe (minimal/optimal): 512 Bytes / 512 Bytes
    
    
    Festplatte /dev/loop2: 63,77 MiB, 66871296 Bytes, 130608 Sektoren
    Einheiten: Sektoren von 1 * 512 = 512 Bytes
    Sektorgröße (logisch/physikalisch): 512 Bytes / 512 Bytes
    E/A-Größe (minimal/optimal): 512 Bytes / 512 Bytes
    
    
    Festplatte /dev/loop3: 73,91 MiB, 77504512 Bytes, 151376 Sektoren
    Einheiten: Sektoren von 1 * 512 = 512 Bytes
    Sektorgröße (logisch/physikalisch): 512 Bytes / 512 Bytes
    E/A-Größe (minimal/optimal): 512 Bytes / 512 Bytes
    
    
    Festplatte /dev/loop4: 73,92 MiB, 77512704 Bytes, 151392 Sektoren
    Einheiten: Sektoren von 1 * 512 = 512 Bytes
    Sektorgröße (logisch/physikalisch): 512 Bytes / 512 Bytes
    E/A-Größe (minimal/optimal): 512 Bytes / 512 Bytes
    
    
    Festplatte /dev/loop5: 11,75 MiB, 12320768 Bytes, 24064 Sektoren
    Einheiten: Sektoren von 1 * 512 = 512 Bytes
    Sektorgröße (logisch/physikalisch): 512 Bytes / 512 Bytes
    E/A-Größe (minimal/optimal): 512 Bytes / 512 Bytes
    
    
    Festplatte /dev/loop6: 22,57 MiB, 23666688 Bytes, 46224 Sektoren
    Einheiten: Sektoren von 1 * 512 = 512 Bytes
    Sektorgröße (logisch/physikalisch): 512 Bytes / 512 Bytes
    E/A-Größe (minimal/optimal): 512 Bytes / 512 Bytes
    
    
    Festplatte /dev/loop7: 247,14 MiB, 259145728 Bytes, 506144 Sektoren
    Einheiten: Sektoren von 1 * 512 = 512 Bytes
    Sektorgröße (logisch/physikalisch): 512 Bytes / 512 Bytes
    E/A-Größe (minimal/optimal): 512 Bytes / 512 Bytes
    
    
    Festplatte /dev/nvme0n1: 1,82 TiB, 2000398934016 Bytes, 3907029168 Sektoren
    Festplattenmodell: WD_BLACK SN770 2TB                      
    Einheiten: Sektoren von 1 * 512 = 512 Bytes
    Sektorgröße (logisch/physikalisch): 512 Bytes / 512 Bytes
    E/A-Größe (minimal/optimal): 512 Bytes / 512 Bytes
    Festplattenbezeichnungstyp: gpt
    Festplattenbezeichner: 6492EE0B-F5F4-422D-B1A9-E7A02A0F524D
    
    Gerät              Anfang       Ende   Sektoren  Größe Typ
    /dev/nvme0n1p1       2048     411647     409600   200M EFI-System
    /dev/nvme0n1p2     411648     444415      32768    16M Microsoft reserviert
    /dev/nvme0n1p3     444416 1857572863 1857128448 885,5G Microsoft Basisdaten
    /dev/nvme0n1p4 3905572864 3907026943    1454080   710M Windows-Wiederherstellung
    /dev/nvme0n1p5 1857572864 3905572863 2048000000 976,6G Linux-Dateisystem
    
    Partitionstabelleneinträge sind nicht in Festplatten-Reihenfolge.
    
    
    Festplatte /dev/loop8: 249,22 MiB, 261324800 Bytes, 510400 Sektoren
    Einheiten: Sektoren von 1 * 512 = 512 Bytes
    Sektorgröße (logisch/physikalisch): 512 Bytes / 512 Bytes
    E/A-Größe (minimal/optimal): 512 Bytes / 512 Bytes
    
    
    Festplatte /dev/loop9: 11,13 MiB, 11673600 Bytes, 22800 Sektoren
    Einheiten: Sektoren von 1 * 512 = 512 Bytes
    Sektorgröße (logisch/physikalisch): 512 Bytes / 512 Bytes
    E/A-Größe (minimal/optimal): 512 Bytes / 512 Bytes
    
    
    Festplatte /dev/loop10: 516,01 MiB, 541073408 Bytes, 1056784 Sektoren
    Einheiten: Sektoren von 1 * 512 = 512 Bytes
    Sektorgröße (logisch/physikalisch): 512 Bytes / 512 Bytes
    E/A-Größe (minimal/optimal): 512 Bytes / 512 Bytes
    
    
    Festplatte /dev/loop13: 91,69 MiB, 96141312 Bytes, 187776 Sektoren
    Einheiten: Sektoren von 1 * 512 = 512 Bytes
    Sektorgröße (logisch/physikalisch): 512 Bytes / 512 Bytes
    E/A-Größe (minimal/optimal): 512 Bytes / 512 Bytes
    
    
    Festplatte /dev/loop12: 516,2 MiB, 541278208 Bytes, 1057184 Sektoren
    Einheiten: Sektoren von 1 * 512 = 512 Bytes
    Sektorgröße (logisch/physikalisch): 512 Bytes / 512 Bytes
    E/A-Größe (minimal/optimal): 512 Bytes / 512 Bytes
    
    
    Festplatte /dev/loop11: 18,49 MiB, 19386368 Bytes, 37864 Sektoren
    Einheiten: Sektoren von 1 * 512 = 512 Bytes
    Sektorgröße (logisch/physikalisch): 512 Bytes / 512 Bytes
    E/A-Größe (minimal/optimal): 512 Bytes / 512 Bytes
    
    
    Festplatte /dev/loop14: 56,86 MiB, 59625472 Bytes, 116456 Sektoren
    Einheiten: Sektoren von 1 * 512 = 512 Bytes
    Sektorgröße (logisch/physikalisch): 512 Bytes / 512 Bytes
    E/A-Größe (minimal/optimal): 512 Bytes / 512 Bytes
    
    
    Festplatte /dev/loop15: 437,35 MiB, 458592256 Bytes, 895688 Sektoren
    Einheiten: Sektoren von 1 * 512 = 512 Bytes
    Sektorgröße (logisch/physikalisch): 512 Bytes / 512 Bytes
    E/A-Größe (minimal/optimal): 512 Bytes / 512 Bytes
    
    
    Festplatte /dev/loop16: 14,42 MiB, 15118336 Bytes, 29528 Sektoren
    Einheiten: Sektoren von 1 * 512 = 512 Bytes
    Sektorgröße (logisch/physikalisch): 512 Bytes / 512 Bytes
    E/A-Größe (minimal/optimal): 512 Bytes / 512 Bytes
    
    
    Festplatte /dev/loop17: 10,83 MiB, 11354112 Bytes, 22176 Sektoren
    Einheiten: Sektoren von 1 * 512 = 512 Bytes
    Sektorgröße (logisch/physikalisch): 512 Bytes / 512 Bytes
    E/A-Größe (minimal/optimal): 512 Bytes / 512 Bytes
    
    
    Festplatte /dev/loop19: 49,29 MiB, 51687424 Bytes, 100952 Sektoren
    Einheiten: Sektoren von 1 * 512 = 512 Bytes
    Sektorgröße (logisch/physikalisch): 512 Bytes / 512 Bytes
    E/A-Größe (minimal/optimal): 512 Bytes / 512 Bytes
    
    
    Festplatte /dev/loop18: 50,77 MiB, 53235712 Bytes, 103976 Sektoren
    Einheiten: Sektoren von 1 * 512 = 512 Bytes
    Sektorgröße (logisch/physikalisch): 512 Bytes / 512 Bytes
    E/A-Größe (minimal/optimal): 512 Bytes / 512 Bytes
    
    
    Festplatte /dev/loop20: 568 KiB, 581632 Bytes, 1136 Sektoren
    Einheiten: Sektoren von 1 * 512 = 512 Bytes
    Sektorgröße (logisch/physikalisch): 512 Bytes / 512 Bytes
    E/A-Größe (minimal/optimal): 512 Bytes / 512 Bytes
    
    
    Festplatte /dev/loop21: 576 KiB, 589824 Bytes, 1152 Sektoren
    Einheiten: Sektoren von 1 * 512 = 512 Bytes
    Sektorgröße (logisch/physikalisch): 512 Bytes / 512 Bytes
    E/A-Größe (minimal/optimal): 512 Bytes / 512 Bytes
    
    
    Festplatte /dev/loop22: 226,22 MiB, 237207552 Bytes, 463296 Sektoren
    Einheiten: Sektoren von 1 * 512 = 512 Bytes
    Sektorgröße (logisch/physikalisch): 512 Bytes / 512 Bytes
    E/A-Größe (minimal/optimal): 512 Bytes / 512 Bytes
    
    
    Festplatte /dev/loop23: 226,21 MiB, 237203456 Bytes, 463288 Sektoren
    Einheiten: Sektoren von 1 * 512 = 512 Bytes
    Sektorgröße (logisch/physikalisch): 512 Bytes / 512 Bytes
    E/A-Größe (minimal/optimal): 512 Bytes / 512 Bytes
    
    
  • Is there a way to recover the SSD? I searched 3 days and can’t find a way out. :expressionless_face:

did you connect the SSD to a windows laptop?

You can try to boot your RPI4 from SD card and have the SSD connected via USB. This way you can have a look if your SSD is detected still

Yes, it’s detected under Windows: Windows wants to create a partition table but fails.

Windows is not able to manage/read Linux file systems. Therfore you should not try to do anything with the SSD on Windows. It will damage more than it helps

I connected it to the Ubuntu laptop, result was “no media” and the lines above.

I’ve it’s a difference attached to an RPi I’ll give it a try.

following to be used on a Linux system

lsblk -o name,fstype,label,size,ro,type,mountpoint,partuuid,uuid

This should show all connected disk including their partitions.

Here it is. A lot of loops(?):

lsblk -o name,fstype,label,size,ro,type,mountpoint,partuuid,uuid
NAME FSTYPE LABEL   SIZE RO TYPE MOUNTPOINT PARTUUID                             UUID
loop0
     squash        63,8M  1 loop /snap/core                                      
loop1
     squash           4K  1 loop /snap/bare                                      
loop2
     squash        63,8M  1 loop /snap/core                                      
loop3
     squash        73,9M  1 loop /snap/core                                      
loop4
     squash        11,8M  1 loop /snap/desk                                      
loop5
     squash        22,6M  1 loop /snap/desk                                      
loop6
     squash        73,9M  1 loop /snap/core                                      
loop7
     squash       249,2M  1 loop /snap/fire                                      
loop8
     squash       247,1M  1 loop /snap/fire                                      
loop9
     squash         516M  1 loop /snap/gnom                                      
loop10
     squash        11,1M  1 loop /snap/firm                                      
loop11
     squash        18,5M  1 loop /snap/firm                                      
loop12
     squash       516,2M  1 loop /snap/gnom                                      
loop13
     squash       437,3M  1 loop /snap/kde-                                      
loop14
     squash        91,7M  1 loop /snap/gtk-                                      
loop15
     squash        56,9M  1 loop /snap/mumb                                      
loop16
     squash        10,8M  1 loop /snap/snap                                      
loop17
     squash        14,4M  1 loop /snap/prom                                      
loop18
     squash        49,3M  1 loop /snap/snap                                      
loop19
     squash        50,8M  1 loop /snap/snap                                      
loop20
     squash         576K  1 loop /snap/snap                                      
loop21
     squash       226,2M  1 loop /snap/thun                                      
loop22
     squash         568K  1 loop /snap/snap                                      
loop23
     squash       226,2M  1 loop /snap/thun                                      
sda                   0B  0 disk                                                 
nvme0n1
│                   1,8T  0 disk                                                 
├─nvme0n1p1
│    vfat           200M  0 part /boot/efi  fc32ab5a-f14b-4c4c-8c2a-12384f3b3ce7 CA2F-65E9
├─nvme0n1p2
│                    16M  0 part            bdc5b4b8-5500-4b99-84b5-54b7849b1ac7 
├─nvme0n1p3
│    ntfs         885,5G  0 part            652ce1f4-490d-45ef-b874-572789d5180b 760431A704316B6F
├─nvme0n1p4
│    ntfs           710M  0 part            e03faec8-4798-4bdd-abe5-ee7d41776ce2 ECB64ADAB64AA4C4
└─nvme0n1p5
     ext4         976,6G  0 part /          5bdbf3fd-4321-4d9b-8379-453d1868e0d0 0e58cc97-2fd9-45f2-be79-ef3776d05068

But not the SSD drive :melting_face:

The loop devices coming from snap, so you installed some software via snap?!
But the interesting part is this (the NVME ssd)

nvme0n1
│                   1,8T  0 disk                                                 
├─nvme0n1p1
│    vfat           200M  0 part /boot/efi  fc32ab5a-f14b-4c4c-8c2a-12384f3b3ce7 CA2F-65E9
├─nvme0n1p2
│                    16M  0 part            bdc5b4b8-5500-4b99-84b5-54b7849b1ac7 
├─nvme0n1p3
│    ntfs         885,5G  0 part            652ce1f4-490d-45ef-b874-572789d5180b 760431A704316B6F
├─nvme0n1p4
│    ntfs           710M  0 part            e03faec8-4798-4bdd-abe5-ee7d41776ce2 ECB64ADAB64AA4C4
└─nvme0n1p5
     ext4         976,6G  0 part /          5bdbf3fd-4321-4d9b-8379-453d1868e0d0 0e58cc97-2fd9-45f2-be79-ef3776d05068

On the drive is one ext4 partition (probably DietPi) and a whole windows installation, but no /boot for booting the DietPi installation. how this happened only you know :slight_smile:

Do you have a backup of your working dietpi installation?

It’s just the NVME of my laptop, looks like the external NVME isn’t listed. :expressionless_face:

I’ve got an 2 years old backup on an SD-card.

Ah okay, so you have dual boot on the laptop, ok.
If it’s not listed I would say it’s dead :skull: or something wrong with the cables or the case?

Indeed seems to be a hardware issue of the external disk if not listed.

Case and cable are checked with a different SSD. Maybe the “workload” of the backup destroyed it. Thanks for your help and ideas!

Not sure how this should be possible