SSD Change - Not Booting | Grub Shell | Emergency Mode

Hi,
While trying to upgrade my SSD from 500GB to 1TB. I kinda broke my System. When I try to boot, I only get grub shell when booting.


When booting from there with:

set root=(hd2,gpt2)
linux /boot/vmlinuz-linux root=/dev/nvme0n1p2
initrd /boot/initramfs-linux.img
boot

Then I can reach an emergency shell


Journal only gives one error:

controlC3: Process '/usr/bin/alsactl restore 3' failed with exit code 99.

When checking / and /boot/efi partitions are mounted. I can mount /var and /home manually though. But I cannot reach a graphical environment. startx only gives me weird graphical issues.

Booting via LiveUSB and using arch-chroot is working fine, but running mkinitcpio -P and reinstall grub doesn’t bring any success. I’m still stuck on grub shell after reboot.

Any Idea how to fix this?

Edit Inxi information & Fstab - From Chroot:

[root@EndeavourOS ~]# inxi -Fxxc0z
System:
  Kernel: 6.4.8-arch1-1 arch: x86_64 bits: 64 compiler: gcc v: 13.2.1 Console: N/A wm: xfwm
    DM: startx Distro: EndeavourOS base: Arch Linux
Machine:
  Type: Desktop System: Gigabyte product: AX370-Gaming 3 v: N/A serial: N/A
  Mobo: Gigabyte model: AX370-Gaming 3-CF serial: N/A UEFI: American Megatrends LLC. v: F51f
    date: 04/28/2022
CPU:
  Info: 8-core model: AMD Ryzen 7 5700X bits: 64 type: MT MCP arch: Zen 3+ rev: 2 cache:
    L1: 512 KiB L2: 4 MiB L3: 32 MiB
  Speed (MHz): avg: 2425 high: 3400 min/max: 2200/4662 boost: enabled cores: 1: 3400 2: 2200
    3: 2200 4: 2200 5: 2200 6: 2200 7: 2200 8: 2200 9: 3400 10: 2200 11: 2200 12: 2200 13: 2200
    14: 3400 15: 2200 16: 2200 bogomips: 108837
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Graphics:
  Device-1: AMD Navi 10 [Radeon RX 5600 OEM/5600 XT / 5700/5700 XT] vendor: Sapphire driver: amdgpu
    v: kernel arch: RDNA-1 pcie: speed: 16 GT/s lanes: 16 ports: active: DP-1,DP-2
    empty: HDMI-A-1,HDMI-A-2 bus-ID: 0b:00.0 chip-ID: 1002:731f
  Device-2: Logitech HD Pro Webcam C920 driver: snd-usb-audio,uvcvideo type: USB rev: 2.0
    speed: 480 Mb/s lanes: 1 bus-ID: 1-9.2:3 chip-ID: 046d:082d
  Display: server: X.org v: 1.21.1.9 compositor: xfwm driver: X: loaded: amdgpu
    unloaded: fbdev,modesetting,radeon,vesa dri: radeonsi gpu: amdgpu display-ID: :0.0
  Monitor-1: DP-1 model: Huawei ZQE-CAA res: 3440x1440 dpi: 110 diag: 864mm (34")
  Monitor-2: DP-2 model: LG (GoldStar) ULTRAWIDE res: 3440x1440 dpi: 109 diag: 869mm (34.2")
  API: EGL v: 1.5 platforms: device: 0 drv: radeonsi device: 1 drv: swrast surfaceless:
    drv: radeonsi inactive: gbm,wayland,x11
  API: OpenGL v: 4.6 compat-v: 4.5 vendor: mesa v: 23.2.1-arch1.2 note: incomplete (EGL sourced)
    renderer: AMD Radeon RX 5700 XT (navi10 LLVM 16.0.6 DRM 3.52 6.4.8-arch1-1), llvmpipe (LLVM
    16.0.6 256 bits)
  API: Vulkan Message: No Vulkan data available.
Audio:
  Device-1: AMD Navi 10 HDMI Audio driver: snd_hda_intel v: kernel pcie: speed: 16 GT/s lanes: 16
    bus-ID: 0b:00.1 chip-ID: 1002:ab38
  Device-2: AMD Starship/Matisse HD Audio vendor: Gigabyte driver: snd_hda_intel v: kernel pcie:
    speed: 16 GT/s lanes: 16 bus-ID: 0d:00.4 chip-ID: 1022:1487
  Device-3: Logitech HD Pro Webcam C920 driver: snd-usb-audio,uvcvideo type: USB rev: 2.0
    speed: 480 Mb/s lanes: 1 bus-ID: 1-9.2:3 chip-ID: 046d:082d
  Device-4: SteelSeries ApS [] driver: hid-generic,snd-usb-audio,usbhid type: USB rev: 2.0
    speed: 12 Mb/s lanes: 1 bus-ID: 1-9.4.1.1:10 chip-ID: 1038:220a
  API: ALSA v: k6.4.8-arch1-1 status: kernel-api
  Server-1: JACK v: 1.9.22 status: off
  Server-2: PipeWire v: 0.3.83 status: n/a (root, process) with: pipewire-media-session
    status: off
  Server-3: PulseAudio v: 16.1 status: off
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: Gigabyte driver: r8169
    v: kernel pcie: speed: 2.5 GT/s lanes: 1 port: f000 bus-ID: 04:00.0 chip-ID: 10ec:8168
  IF: eno1 state: down mac: <filter>
  Device-2: Realtek RTL8153 Gigabit Ethernet Adapter driver: r8152 type: USB rev: 2.1
    speed: 480 Mb/s lanes: 1 bus-ID: 1-9.4.4:8 chip-ID: 0bda:8153
  IF: enp2s0f0u9u4u4 state: up speed: 1000 Mbps duplex: full mac: <filter>
Drives:
  Local Storage: total: 2.74 TiB used: 246.8 GiB (8.8%)
  ID-1: /dev/nvme0n1 vendor: Samsung model: SSD 980 PRO 1TB size: 931.51 GiB speed: 63.2 Gb/s
    lanes: 4 serial: <filter> temp: 38.9 C
  ID-2: /dev/sda vendor: Western Digital model: WD20EZRZ-00Z5HB0 size: 1.82 TiB speed: 6.0 Gb/s
    serial: <filter>
  ID-3: /dev/sdb vendor: Intenso model: Ul tra Line size: 14.56 GiB type: USB rev: 3.1
    spd: 5 Gb/s lanes: 1 serial: <filter>
Partition:
  ID-1: / size: 50 GiB used: 17.12 GiB (34.2%) fs: btrfs dev: /dev/nvme0n1p2
  ID-2: /boot/efi size: 1022 MiB used: 63.5 MiB (6.2%) fs: vfat dev: /dev/nvme0n1p1
  ID-3: /home size: 850.51 GiB used: 222.86 GiB (26.2%) fs: btrfs dev: /dev/nvme0n1p4
  ID-4: /var size: 30 GiB used: 6.76 GiB (22.5%) fs: btrfs dev: /dev/nvme0n1p3
Swap:
  Alert: No swap data was found.
Sensors:
  System Temperatures: cpu: 35.9 C mobo: 27.0 C gpu: amdgpu temp: 56.0 C mem: 58.0 C
  Fan Speeds (rpm): cpu: 0 fan-1: 0 fan-3: 0 gpu: amdgpu fan: 0
  Power: 12v: N/A 5v: N/A 3.3v: 3.36 vbat: 3.25
Info:
  Processes: 380 Uptime: 13m Memory: total: 32 GiB available: 31.27 GiB used: 2.3 GiB (7.3%)
  Init: systemd v: 254 default: graphical Compilers: gcc: 13.2.1 clang: 16.0.6 Packages: pm: pacman
  pkgs: 1750 Client: Unknown Client: systemd inxi: 3.3.30
[root@EndeavourOS ~]# cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a device; this may
# be used with UUID= as a more robust way to name devices that works even if
# disks are added and removed. See fstab(5).
#
# <file system>             <mount point>  <type>  <options>  <dump>  <pass>
UUID=9C59-C90D                            /boot/efi      vfat    umask=0077 0 2
UUID=77736a98-1674-4f5a-9fd5-79726bc408e5 /              ext4    defaults,noatime 0 1
UUID=ff7d751d-e2c2-404a-a368-aeda2eed4ba1 /var           ext4    defaults,noatime 0 2
UUID=b2bbbfc7-a82a-4a9f-8570-21a5cd6818ee /home          ext4    defaults,noatime 0 2
UUID=655883e2-7dfe-4bb4-a88b-ade8768ee7b4 /mnt/data	 ext4    defaults,noatime 0 2

Might or not be relevant but in your first screenshot, I see “filesystem type btrfs” but in your /etc/fstab the system partitions are in EXT4. :thinking:

What is the output of sudo parted -l ?

Hi,

Uff… Thanks for the hint. I’ve just fixed the fstab file.
Actually I’ve changed from ext4 to btrfs for the new SSD since I wanted to try that out. But looks like I missed this when fixing the UUIDs in fstab.
I’ve changed it now. Though I still have the same issue.

corrected fstab:

[root@EndeavourOS /]# cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a device; this may
# be used with UUID= as a more robust way to name devices that works even if
# disks are added and removed. See fstab(5).
#
# <file system>             <mount point>  <type>  <options>  <dump>  <pass>
UUID=9C59-C90D                            /boot/efi      vfat    umask=0077 0 2
UUID=77736a98-1674-4f5a-9fd5-79726bc408e5 /              btrfs   defaults,noatime 0 1
UUID=ff7d751d-e2c2-404a-a368-aeda2eed4ba1 /var           btrfs   defaults,noatime 0 2
UUID=b2bbbfc7-a82a-4a9f-8570-21a5cd6818ee /home          btrfs   defaults,noatime 0 2
UUID=655883e2-7dfe-4bb4-a88b-ade8768ee7b4 /mnt/data	 ext4    defaults,noatime 0 2

parted -l (from liveusb via chroot)

[root@EndeavourOS /]# parted -l
Model: ATA WDC WD20EZRZ-00Z (scsi)
Disk /dev/sda: 2000GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags: 

Number  Start   End     Size    File system  Name  Flags
 1      1049kB  2000GB  2000GB  ext4


Model: Intenso Ul tra Line (scsi)
Disk /dev/sdb: 15.6GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags: 

Number  Start   End     Size    Type     File system  Flags
 1      1049kB  15.6GB  15.6GB  primary               boot
 2      15.6GB  15.6GB  33.6MB  primary  fat16        esp


Model: Samsung SSD 980 PRO 1TB (nvme)
Disk /dev/nvme0n1: 1000GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 

Number  Start   End     Size    File system  Name  Flags
 1      1049kB  1075MB  1074MB  fat32              msftdata
 2      1075MB  54.8GB  53.7GB  btrfs
 3      54.8GB  87.0GB  32.2GB  btrfs
 4      87.0GB  1000GB  913GB   btrfs