How to add boot entry in grub menu manually

29 views
Skip to first unread message

Taehwan Kim

unread,
May 16, 2020, 10:46:29 AM5/16/20
to qubes-users
Hi guys
I just installed Manjaro KDE into my one of my hdd.
But Manjaro can't find other Qubes. So I tried to add boot menu entry manually in cat /etc/grub.d/40_custom file like this

```
menuentry "Qubes OS" {
        insmod ext2
        set root=(hd2,gpt1)
        search --no-floppy --set=root --fs-uuid a29050c3-b26d-4463-9023-b1e9526e0998
        linux /boot/vmlinuz-4.19.107-1.pvops.qubes.x86_64 root=UUID=a29050c3-b26d-4463-9023-b1e9526e0998 rw quiet
        initrd /boot/initramfs-4.19.107-1.pvops.qubes.x86_64.img
}
```
I tried to change uuid from sda1 and sda2, but both doesn't work.
and

`fdisk -l`

result looks like this

```
Disk /dev/sda: 931.53 GiB, 1000204886016 bytes, 1953525168 sectors
Disk model: Samsung SSD 860
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: 4F249017-051F-4603-B150-2EEA41F63236

Device       Start        End    Sectors  Size Type
/dev/sda1     2048    1026047    1024000  500M EFI System
/dev/sda2  1026048 1953523711 1952497664  931G Linux filesystem
```
and `blkid` result looks like this
```
/dev/sda1: SEC_TYPE="msdos" UUID="0FF4-E642" BLOCK_SIZE="512" TYPE="vfat" PARTLABEL="EFI System Partition" PARTUUID="a3767e23-4820-4ecd-90e4-c908c513b3f4"
/dev/sda2: UUID="a29050c3-b26d-4463-9023-b1e9526e0998" TYPE="crypto_LUKS" PARTUUID="f8ebc046-fdc0-4782-86c4-90c0a2c37486"
```

When I select to boot Qubes OS, I got errors
```
error: no such device: a29050c3-b26d-4463-9023-b1e9526e0998.
error: file /boot/vmlinuz-4.19.107-1.pvops.qubes.x86_64 not found
error: you need to load the kernel first.
```
But I can boot from Manjaro live usd, when I select detect efi boot in the menu.
It finds Qubes os and I can boot it
```
(hd2, gpt1) /efi/qubes/xen-4.8.5-14.fc25.efi
```

And I also did run
sudo update-grub
and tried
sudo os-prober
But can't find that linux.

Do you guys have any idea how I can add this os into Manjaro boot menu?
Thanks!

Mike Keehan

unread,
May 16, 2020, 11:59:14 AM5/16/20
to qubes...@googlegroups.com
Research dual booting Linux. It's not a Qubes problem, so you will find
much more help by looking up how to dual boot.

Mike.

Reply all
Reply to author
Forward
0 new messages