Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - General > Member Success Stories
User Name
Password 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.


  Search this Thread
Old 04-02-2018, 06:44 PM   #1
Registered: Oct 2014
Posts: 70

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:

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
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, 32 views)

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 12:04 PM
Multiboot Iso / USB /dvd? blizz1987 Linux - Software 1 08-02-2015 12:31 PM
Clonezilla and Multiboot Iso Mount USB Drive jghake Linux - Newbie 11 02-02-2014 05:17 PM
multiboot external usb hd grub error 5 koen plessers Linux - General 3 03-15-2009 12:02 PM
Sabayon LiveDVD Loop from USB - Grub kernel parameters manwithaplan Linux - General 0 01-14-2009 02:25 AM > Forums > Linux Forums > Linux - General > Member Success Stories

All times are GMT -5. The time now is 01:10 AM.

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