v1ral_ITS

terminala make mlutiboot usb

Mar 12th, 2026
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.62 KB | None | 0 0
  1. Format your USB Flash Drive to use a Single Partition:
  2.  
  3.     Open a terminal and type sudo su
  4.     Type fdisk -l (and note which device is your USB Drive)
  5.     Type fdisk /dev/sdx (replacing x with your actual usb device)
  6.     Type d (to delete the existing partition)
  7.     Type n (to create a new partition)
  8.     Type p (for primary partition)
  9.     Type 1 (to create the first partition)
  10.     Press Enter (to use the first cylinder)
  11.     Press Enter again (to use the default value as the last cylinder)
  12.     Type a (for active)
  13.     Type 1 (to mark the first partition active bootable)
  14.     Type t (for partition type)
  15.     Type c (to use fat32 partition)
  16.     Type w (to write the changes and close fdisk)
  17.  
  18. II. Create a Fat32 Filesystem on the USB Flash Drive:
  19.  
  20.     Type umount /dev/sdx1 (to unmount the mounted partition)
  21.     Type mkfs.vfat -F 32 -n MULTIBOOT /dev/sdx1 (to format the partition as fat32)
  22.  
  23. III. Install Grub2 on the USB Flash Drive:
  24.  
  25. Important Note:
  26. Old versions of grub used --root-directory=/mnt/USB
  27. while current versions use --boot-directory=/mnt/USB/boot
  28.  
  29. If you use the wrong syntax, you will receive an error stating Installation is impossible. Aborting
  30.  
  31.     Type mkdir /mnt/USB && mount /dev/sdx1 /mnt/USB (replacing x with your actual usb device)
  32.     Type grub-install --force --no-floppy --boot-directory=/mnt/USB/boot /dev/sdx (replacing x with your actual USB device)
  33.     Type cd /mnt/USB/boot/grub (to change directory)
  34.     Type wget pendrivelinux.com/downloads/multibootlinux/grub.cfg (to get the grub.cfg file)
  35.  
  36. IV. Adding the Bootable ISO files:
  37.  
  38.     Type cd /mnt/USB (assuming USB is still mounted… else repeat section III. (part 1))
  39.     Simply click a tab below, and follow the instructions for each ISO Distro you would like to add.
  40.  
  41.     Ubuntu 13.04
  42.     Linux Mint 15
  43.     DBAN
  44.     TinyCore
  45.     Memtest86+
  46.  
  47. Type wget http://releases.ubuntu.com/13.04/ubuntu-13.04-desktop-i386.iso -O ubuntu.iso
  48.  
  49. Or rename your existing ISO ubuntu.iso and copy it to the USB device
  50.  
  51. 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.
  52.  
  53. Please inform me of entries you get to work and I will add them to the list, so that others may benefit as well.
  54.  
  55. V. Last Step… Test to ensure your USB Device Boots into Grub2:
  56.  
  57. 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.
Add Comment
Please, Sign In to add comment