lubuntu-qa team mailing list archive
-
lubuntu-qa team
-
Mailing list archive
-
Message #02410
Re: Fwd: GRUB2/ISO Boot
Hi amjjawad,
I use this method to boot from downloaded iso files stored on a HDD. The
method works well with some iso files, for example Ubuntu 10.04 and
newer. But it does not work (at least I don't know how to do it with
several other iso files). I learned this method from a post by
jerrylamos @ ubuntuforums.
I attach a 40-custom file of mine. But grub.cfg can be as simple as the
second attached file shows.
(I use that grub.cfg file in a second version to install Lubuntu 13.04
into computers with Pentium M cpu. After a little more testing by a few
people, I'll be ready to publish those methods, but that is another story.)
Best regards
Nio
On 2013-05-04 16:39, Ali Linx (amjjawad) wrote:
> Forgot to add:
>
> my 40_custom file content:
>
> #!/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 "Xubuntu 13.04 ISO" {
>
> set isofile="/xubuntu-13.04-desktop-i386.iso"
>
> loopback loop (hd0,1)$isofile
>
> linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=$isofile
> noprompt noeject
>
> initrd (loop)/casper/initrd.lz
>
> }
>
>
> Thanks :)
>
> ---------- Forwarded message ----------
> From: *Ali Linx (amjjawad)* <amjjawad@xxxxxxxxx <mailto:amjjawad@xxxxxxxxx>>
> Date: Sat, May 4, 2013 at 6:25 PM
> Subject: GRUB2/ISO Boot
> To: "lubuntu-qa@xxxxxxxxxxxxxxxxxxx
> <mailto:lubuntu-qa@xxxxxxxxxxxxxxxxxxx>" <lubuntu-qa@xxxxxxxxxxxxxxxxxxx
> <mailto:lubuntu-qa@xxxxxxxxxxxxxxxxxxx>>
>
>
> Hi,
>
> https://help.ubuntu.com/community/Grub2/ISOBoot
>
> I wanted to try something else to install a system rather than 'dd' or
> USB Disc Creator or UNetbootin. Both UNetbootin and USB Disc Creator are
> so problematic lately with 13.04 ISOs. That is why I asked
> this: https://answers.launchpad.net/unetbootin/+question/227885
>
> Anyway, I wanted to try something new then it came to my mind to try out
> the ISO Boot by creating an entry so that GRUB2 will boot from while the
> ISO is stored on the HDD - check the first link I posted above.
>
> I thought this will be a sooth and easy procedure but apparently, it is not.
> I was trying to install Xubuntu 13.04 so I created the entry after I
> copied the ISO to my root and according to this:
>
> https://help.ubuntu.com/community/Grub2/ISOBoot#Storing_the_ISO
>
>
> *The ISO can remain on the system partition (/) if desired.
> *
>
> Booting to Xubuntu 13.04 Live Desktop was successful but now, the
> installer is stuck on "detecting file system..." and it does not move
> with some error message about mounting the ISO (I didn't take a note
> what exactly was the message).
>
> Lubuntu 12.10 is my main OS, hence I updated:
> /etc/grub.d/40_custom
>
> and of course I ran: sudo update-grub
>
> I'm not sure how to fix this?
> I will try again and I will abort the installation because obviously, it
> is stuck and not moving at all.
>
> Thoughts?
>
> Thanks!
>
> P.S.
> I guess I will also contact my old friend, drs305 :D
>
> --
> *Best Regards,*
> *amjjawad <https://wiki.ubuntu.com/amjjawad/>*
> *Start Ubuntu
> <https://wiki.ubuntu.com/Lubuntu/CommunicationsTeam/WOWLubuntu/StartUbuntu>*
>
>
>
>
>
> --
> *Best Regards,*
> *amjjawad <https://wiki.ubuntu.com/amjjawad/>*
> *Start Ubuntu
> <https://wiki.ubuntu.com/Lubuntu/CommunicationsTeam/WOWLubuntu/StartUbuntu>*
>
>
>
>
#!/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 "Puppy Linux 5.3 frugal in /media/multimed-2/wary5.3frugal" --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos2)'
search --no-floppy --fs-uuid --set=root d3f3f4a3-3d6e-4e4f-8e1a-c2f0de792f90
linux /wary5.3frugal/vmlinuz pmedia=atahd psubdir=wary5.3frugal
initrd /wary5.3frugal/initrd.gz
}
menuentry "(multimed-2)/CD/knoppix/knoppix.iso" {
set isofile="/CD/knoppix/knoppix.iso"
set root='(/dev/sdc,msdos7)'
search --no-floppy --fs-uuid --set=root d3f3f4a3-3d6e-4e4f-8e1a-c2f0de792f90
loopback loop ($root)$isofile
linux (loop)/boot/isolinux/linux bootfrom=/dev/sdc7$isofile noprompt noeject
initrd (loop)/boot/isolinux/minirt.gz
}
menuentry "(multimed-2)/CD/kolibri/kolibri.iso" {
set isofile="/CD/kolibri/kolibri.iso"
set root='(/dev/sdc,msdos7)'
search --no-floppy --fs-uuid --set=root d3f3f4a3-3d6e-4e4f-8e1a-c2f0de792f90
loopback loop (${root})$isofile
linux16 (loop)/HD_Load/memdisk
initrd16 (loop)/kolibri.img
}
menuentry "Boot UBUNTU 10+ BASED SYSTEM from /media/multimed-2/CD/candidate.iso" {
set isofile="/CD/candidate.iso"
set root='(/dev/sdc,msdos7)'
search --no-floppy --fs-uuid --set=root d3f3f4a3-3d6e-4e4f-8e1a-c2f0de792f90
loopback loop ($root)$isofile
linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=$isofile noprompt noeject
initrd (loop)/casper/initrd.lz
}
menuentry "External drive (on /dev/sdb) if no eSATA drive in slot b. edit if necessary" {
insmod part_msdos
insmod fat
set root='(hd1)'
drivemap -s (hd0) ${root}
chainloader +1
}
menuentry "External drive (on /dev/sdd1). At grub menu: check with ls, edit if necessary" {
insmod part_msdos
insmod fat
set root='(hd3,msdos1)'
drivemap -s (hd0) ${root}
chainloader +1
}
set timeout=10
set default=0
menuentry "Run LubuntuPAE Live ISO" {
loopback loop /lubuntu.iso
linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=/lubuntu.iso splash --
initrd (loop)/casper/initrd.lz
}
Follow ups
References