[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Double boot (Windows & Debian) with UEFI mode



On Fri 03 Dec 2021 at 12:22:45 (+0100), frantal@libero.it wrote:

> I was unable to install Grub. Via ‘rescue mode’ of installation cd, it doesn't make me do it; takes me to the partitioning window. Then I did a reboot which gave me a screenshot
> error: file ‘/boot/grub/i386-pc/normal.mod’ not found.
> 
> On:
> 
> grub rescue>ls 
> (hd0) (hd0,gpt8) (hd0,gpt7) (hd0,gpt6) (hd0,gpt5) (hd0,gpt4) (hd0,gpt3) (hd0,gpt2) (hd0,gpt1)
> 
> By giving ls command to each partition only (hd0,gpt6) and (hd0,gpt8) are given as ext2 filesystem (the other as ‘unknown’ filesystem)
> Then, to know more, I gave the following commands:
> 
> grub rescue> ls (hd0,gpt6)/
> ./ ../ lost+found/ home/ etc/ media/ vmlinuz.old var/ bin usr/ sbin lib lib32 lib64 libx32 boot/ dev/ proc/ root/ run/ sys/ tmp/ mnt/ srv/ apt/ debootstrap/ initrd.img.old vmlinuz initrd.img
> 
> grub rescue> ls (hd0,gpt6)/boot
> ./ ../ config-5.10.0-9-amd64 vmlinuz-5.10.0-9-amd64 efi/ System.map-5.10.0-9-amd64 initrd.img-5.10.0-9-amd64
> 
> Now I don't know how I can do to continue and if this datas can be useful to solve

I think you should be able to boot linux directly
by typing (I haven't tried this):

grub> search --set=root --file /vmlinuz
grub> echo $root                          ought to reply (hd0,gpt6)

grub> linux /vmlinuz root=/dev/sda6 ro quiet

grub> initrd /initrd.img

grub> boot

When the system is up and running, check and/or reinstall grub with:

# grub-install /dev/sda

You could then satisfy our curiosity by typing:

# ls /sys/firmware/efi

but you could also, having installed grub, check the
contents listed by:

# ls -lR /boot/efi/

It should look something like below, but with extra windows stuff.
The file /boot/efi/EFI/debian/grub.cfg should contain something
like:

 search.fs_uuid 12345678-abcd-9876-5432-abcdef123456 root hd0,gpt6 
 set prefix=($root)'/boot/grub'
 configfile $prefix/grub.cfg

The listing:

/boot/efi:
total 1
drwx------ 3 512 May 19  2021 EFI

/boot/efi/EFI:
total 1
drwx------ 2 512 May 19  2021 debian

/boot/efi/EFI/debian:
total 3328
-rwx------ 1     108 Jul 29 15:33 BOOTX64.CSV
-rwx------ 1   84176 Jul 29 15:33 fbx64.efi
-rwx------ 1     126 Jul 29 15:33 grub.cfg
-rwx------ 1 1549696 Jul 29 15:33 grubx64.efi
-rwx------ 1  842104 Jul 29 15:33 mmx64.efi
-rwx------ 1  930016 Jul 29 15:33 shimx64.efi

Cheers,
David.


Reply to: