Salah satu kelebihan sistem operasi Ubuntu adalah bisa boot liveISO dari HardDisk langsung tanpa harus repot-repot membuat liveUSB atau liveDVD, cukup dengan memasukkan menuentry di grub ubuntu.
Cara paling mudah adalah dengan menambahkan entry di file 40_custom yang ada di folder /etc/grub.d/
berikut contoh file 40_custom.
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
menuentry "artful-desktop-amd64" {
set root=(hd0,6)
set isofile='/home/haze/artful-desktop-amd64.iso'
loopback loop $isofile
linux (loop)/casper/vmlinuz.efi boot=casper iso-scan/filename=$isofile noprompt noeject
initrd (loop)/casper/initrd.lz
}
menuentry "multisystems-16.04-amd64" {
set root=(hd0,6)
set isofile='/home/haze/multisystems-16.04-amd64.iso'
loopback loop $isofile
linux (loop)/casper/vmlinuz.efi boot=casper iso-scan/filename=$isofile noprompt noeject
initrd (loop)/casper/initrd.lz
}
menuentry "osgeo-live-11.0-amd64" {
set root=(hd0,6)
set isofile='/home/haze/osgeo-live-11.0-amd64.iso'
loopback loop $isofile
linux (loop)/casper/vmlinuz.efi boot=casper iso-scan/filename=$isofile noprompt noeject
initrd (loop)/casper/initrd.lz
}
Dalam contoh di atas OS Ubuntu yang kita pinjam grub nya,
ada di /dev/sda6 (hd0,6) sesuaikan dengan letak partisi ubuntu dengan setelan (set root=......),
jika Ubuntu ada di /dev/sda3 maka (hd0,3) jika Ubuntu ada di /dev/sdb1 maka (hd1,1).
Pastikan juga (set isofile='/path/to/iso') ke folder di mana iso berada.
No comments:
Post a Comment