I am following this tutorial: https://www.pcsuggest.com/create-a-multiboot-usb-drive-with-grub-in-linux/. My purpose is to make my pen drive to boot from, as well as make there a partition for root directory (user data) at once. I have now 2 partitions:


sdb      8:16   1  14.4G  0 disk 
├─sdb1   8:17   1   500M  0 part /media/efi
└─sdb2   8:18   1     4G  0 part /media/boot

both are of types fat32, and the smaller one (/dev/sdb1) has bootable flag on. Now I have install the bootloader in /media:

# grub-install --removable --boot-directory=boot --efi-directory=efi/ /dev/sdb

No I have this tree: #tree -d /media

├── boot
│   └── grub
│       ├── fonts
│       ├── locale
│       └── x86_64-efi
├── boot_iso
└── efi
    └── EFI
        └── BOOT

Inside the directory boot_iso, I have copied the ISO file firmware-10.4.0-amd64-DVD-1.iso. Now according to that tutorial, I should 6. Create the grub.cfg file, in /media/boot/grub directory. But I have no idea, what to put there. It is of a form:

menuentry "My Distro Name" {
set iso_file=/path/to/your_iso_file.iso
loopback loop $iso_file
linux (loop)/path/to/your_kernel your_distro_spacific_boot_time_kernel_parameters
initrd (loop)/path/to/your_initrd_file

But I do not have any initrd. iso_file should be set absolute path or relative? What is loopback or linux commands? And what are my specific distro parameters?

So can someone please give an sample of what the menuentry for the Debian (having only ISO file) should look like?

  • The tutorial might be good to boot multiple ISOs from an USB stick, but persistence to store user data is not covered there. If you want to boot a Debian Live with persistence, have a look at How to create a Debian live USB with persistence?. – Freddy Jul 11 '20 at 21:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.