You are not logged in.

#1 2016-05-02 14:32:14

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,068
Website

Boot the BunsenLabs live ISO image from a hard drive

It is possible to use GRUB to boot a live ISO image from an internal hard drive.

This can be useful for rescuing broken systems, internet banking and installing BunsenLabs without a CD/DVD or USB stick.

First, download the ISO image and copy it to /boot

sudo cp bl-Hydrogen*.iso /boot/bl.iso

Then create a custom menu entry to boot the image:

Edit the file at /etc/grub.d/40_custom (as root!) so that it looks like this:

#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
menuentry 'The Lab' {
	loopback loop (hd0,2)/boot/bl.iso
	linux (loop)/live/vmlinuz boot=live config fromiso=/dev/sda2/boot/bl.iso
	initrd (loop)/live/initrd.img
}

In this example, the root filesystem is on /dev/sda2, change this as needed.

The loopback loop (hd0,2) line uses GRUB's designation for the partition holding the ISO image -- the drive ("hd") is counted from zero (so /dev/sda becomes hd0) and the partitions are counted from one (thus /dev/sda2 becomes (hd0,2)).

All paths should be relative to the defined partition.

Finally, save the file and update the GRUB configuration with:

sudo grub-mkconfig -o /boot/grub/grub.cfg

When the system is rebooted, there should be a GRUB menu entry called "The Lab" that will start the live session.

Offline

Board footer

Powered by FluxBB