DEV Community

suntong
suntong

Posted on • Edited on

11 1

Grub4dos To Boot ISO Disk Image

Using grub4dos to boot Ubuntu Ubuntu 18.04 ISO disk image, here is the entry for the file MENU.LST:

title Ubuntu 18
  fallback 6
  find --set-root /iso/ubt1804.iso
  map --heads=0 --sectors-per-track=0 /iso/ubt1804.iso (0xff)
  map --hook
  root (0xff)
  kernel /casper/vmlinuz file=/cdrom/preseed/ubuntu.seed boot=casper iso-scan/filename=/iso/ubt1804.iso splash
initrd /casper/initrd.lz
Enter fullscreen mode Exit fullscreen mode

NB,

  • For Ubuntu 64bit from 14.04 to 17.10 vmlinuz.efi was used, so kernel has to be /casper/vmlinuz.efi, but
  • For older versions and 18.04+ use /casper/vmlinuz
  • For Ubuntu 32bit, it has always been vmlinuz
  • For smaller ISO disk images, or your RAM is extremely big, you can use --mem for the map command to put the whole disk into system memory, like this: map --mem /iso/smallcd.iso (0xff) || map --heads=0 --sectors-per-track=0 /iso/smallcd.iso (0xff)

Ref:

Image of Datadog

The Future of AI, LLMs, and Observability on Google Cloud

Datadog sat down with Google’s Director of AI to discuss the current and future states of AI, ML, and LLMs on Google Cloud. Discover 7 key insights for technical leaders, covering everything from upskilling teams to observability best practices

Learn More

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more