You are not logged in.

#1 2012-08-03 12:23:56

Pyntux
Member
From: Serbia
Registered: 2008-12-21
Posts: 415

[SOLVED]Boot iso from grub2 menu problem...

I have problem to boot lubuntu iso from grub2. I think problem is in third line in entry I added in to /etc/grub.d/40_custom, which looks like this:

menuentry "ubuntu-12.04-desktop-amd64.iso" {
    set isofile="/home/punky/lubuntu-12.04-desktop-i386.iso"
    loopback loop (hd0,5)$isofile
    linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=$isofile quiet noeject noprompt splash --
    initrd (loop)/casper/initrd.lz
}

I think there's mistake in (hd0,5), I don't know how to see number of that partition where is lubuntu iso.. Iso is located on /home/punky/, on root of that dir and my hdd (sda, only one hdd) looks like this:

    sda1          Boot       Primary     ext4                                  21476.24  *
    sda5                        Logical     ext4                                  21476.18  *
    sda6                        Logical     ext4               [Fajlovi]         205006.88
    sda7                        Logical     swap                                   2097.45

So iso is on sda5, thats my home partiton... Where is mistake?

Last edited by Pyntux (2012-08-03 13:17:31)


I do not speak English, but I understand...

Offline

#2 2012-08-03 12:34:54

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: [SOLVED]Boot iso from grub2 menu problem...

This is the Arch Linux support forum, not the "Lubuntu" support forum.

https://wiki.archlinux.org/index.php/Fo … pport_ONLY

Community technical support shall only be provided for official Arch Linux distribution installations and the Arch User Repository. Threads concerning issues with, and requesting support for, derivate distributions, or operating systems other than Arch Linux are prohibited and will be closed.

Sorry.


PS: https://wiki.archlinux.org/index.php/Gr … From_GRUB2

Try it with Arch, try it with Ubuntu, then try it with whatever else you want. Don't say I didn't do anything for you. tongue


Edit:

set isofile="/home/punky/lubuntu-12.04-desktop-i386.iso"

   ^ Doesn't work if you have a separate /home partition.

Last edited by DSpider (2012-08-03 13:09:04)


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#3 2012-08-03 13:14:24

Pyntux
Member
From: Serbia
Registered: 2008-12-21
Posts: 415

Re: [SOLVED]Boot iso from grub2 menu problem...

Mistake was in second line:

set isofile="/home/punky/lubuntu-12.04-desktop-i386.iso"

there's no need for /home in this line, only /username/path/to/isofile...

smile


Edit:

OK, but there's wiki artical about boot Ubuntu iso from Arch grub2....

https://wiki.archlinux.org/index.php/Grub2#Ubuntu_ISO

I had problem and this is solved... Thanks

Last edited by Pyntux (2012-08-03 13:17:14)


I do not speak English, but I understand...

Offline

#4 2012-08-03 16:54:42

Pyntux
Member
From: Serbia
Registered: 2008-12-21
Posts: 415

Re: [SOLVED]Boot iso from grub2 menu problem...

Home partition is separated and works, here's menu entry:

menuentry "lubuntu-12.04-desktop-iso" {
    set isofile="/punky/lubuntu-12.04-desktop-i386.iso"
    loopback loop (hd0,5)$isofile
    linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=$isofile quiet noeject noprompt splash --
    initrd (loop)/casper/initrd.lz
}

Or, if you have any other separeted partition, mounted on / for example, like me "/fajlovi", do not write that /fajlovi/ just pat to the iso after that... smile


I do not speak English, but I understand...

Offline

Board footer

Powered by FluxBB