Install from HardDisk - Fedora 32 - Boot Live ISO from HDD using Grub

Hello,

I want to install Fedora 32 but I dont want to make a LiveUSB, for some reasons I cannot use USB/DVD method, but I need to install the LiveISO from HDD.

The steps I already done : -
I have downloaded the file Fedora-KDE-Live-x86_64-32-1.6.iso and copied to location /boot/images/

when I opened the file /boot/images/Fedora-KDE-Live-x86_64-32-1.6.iso/EFI/BOOT/grub.cfg the below lines, I noticed

BEGIN /etc/grub.d/10_linux

menuentry 'Start Fedora-KDE-Live 32' --class fedora --class gnu-linux --class gnu --class os {
	linuxefi /images/pxeboot/vmlinuz root=live:CDLABEL=Fedora-KDE-Live-32-1-6  rd.live.image quiet
	initrdefi /images/pxeboot/initrd.img
} 

Then I edited the file /etc/grub.d/40_custom as below

 menuentry 'Start Fedora-KDE-Live 32 normal'  --class fedora --class gnu-linux --class gnu --class os {
	set isofile='/boot/images/Fedora-KDE-Live-x86_64-32-1.6.iso'
	loopback loop (hd0,2)/$isofile
	linux (loop)/isolinux/vmlinuz root=live:CDLABEL=Fedora-KDE-Live-x86_64-32-1.6 iso-scan/filename=$isofile rd.live.image quiet
	initrd (loop)/isolinux/initrd.img
}

menuentry 'Fedora-KDE-Live 32 efi' --class fedora --class gnu-linux --class gnu --class os {
    set isofile='/boot/images/Fedora-KDE-Live-x86_64-32-1.6.iso'
	loopback loop (hd0,2)/$isofile
    linuxefi /images/pxeboot/vmlinuz root=live:CDLABEL=Fedora-KDE-Live-32-1-6  rd.live.image quiet
	initrdefi /images/pxeboot/initrd.img
} 

The reason I added two entries because I was not sure which option ( linux or linuxefi) would work. (hd0,2) => /dev/sda2 is my root drive

I updated grub then rebooted the machine. I selected Fedora-KDE-Live 32 efi entry and error says no vmlinuz found . So I rebooted again and this time I chose Start Fedora-KDE-Live 32 normal entry. Now I got the Lenovo banner on the screen, it kept showing for next 10 minutes, nothing happened. I rebooted and tried again and again I got the Screen with Lenovo banner. Nothing happens.

Is there any one know how to successfully install Fedora 3 using LiveISO-HDD-Grub method ?

my machine details : 64Bit
81D2 Lenovo ideapad 330-15ARR
CPU: AMD Ryzen 5 2500U with Radeon Vega Mobile Gfx @ 8x 2GHz
GPU: AMD RAVEN
RAM: 8GB

thank you .

well, no reply so far but I have fixed this be below code

 menuentry "Fedora 32" --class fedora --class gnu-linux --class gnu --class os {
        set iso_path="boot/images/Fedora-KDE-Live-x86_64-32-1.6.iso"
        export iso_path
        search --set=root --file $iso_path
        loopback loop (hd0,2)/$iso_path
        probe --set isolabel --label (loop)
        linux (loop)/isolinux/vmlinuz root=live:CDLABEL=${isolabel} rd.live.image verbose iso-scan/filename=${iso_path}
        initrd (loop)/isolinux/initrd.img
}

its in /etc/grub.d/40_custom

1 Like