User talk:Gabriel-mlt: Difference between revisions

From Alpine Linux
(→‎test [2]: new section)
 
(6 intermediate revisions by the same user not shown)
Line 6: Line 6:


test [2]
test [2]
== Directly booting an ISO file - Multi-Boot USB Stick ==
**** STILL BEING CREATED ****
{| class="wikitable"
|+ Page Info [ * ]
|-
| '''Method Of Date Produced [ bash ]''' || '''''<small>TZ='Europe/Malta' date +"%Y-%m-%d %H:%M:%S"</small>'''''
|-
| '''Created Date''' || 2026-03-22 00:23:27
|-
| '''First Published Date''' || [ n/a ]
|-
| '''Last Modified Date''' || [ n/a ]
|-
| '''Created By''' || --[[User:Gabriel-mlt|Gabriel-mlt]] ([[User talk:Gabriel-mlt|talk]]) 23:28, 21 March 2026 (UTC)
|}
=== Master GRUB Multiboot USB Setup ===
This guide explains how to install a master GRUB bootloader onto a USB stick to boot multiple ISOs from dedicated partitions.
=== 1. Prepare the Environment ===
First, install the necessary tools and identify your USB drive:
<source lang="bash">
sudo apt update && sudo apt install grub-pc-bin grub-efi-amd64-bin mtools
lsblk # Identify your USB (e.g., /dev/sdb)
</source>
=== 2. Partitioning the USB ===
Use '''gdisk''' or '''fdisk''' to create the following structure:
* '''Partition 1:''' EFI System Partition (500MB, FAT32) - Target: /dev/sdb1
* '''Partition 2:''' ISO/Data Storage (Remaining space, ext4 or NTFS) - Target: /dev/sdb2
=== 3. Mount and Install GRUB ===
Mount the EFI partition and install the bootloader for both UEFI and BIOS compatibility.
<source lang="bash">
sudo mount /dev/sdb1 /mnt
sudo grub-install --target=x86_64-efi --efi-directory=/mnt --boot-directory=/mnt/boot --removable /dev/sdb
</source>
=== 4. Configure the Multiboot Menu ===
Create the configuration file at <code>/mnt/boot/grub/grub.cfg</code>:
<source lang="text">
set timeout=10
set default=0
# Example: Booting an ISO from the second partition
menuentry "Ubuntu 24.04 LTS Live" {
    set isofile="/iso/ubuntu-24.04.iso"
    loopback loop (hd0,gpt2)$isofile
    linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=$isofile quiet splash
    initrd (loop)/casper/initrd
}
# Example: Booting Windows PE/Lite via Memdisk
menuentry "Windows Lite (RAM Mode)" {
    linux16 /boot/memdisk iso raw
    initrd16 /iso/windows_lite.iso
}
</source>
=== 5. Finalize ===
Ensure you copy the <code>memdisk</code> binary to <code>/mnt/boot/</code> and place your ISOs in the <code>/iso</code> folder on the second partition.
<source lang="bash">
sudo cp /usr/lib/syslinux/memdisk /mnt/boot/
sudo umount /mnt
</source>
[[Category:Ubuntu]] [[Category:Tutorials]]
<nowiki>Insert non-formatted text here</nowiki>

Latest revision as of 23:39, 21 March 2026

test [1]

test [1]

test [2]

test [2]

Directly booting an ISO file - Multi-Boot USB Stick

        • STILL BEING CREATED ****
Page Info [ * ]
Method Of Date Produced [ bash ] TZ='Europe/Malta' date +"%Y-%m-%d %H:%M:%S"
Created Date 2026-03-22 00:23:27
First Published Date [ n/a ]
Last Modified Date [ n/a ]
Created By --Gabriel-mlt (talk) 23:28, 21 March 2026 (UTC)

Master GRUB Multiboot USB Setup

This guide explains how to install a master GRUB bootloader onto a USB stick to boot multiple ISOs from dedicated partitions.

1. Prepare the Environment

First, install the necessary tools and identify your USB drive: <source lang="bash"> sudo apt update && sudo apt install grub-pc-bin grub-efi-amd64-bin mtools lsblk # Identify your USB (e.g., /dev/sdb) </source>

2. Partitioning the USB

Use gdisk or fdisk to create the following structure:

  • Partition 1: EFI System Partition (500MB, FAT32) - Target: /dev/sdb1
  • Partition 2: ISO/Data Storage (Remaining space, ext4 or NTFS) - Target: /dev/sdb2

3. Mount and Install GRUB

Mount the EFI partition and install the bootloader for both UEFI and BIOS compatibility. <source lang="bash"> sudo mount /dev/sdb1 /mnt sudo grub-install --target=x86_64-efi --efi-directory=/mnt --boot-directory=/mnt/boot --removable /dev/sdb </source>

4. Configure the Multiboot Menu

Create the configuration file at /mnt/boot/grub/grub.cfg: <source lang="text"> set timeout=10 set default=0

  1. Example: Booting an ISO from the second partition

menuentry "Ubuntu 24.04 LTS Live" {

   set isofile="/iso/ubuntu-24.04.iso"
   loopback loop (hd0,gpt2)$isofile
   linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=$isofile quiet splash
   initrd (loop)/casper/initrd

}

  1. Example: Booting Windows PE/Lite via Memdisk

menuentry "Windows Lite (RAM Mode)" {

   linux16 /boot/memdisk iso raw
   initrd16 /iso/windows_lite.iso

} </source>

5. Finalize

Ensure you copy the memdisk binary to /mnt/boot/ and place your ISOs in the /iso folder on the second partition. <source lang="bash"> sudo cp /usr/lib/syslinux/memdisk /mnt/boot/ sudo umount /mnt </source>

Insert non-formatted text here