You are not logged in.

#1 2022-04-23 06:57:55

Mladia
Member
Registered: 2016-04-30
Posts: 59

[SOLVED] Refind does not recognise Arch

When I reinstalled Windows, I formatted by mistake my boot partition. I recreated and reformatted the boot partition and reinstalled it with "refind-install" from the live USB. When I boot from the SSD, refind starts, but it recognizes only the Windows installation, the live USB, but not the Linux installation on the other partition.

fdisk -l

Disk /dev/sda: 465.76 GiB, 500107862016 bytes, 976773168 sectors
Disk model: Samsung SSD 850 
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: 43B7B086-B4AA-11E9-B8FF-605718AD1091

Device         Start       End   Sectors   Size Type
/dev/sda1       2048    206847    204800   100M EFI System
/dev/sda2     206848    239615     32768    16M Microsoft reserved
/dev/sda3     239616 722276351 722036736 344.3G Microsoft basic data
/dev/sda4  722276352 723513343   1236992   604M Windows recovery environment
/dev/sda5  724563968 749725695  25161728    12G Linux swap
/dev/sda6  749727744 753919999   4192256     2G Linux filesystem
/dev/sda7  753922048 837664767  83742720  39.9G Linux filesystem
/dev/sda8  837666816 949866495 112199680  53.5G Linux filesystem
/dev/sda9  949866496 976773134  26906639  12.8G Intel Fast Flash
/dev/sda10 723513344 724563967   1050624   513M EFI System

Partition table entries are not in disk order.

/dev/sda7 is my root partition, /dev/sda8 is home and /dev/sda10 is the boot partition.

ls -l /dev/disk/by-uuid/
total 0
lrwxrwxrwx 1 root root 10 Apr 23 06:40 1DE8-2B64 -> ../../sdb1
lrwxrwxrwx 1 root root 10 Apr 23 06:40 2021-03-01-14-38-40-00 -> ../../sdc1
lrwxrwxrwx 1 root root 10 Apr 23 06:40 24CF-AC5D -> ../../sda1
lrwxrwxrwx 1 root root 10 Apr 23 06:40 4083e29c-0a81-427e-973b-19a5d757c062 -> ../../sda8
lrwxrwxrwx 1 root root 11 Apr 23 06:40 54B6-9FCF -> ../../sda10
lrwxrwxrwx 1 root root 10 Apr 23 06:40 5c8aa9b7-643f-498e-91b4-7a9aed6fdf22 -> ../../sda5
lrwxrwxrwx 1 root root 10 Apr 23 06:40 981006AD10069304 -> ../../sda4
lrwxrwxrwx 1 root root 10 Apr 23 06:40 9cd706d8-caad-4612-a35c-ceeac69e5ecd -> ../../sda7
lrwxrwxrwx 1 root root 10 Apr 23 06:40 B66CD1216CD0DD65 -> ../../sda3
lrwxrwxrwx 1 root root 10 Apr 23 06:40 CEBF-205D -> ../../sdc2
lrwxrwxrwx 1 root root 10 Apr 23 06:40 d47c3922-5159-440c-bd37-9f7b783a8a82 -> ../../sda6

cat /mnt/etc/fstab (from a live usb and when I have /dev/sda7 on /mnt)

# Static information about the filesystems.
# See fstab(5) for details.

# <file system> <dir> <type> <options> <dump> <pass>
# /dev/sda7
UUID=9cd706d8-caad-4612-a35c-ceeac69e5ecd	/         	ext4      	rw,relatime	0 1

# /dev/sda9
UUID=4083e29c-0a81-427e-973b-19a5d757c062      /home         	ext4      	rw,relatime	0 1

# /dev/sda10
UUID=54B6-9FCF      	/boot     	vfat      	rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro	0 2

# /dev/sda5
UUID=5c8aa9b7-643f-498e-91b4-7a9aed6fdf22	none      	swap      	defaults  	0 0

After I have mounted /dev/sda10 on /mnt/boot
cat /mnt/boot/refind_linux.conf

"Boot with standard options"   "ro root=UUID=9cd706d8-caad-4612-a35c-ceeac69e5ecd"
#"Boot with standard options"  "archisobasedir=arch archisolabel=ARCH_202103"
#"Boot to single-user mode"    "archisobasedir=arch archisolabel=ARCH_202103 single"
#"Boot with minimal options"   "ro root=UUID=9cd706d8-caad-4612-a35c-ceeac69e5ecd"

What am I missing?

Last edited by Mladia (2022-04-23 07:58:05)

Offline

#2 2022-04-23 07:29:37

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,687

Re: [SOLVED] Refind does not recognise Arch

Have you checked efibootmgr for your boot entries? Arch might have gotten erased from the firmware NVRAM.

Offline

#3 2022-04-23 07:41:16

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,285

Re: [SOLVED] Refind does not recognise Arch

You don't need distinct NVRAM entries if refind works and is supposed to give you bootable kernels.

If you intend your EFI partition to be your /boot partition then the kernel images will have gotten wiped out as well. Did your reinstall the linux package or reran mkinitcpio -P after formatting and mounting the /boot partition?

Offline

#4 2022-04-23 07:57:32

Mladia
Member
Registered: 2016-04-30
Posts: 59

Re: [SOLVED] Refind does not recognise Arch

Yes, the linux images from under /boot were missing. Reinstalling "linux" solved the issue. Thank you.

Offline

Board footer

Powered by FluxBB