Power loss during system upgrade

My laptop experienced power loss during a system upgrade and now I can’t get past grub. I suspect I have the same issue as described here;

However when mounting I get an error “wrong FS”. If someone could tell me what commands you need to see to help me I would greatly appreciate it

We would need to see both the commands you are running in the live session to recover and the output of:

lsblk -o name,type,fstype,size
[root@EndeavourOS liveuser]# fdisk -l
Disk /dev/nvme0n1: 238.47 GiB, 256060514304 bytes, 500118192 sectors
Disk model: KXG50ZNV256G NVMe TOSHIBA 256GB         
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 5978D979-FE10-344E-8A07-AE9CB26B4A77

Device             Start       End   Sectors   Size Type
/dev/nvme0n1p1      4096    618495    614400   300M EFI System
/dev/nvme0n1p2    618496 481648510 481030015 229.4G Linux filesystem
/dev/nvme0n1p3 481648511 500103449  18454939   8.8G Linux swap


Disk /dev/sda: 14.42 GiB, 15483273216 bytes, 30240768 sectors
Disk model: DataTraveler 2.0
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00097d13

Device     Boot Start      End  Sectors  Size Id Type
/dev/sda1  *     2048 30240767 30238720 14.4G  c W95 FAT32 (LBA)


Disk /dev/loop0: 1.68 GiB, 1806184448 bytes, 3527704 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
[root@EndeavourOS liveuser]# lsblk -o name,type,fstype,size
NAME        TYPE FSTYPE     SIZE
loop0       loop squashfs   1.7G
sda         disk           14.4G
└─sda1      part vfat      14.4G
nvme0n1     disk          238.5G
├─nvme0n1p1 part vfat       300M
├─nvme0n1p2 part ext4     229.4G
└─nvme0n1p3 part swap       8.8G
[root@EndeavourOS liveuser]# mount /dev/nvme0n1 /mnt/
mount: /mnt: wrong fs type, bad option, bad superblock on /dev/nvme0n1, missing codepage or helper program, or other error.
sudo mount /dev/nvme0n1p2 /mnt
sudo mount /dev/nvme0n1p1 /mnt/boot/efi
sudo arch-chroot /mnt
4 Likes

Thanks! Worked flawlessly, however mkinitcpio -P returns an error

[root@EndeavourOS liveuser]# arch-chroot /mnt
[root@EndeavourOS /]# mkinitcpio -P
==> ERROR: No presets found in /etc/mkinitcpio.d

Reinstall your kernel

pacman -Syu linux linux-headers
4 Likes

After that re-run mkinitcpio -P?

No, that should be run as part of installing the kernel.

3 Likes

Thank you so much! You saved me hours of trial and error.

4 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.