AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Install grub on usb12/27/2022 ![]() Set ISO_PART=($ISO_PART) # add parenthesesĮcho "The partition on the flash drive with the iso is $ISO_PART"Įcho "the prefix is $prefix" # GRUB folder with modules Search -no-floppy -set=ISO_PART -fs-uuid $UUID_ISO # the address of the ISO partition Search -no-floppy -set=ESP -fs-uuid $UUID_ESP # the address of the ESP I spent hours in the internet trying to find how to generate a working grub.cfg for a removable disk.įinally based on the script from here, i made my working script (the below is contents of grub.cfg): # inputs # I have not tried any other iso's just these three. If I figure out what I need to get the other two to finish loading, I will add that later. I was able to get all three to start the boot process but, only Ubuntu to actually load. I found that in the different iso's, vmlinuz and initrd were located in a different directory. Linux (loop)/live/vmlinuz boot=live iso-scan/filename=/clonezilla.iso splash. Linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=/ splash. Linux (loop)/isolinux/vmlinuz0 boot=isolinux iso-scan/filename=/Fedora13.iso splash. ![]() The link was wget Īfter that I edited grub.cfg to reflect the iso's on my USB drive. The site gave a link to download a copy of grub.cfg to the /boot/grub directory on my USB drive. I had to use -force additionally, the example on the site did not. ![]() In a terminal I ran df it returned the location of the device as /dev/sdg1 /media/LINUXUSBĪnd then to install grub 2 grub-install -no-floppy -force -root-directory=/media/LINUXUSB /dev/sdg1 I started with finding the location of my USB drive The Pendrivelinux site had a tutorial I did this from my Mint 9 install instead of a live cd as the site suggests. You got me curious how this would be done. ![]()
0 Comments
Read More
Leave a Reply. |