I have Ubuntu 14.04 32-bit on an external HDD (Samsung M3 Portable, 500GB) and want to add other entries for various diagnostic software (UBCD, bitdefender antivirus...) to GRUB on the same disk.
Is it possible, and if so, how?
I have Ubuntu 14.04 32-bit on an external HDD (Samsung M3 Portable, 500GB) and want to add other entries for various diagnostic software (UBCD, bitdefender antivirus...) to GRUB on the same disk.
Is it possible, and if so, how?
You may use grml-rescueboot
for ISO Boot
A very simple way of creating a GRUB menuentry for a bootable ISO file is to use grml-rescueboot.
The package does the following:
Creates a /boot/grml folder.
Automatically adds menuentries to the GRUB menu for any ISO files located in the /boot/grml folder. This is accomplished whenever the update-grub command is executed.
To use the grml-rescueboot option:
Install grml-rescueboot
sudo apt-get install grml-rescueboot
Place bootable ISO files in the /boot/grml folder.
Since this is a system folder, the operation must be conducted as "root". For example, if the ISO is located in the user's Downloads folder, the command would be:
sudo cp ~/Downloads/ubuntu-14.04-desktop-amd64.iso /boot/grml/u1404_64_d.iso
sudo chmod +rx /boot/grml/u1404_64_d.iso
Update GRUB
sudo update-grub
Tested on: Ubuntu 14.04 64bit Source: Grub2/ISOBoot
Another way, using memdisk
from syslinux-common
package:
memdisk
is not in /boot/
, copy it from /usr/lib/syslinux/memdisk
Copy ISO image to /boot/
sudo cp ~/Downloads/ubuntu-14.04-desktop-amd64.iso /boot/u1404_64_d.iso
sudo chmod +rx /boot/u1404_64_d.iso
Edit /etc/grub.d/40_custom
or create new custom file and append to it:
menuentry 'ISO rescue disk' {
linux16 /boot/memdisk iso bigraw
initrd16 /boot/u1404_64_d.iso
}
Update GRUB
sudo update-grub
Tested on: Ubuntu 14.04 64bit, Didn't work for me Unable to find CDROM! Reference: Syslinux/MEMDISK
I made Hirens Boot CD in 2. partiton, chainlinked it and it's working :D
Via Grub Customizer I made new entry (type chainloader) and pointed to partition where is Hirens Boot CD extracted.
Thank you anyway :D
MEMDISK error: no ramdisk image specified
means theinitrd16
command failed and the ISO image was not loaded. Most likely this is because the ISO image is too large. Apparently Grub can't load initrd images larger than 462 MB, this limit is related to the Linux boot process. In that case Grub also prints the error messageerror: couldn't find suitable memory target
. More details here and here. – gregn3 Nov 29 '16 at 02:33initrd
could be only with grub but with grub2 it should be higher the 1st setup can load 1.2GB disk image. I really want to know, I will recreate this set in vbox or another machine, create new question here and let you know. At least take some rep :) to thank you and it could help other users. – user.dz Nov 29 '16 at 07:24