Find disk with GRUB
Posted: Fri Nov 02, 2018 4:23 am
Good day! I can not set the correct parameters for GRUB. No matter how hard I try, I end up with zero connected modules / mods. In GRUB checked the disk, UUID and partition, in grub indicated correctly.
Code: Select all
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
menuentry "os" {
search --no-floppy --fs-uuid --set=root a15a3016-0700-4ca1-8f4f-e05f0d946417
multiboot /boot/os root=UUID=a15a3016-0700-4ca1-8f4f-e05f0d946417
}
Code: Select all
if(mboot_ptr->mods_count > 0) //always a false