Boot ISO Files directly from USBusing Grub2 from Linux. Here is one way to create a Multiboot USB Flash Drive from a running Ubuntu (I used the Live CD). You may eventually need a large Flash Drive or USB Hard Drive in order to include every bootable ISO entry. I will add more Bootable ISO files to the grub.cfg file as I find time to test them. Contact me to submit working Bootable Linux ISO grub.cfg entries for inclusion.
I. Format your USB Flash Drive to use a Single Partition:
- Open a terminal and type
sudo su
- Type
fdisk -l
(and note which device is your USB Drive) - Type
fdisk /dev/sdx
(replacing x with your actual usb device) - Type
d
(to delete the existing partition) - Type
n
(to create a new partition) - Type
p
(for primary partition) - Type
1
(to create the first partition) Press Enter
(to use the first cylinder)Press Enter
again (to use the default value as the last cylinder)- Type
a
(for active) - Type
1
(to mark the first partition active "bootable") - Type
t
(for partition type) - Type
c
(to use fat32 partition) - Type
w
(to write the changes and close fdisk)
II. Create a Fat32 Filesystem on the USB Flash Drive:
- Type
umount /dev/sdx1
(to unmount the mounted partition) - Type
mkfs.vfat -F 32 -n MULTIBOOT /dev/sdx1
(to format the partition as fat32)
III. Install Grub2 on the USB Flash Drive:
Important Note:
Old versions of grub used
while current versions use
Old versions of grub used
--root-directory=/mnt/USB
while current versions use
--boot-directory=/mnt/USB/boot
If you use the wrong syntax, you will receive an error stating "Installation is impossible. Aborting"
- Type
mkdir /mnt/USB && mount /dev/sdx1 /mnt/USB
(replacing xwith your actual usb device) - Type
grub-install --force --no-floppy --boot-directory=/mnt/USB/boot /dev/sdx
(replacing x with your actual USB device) - Type
cd /mnt/USB/boot/grub
(to change directory) - Type
wget pendrivelinux.com/downloads/multibootlinux/grub.cfg
(to get the grub.cfg file)
IV. Adding the Bootable ISO files:
- Type
cd /mnt/USB
(assuming USB is still mounted… else repeat section III. (part 1)) - Simply click a tab below, and follow the instructions for each ISO Distro you would like to add.
Adding an Unlisted ISO: To try ISO Files that are not yet listed, use the existing menuentry examples in
/boot/grub/grub.cfg
and append any options normally found in the distributions syslinux.cfg file on the "append" line to the "linux" line of the menu entry.
Please inform me of entries you get to work and I will add them to the list, so that others may benefit as well.
V. Last Step… Test to ensure your USB Device Boots into Grub2:
Reboot your Computer, and enter your BIOS or Boot Menu. Set the Boot Order to boot from the USB Device. Save your changes and Reboot. If all goes well, you should be presented with a Grub2 Boot Menu.
very good
ReplyDeletelaptop screen repair near me
laptop battery replacement near me
laptop keyboard repair shop near me
laptop repair service center andheri east
laptop repair service center bandra west
laptop repair service center goregaon west
laptop repair service center jogeshwari east
laptop repair service center powai
laptop repair service center malad west
laptop repair service center mumbai
laptop repair service in goregaon west
ReplyDeletelaptop repair service in malad west
laptop repair service in wadala
lenovo laptop charger replacement in mumbai
DELL LAPTOP BATTERY REPLACEMENT NEAR ME IN MUMBAI
laptop repair service in lokhandwala andheri west
laptop repair service in oshiwara jogeshwari west
laptop repair service in charkop kandivali west