LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxQuestions.org Member Success Stories
User Name
Password
LinuxQuestions.org Member Success Stories Just spent four hours configuring your favorite program? Just figured out a Linux problem that has been stumping you for months?
Post your Linux Success Stories here.

Notices


Reply
  Search this Thread
Old 04-02-2018, 05:44 PM   #1
zpimp
Member
 
Registered: Oct 2014
Posts: 73

Rep: Reputation: Disabled
multiboot usb grub iso loop


i wanted to make a multiboot usb on linux, without any additional programs, just grub and gparted (for formatting)
this is the only thing i still keep a windows hdd around, now im free

iso files tested:
antiX-17.1_386-full.iso
linuxmint-18.3-mate-32bit.iso
lubuntu-17.10.1-desktop-i386.iso
kali-linux-2018.1-i386.iso
debian-live-9.4.0-i386-lxde+nonfree.iso
manjaro-xfce-17.1.7-stable-x86_64.iso

grub, the bootloader on many linux distros has the ability to mount iso files and boot them
so we need an empty flash drive with a single partition, for convenience use gparted to delete the partitions and make a single ext2 partition
now we'll use the terminal

use "lsblk" to identify the flash drive
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 149.1G 0 disk
├─sda1 8:1 0 29.3G 0 part /
└─sda3 8:3 0 119.8G 0 part /media/sda3
sdb 8:16 1 14.8G 0 disk
└─sdb1 8:17 1 14.8G 0 part /media/sdb1-usb-Multiple_Card_Re


my usb device is sdb - 14.8gb
take note 'sdb' is the device, 'sdb1' is the partitions (very important)

my partition is already mounted,
but we'll mount it on another mountpoint: /media/usb
create the mountpoint "sudo mkdir /media/usb"
mount it "sudo mount /dev/sdb1 /media/usb"
now we install the bootloader "sudo grub-install --force --removable --boot-directory=/media/usb/boot /dev/sdb"

note we are using /dev/sdb - wich is the device

make sure you replace sdb with your own device, it can be sdc,sde, whatever

next we must put the grub.cfg file in '/media/usb/boot/grub'
grub.cfg.txt is attached to this post, rename it as grub.cfg
so if your usb is mounted on /media/usb
file location should be /media/usb/boot/grub/grub.cfg

now just copy your iso files to the root of your flash drive
these are the latest versions downloaded tonight, if you get the iso files right now, they will work without modifications
as time goes on, new versions will come out, some filenames will change, and grub.cfg must be modified accordingly

most of the boot entries i got from the isos themselves, you can open them in mc and look for grub.cfg or something similar, and just added $isofile
the manjaro boot entry i got from their forum

hope this will be of use to someone, i wanted this for so long
Attached Files
File Type: txt grub.cfg.txt (2.9 KB, 85 views)

Last edited by zpimp; 04-02-2018 at 05:50 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiboot USB with ISO images - BIOS & UEFI - how? displace Linux - Software 10 12-07-2017 11:04 AM
Multiboot Iso / USB /dvd? blizz1987 Linux - Software 1 08-02-2015 11:31 AM
Clonezilla and Multiboot Iso Mount USB Drive jghake Linux - Newbie 11 02-02-2014 04:17 PM
multiboot external usb hd grub error 5 koen plessers Linux - General 3 03-15-2009 11:02 AM
Sabayon LiveDVD Loop from USB - Grub kernel parameters manwithaplan Linux - General 0 01-14-2009 01:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxQuestions.org Member Success Stories

All times are GMT -5. The time now is 08:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration