Manjaro-chroot error: no Linux partitions detected / broken filesystem

Hello there.

I messed with my partitions (I have a single disk with a Windows+Manjaro dual boot, or what’s left of it now…) notably trying to move my Manjaro partition with Kparted (last time of my life, promised), and now my computer won’t boot into anything anymore, directly getting to grub rescue mode when I start it.

I have tried to save my existing data with various tools, of which TestDisk seemed the most successful, and am now following the GRUB/Restore the GRUB Bootloader tutorial. Everything works like a charm until I manjaro-chroot -a, where I get:

[manjaro /]# manjaro-chroot -a
find: '/root/.cache/mesa_shader_cache/3c': Bad message
find: '/root/.cache/mesa_shader_cache/fd': Bad message
find: '/root/.cache/mesa_shader_cache/2f': Bad message
find: '/root/.cache/mesa_shader_cache/a0': Bad message
find: '/root/.cache/mesa_shader_cache/ea': Bad message
find: '/root/.cache/mesa_shader_cache/46': Bad message
find: '/root/.cache/mesa_shader_cache/c9': Bad message
find: '/root/.cache/mesa_shader_cache/4e': Bad message
find: '/root/.cache/mesa_shader_cache/1f': Bad message
find: '/root/.cache/mesa_shader_cache/de': Bad message
find: '/root/.cache/mesa_shader_cache/80': Bad message
find: '/root/.cache/mesa_shader_cache/34': Bad message
find: '/root/.cache/mesa_shader_cache/74': Bad message
find: '/root/.cache/mesa_shader_cache/01': Bad message
find: '/root/.cache/mesa_shader_cache/30': Bad message
grub-probe: error: cannot find a GRUB drive for /dev/sda1.  Check your device.map.
grub-probe: error: cannot find a GRUB drive for /dev/sda1.  Check your device.map.
==> ERROR: No Linux partitions detected!

So no GRUB on /dev/sda1 is normal (I guess) since it’s the USB stick I’m currently live booted on. But I have mounted the relevant (seemingly still broken) Manjaro (/dev/nvme0n1p3) and UEFI (/dev/nvme0n1p1) partitions to /mnt and /mnt/boot/efi respectively, and manjaro-chroot does not find them:

[manjaro /]# manjaro-chroot /mnt
find: '/root/.cache/mesa_shader_cache/3c': Bad message
find: '/root/.cache/mesa_shader_cache/fd': Bad message
find: '/root/.cache/mesa_shader_cache/2f': Bad message
find: '/root/.cache/mesa_shader_cache/a0': Bad message
find: '/root/.cache/mesa_shader_cache/ea': Bad message
find: '/root/.cache/mesa_shader_cache/46': Bad message
find: '/root/.cache/mesa_shader_cache/c9': Bad message
find: '/root/.cache/mesa_shader_cache/4e': Bad message
find: '/root/.cache/mesa_shader_cache/1f': Bad message
find: '/root/.cache/mesa_shader_cache/de': Bad message
find: '/root/.cache/mesa_shader_cache/80': Bad message
find: '/root/.cache/mesa_shader_cache/34': Bad message
find: '/root/.cache/mesa_shader_cache/74': Bad message
find: '/root/.cache/mesa_shader_cache/01': Bad message
find: '/root/.cache/mesa_shader_cache/30': Bad message
==> ERROR: Can't create chroot on non-directory /mnt

A few relevant commands, and their output:

blkid
[manjaro /]#  blkid
/dev/loop1: TYPE="squashfs"
/dev/nvme0n1p5: LABEL="RecoveryImage" BLOCK_SIZE="512" UUID="1236544A365430C9" TYPE="ntfs" PARTUUID="fda3d466-a532-45ff-916c-ee3b408cdb49"
/dev/nvme0n1p3: LABEL="Manjaro" UUID="86752d73-d1a7-4a07-a5ef-eac2f4240858" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="732d7586-a7d1-074a-a5ef-eac2f4240858"
/dev/nvme0n1p1: LABEL_FATBOOT="SYSTEM" LABEL="SYSTEM" UUID="6051-82BF" BLOCK_SIZE="512" TYPE="vfat" PARTLABEL="EFI System Partition" PARTUUID="42ca93dc-1089-4fca-a460-59845935e6cc"
/dev/nvme0n1p4: LABEL="WinRE" BLOCK_SIZE="512" UUID="EC025255025224BC" TYPE="ntfs" PARTUUID="084c9503-a85f-489e-a5d2-23bbbbf9148a"
/dev/nvme0n1p2: LABEL="Windows" BLOCK_SIZE="512" UUID="022052002051FB5D" TYPE="ntfs" PARTUUID="48564bd7-a356-41f7-829e-e1f12fac624f"
/dev/loop2: TYPE="squashfs"
/dev/loop0: TYPE="squashfs"
/dev/sda2: SEC_TYPE="msdos" LABEL_FATBOOT="MISO_EFI" LABEL="MISO_EFI" UUID="F9BD-9F40" BLOCK_SIZE="512" TYPE="vfat"
/dev/sda1: BLOCK_SIZE="2048" UUID="2021-04-28-10-10-01-00" LABEL="MANJARO_KDE_2103" TYPE="iso9660"
/dev/loop3: TYPE="squashfs"
fdisk -x
[manjaro /]# fdisk -x
Disk /dev/nvme0n1: 476.94 GiB, 512110190592 bytes, 1000215216 sectors
Disk model: ESR512GTLCG-EAC-4                       
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: 9730EF46-9605-4F15-8DED-7400F43F143C
First LBA: 34
Last LBA: 1000215182
Alternative LBA: 1000215215
Partition entries LBA: 2
Allocated partition entries: 128

Device             Start        End   Sectors Type-UUID                            UUID                                 Name                 Attrs
/dev/nvme0n1p1      2048     534527    532480 C12A7328-F81F-11D2-BA4B-00A0C93EC93B 42CA93DC-1089-4FCA-A460-59845935E6CC EFI System Partition 
/dev/nvme0n1p2    567296  206801944 206234649 EBD0A0A2-B9E5-4433-87C0-68B6B72699C7 48564BD7-A356-41F7-829E-E1F12FAC624F                      
/dev/nvme0n1p3 206801951  963239934 756437984 0FC63DAF-8483-4772-8E79-3D69D8477DE4 732D7586-A7D1-074A-A5EF-EAC2F4240858                      
/dev/nvme0n1p4 963239936  965337087   2097152 EBD0A0A2-B9E5-4433-87C0-68B6B72699C7 084C9503-A85F-489E-A5D2-23BBBBF9148A                      
/dev/nvme0n1p5 965337088 1000214527  34877440 EBD0A0A2-B9E5-4433-87C0-68B6B72699C7 FDA3D466-A532-45FF-916C-EE3B408CDB49                      


Disk /dev/sda: 7.23 GiB, 7759462400 bytes, 15155200 sectors
Disk model: TransMemory     
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: 0x00000000

Device     Boot   Start     End Sectors Id Type               Start-C/H/S   End-C/H/S Attrs
/dev/sda1  *         64 5621135 5621072  0 Empty                    0/2/1  1021/48/16    80
/dev/sda2       5621136 5629327    8192 ef EFI (FAT-12/16/32)  1021/48/17 1022/132/16 


Disk /dev/loop0: 25.96 MiB, 27222016 bytes, 53168 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


Disk /dev/loop1: 370.45 MiB, 388444160 bytes, 758680 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


Disk /dev/loop2: 1.55 GiB, 1662545920 bytes, 3247160 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


Disk /dev/loop3: 696.37 MiB, 730193920 bytes, 1426160 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
os-prober
[manjaro manjaro]# os-prober
/dev/nvme0n1p1@/EFI/Microsoft/Boot/bootmgfw.efi:Windows Boot Manager:Windows:efi
/dev/nvme0n1p3:Manjaro Linux (21.1.0):ManjaroLinux:linux
grub-probe: error: cannot find a GRUB drive for /dev/sda1.  Check your device.map.
grub-probe: error: cannot find a GRUB drive for /dev/sda1.  Check your device.map.

Any ideas of what I could do to access GRUB / fix my partitions again?

I was finally able to fix this mess by… following the wiki and using fsck on my damaged partition thereafter (which was proposed automatically, amazing).

I didn’t understand that one would either manually manjaro-chroot <mount path> <shell> or use the “automatic” version manjaro-chroot -a. I think the formatting of the wiki page isn’t very clear, but since I’m far from an expert, I certainly don’t want to modify it in case I’m wrong.

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