Hello friends, I just created a usb flash drive to have some isos to install manjaro(specifically I want to try architect and openbox.
Anyone knows where I can get a ready grub.cfg to be able to boot it correctly? the usb works for UEFI and bios too, found a really good recipe, I tested and it boots to grub but there isn’t any iso in it yet.
Other thing I would want to know, how to create persistence in it? it would be really good to have a manjaro with persistent storage in this usb flash drive, if anyone know a recipe for this, I would be really grateful.
here is the grub.cfg that is in it right now:
function load_video {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
fi
}
if [ x$feature_default_font_path = xy ] ; then
font=unicode
else
font="$prefix/unicode.pf2"
fi
if loadfont $font ; then
set gfxmode=1024x768x32
load_video
insmod gfxterm
set locale_dir=$prefix/locale
set lang=pt_BR
insmod gettext
fi
terminal_input at_keyboard
terminal_output gfxterm
insmod png
if background_image $prefix/grub-16x9.png; then
set color_normal=white/black
set color_highlight=black/white
else
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
fi
if [ ${grub_platform} == "pc" ]; then
set color_normal=yellow/black
set color_highlight=black/yellow
set menu_color_normal=yellow/black
set menu_color_highlight=black/yellow
fi
function gfxmode {
set gfxpayload="${1}"
}
set linux_gfx_mode=
export linux_gfx_mode
menuentry "Detectar grub.cfg..." {
insmod part_gpt
insmod part_msdos
insmod fat
insmod ext2
for efi in (*,gpt*)/*/grub.conf (*,gpt*)/*/*/grub.cfg (*,msdos*)/*/grub.conf (*,msdos*)/*/*/grub.conf ; do
regexp --set=1:efi_device '^\((.*)\)/' "${efi}"
if [ -e "${efi}" ]; then
efi_found=true
menuentry --class=grub "${efi}" "${efi_device}" {
root="${2}"
configfile "${1}"
}
fi
done
if [ "${efi_found}" != true ]; then
menuentry --hotkey=q --class=find.none "No GRUB files detected." {menu_reload}
else
menuentry --hotkey=q --class=cancel "Cancel" {menu_reload}
fi
}
}
I’m not a programmer, and I need help
here is the fdisk -l of it too:
fdisk -l /dev/sde
Disk /dev/sde: 28,82 GiB, 30943995904 bytes, 60437492 sectors
Disk model: DataTraveler 3.0
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 0B51B60B-C353-9643-9CE1-9A47D67B2393
Device Start End Sectors Size Type
/dev/sde1 2048 4095 2048 1M BIOS boot
/dev/sde2 4096 40926 36831 18M EFI System
/dev/sde3 40960 60437458 60396499 28,8G Linux filesystem
thanks for reading, if anyone wants the recipe to create this usb flash drive I can share, only issue is that I don’t really know how to put any isos in it lol.
I was able to get the grub.cfg working by going at the arch linux wiki multiboot section, there I found a grub.cfg menuentry and copy pasted changed few things and it worked with Manjaro :-).
thanks for the answer, let me try to explain better my situation I have debian in a luks encrypted partition, I want that to be the first option because I also have it setup so that I type the password once then I can mount root automatically without re-typing the same password.
So I want the Debian to be taking care of the bootloaders?
Sorry I really don’t know much of what I’m talking about, you think just adding that initramfs line it should work properly?
Then I just have to in Manjaro disable efibootmgr(how would I go about doing that?) ? and when I update the kernel or initram I have to go into debian and do a update-grub?
Thank you
Thanks a lot, really appreciate you guys work.