How to boot a Linux ISO image file from the hard disk

  
                

Usually when we start the Linux ISO image, we need to burn to the CD first. This will be more troublesome. Is there any way to boot the Linux ISO image directly from the hard disk? This requires the use of GRUB2 boot load, the following small series will give you a detailed introduction.

get Linux ISO file

This cheat need to have a Linux system on your hard drive, your computer must use the GRUB2 boot loader, which is most Linux systems The standard boot loader. Sorry, you can't use the Windows boot loader to launch a Linux ISO file directly.

Download the ISO file you want to use and put it in your Linux partition. GRUB2 should support most Linux systems. If you want to use them in a live environment and don't want to install them on your hard drive, make sure you download the version of the Linux ISO's "live CD". Many Linux-based bootable tools should also work.

Checking the contents of an ISO file

You may need to look inside the ISO file to know where those specific files are. For example, you can open ISO files by using graphical applications such as Archive Manager/File Manager in Ubuntu and other GNOME-based desktop environments. In the Nautilus file manager, right click on the ISO file and select Open with Archive Manager.

Locate the kernel file and the initrd image. If you are using Ubuntu ISO files, you will find these files in the casper folder ——vmlinuz files are Linux kernels, and initrd files are initrd images. Later, you need to know where they are in the ISO file. Different

Check the hard disk partition path

GRUB using Linux & ldquo; device name & rdquo; mode. On Linux systems, /dev/sda0 is the first partition on the hard disk — —a refers to the first hard disk, and 0 refers to the first partition. In GRUB, corresponding to /dev/sda0 is (hd0,1). 0 refers to the first hard disk, and 1 refers to the first partition above it. In other words, in the GRUB device name, the disk number starts counting from 0, and the partition number starts counting from 1 —— Yes, this is really confusing. For example, (hd3, 6) refers to the sixth partition on the fourth disk.

You can use the fdisk -l command to view this information. On Ubuntu, open the terminal and run the following command:

sudo fdisk -l

You will see a list of Linux device paths, which you can convert to GRUB device names yourself. For example, in the image below, we can see that there is a system partition that is /dev/sda1—— then, for GRUB, it is (hd0,1).
Previous12Next Total 2 Pages

Copyright © Windows knowledge All Rights Reserved