Jump to content


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.

Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

* * * * * 2 votes

How to boot a Linux Mint ISO from HDD using Grub2

  • Please log in to reply
No replies to this topic

#1 Al1000


  • Global Moderator
  • 8,026 posts
  • Gender:Male
  • Location:Scotland
  • Local time:12:23 AM

Posted 20 November 2015 - 05:50 AM

How to boot a Linux Mint ISO image from HDD using Grub2

Guide Overview

The purpose of this guide is to teach you how to boot a Linux Mint ISO image file from your hard drive using Grub2. Normally to boot from an ISO image, the file is burned to CD/DVD or USB. However if you already use Linux the chances are you are using Grub2 bootloader, which means you can boot a Mint ISO image directly from your computer's internal drive.

Tools Needed
  • Computer with Grub2 installed
  • Linux Mint ISO image
  • Open your custom Grub2 file /etc/grub.d/40_custom in a text editor. For example to open the file in nano, run this command in a terminal:
    sudo nano /etc/grub.d/40_custom
    Here is a sample file.


    The last entry is the one that relates to this tutorial, which is as follows:

    menuentry 'Mint 17.2 64bit ISO' {
    set isofile="/Downloads_Files/linuxmint-17.2-cinnamon-64bit.iso"
    loopback loop (hd0,8)$isofile
    linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=$isofile quiet splash
    initrd (loop)/casper/initrd.lz
    You can either type everything out yourself, or else copy and paste the above code into your 40_custom file then edit it according to the following instructions. For the purpose of this tutorial I'll assume you have copied and pasted it, and are now going to edit it.
  • In the first line, change Mint 17.2 64bit ISO to whatever you want your Grub2 menu to say
  • In the second line, change /Downloads_Files/linuxmint-17.2-cinnamon-64bit.iso to the path to the ISO file on your computer that you want to boot into.
  • In the third line, change hd0,8 to the partition on your computer that the ISO is stored on. Note that when using the hd designation, devices (drives) begin at 0, and partitions begin at 1. My ISO file is on sda8, which translates to hd0,8.
  • Now save and close your text editor.
  • Update grub by running the following command in a terminal:
    sudo update-grub
That's all there is to it. Now you can reboot your computer and select your ISO from the Grub menu. :)

Edited by Al1000, 02 January 2017 - 01:54 PM.

BC AdBot (Login to Remove)


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users