WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] grub commands problem with Ubuntu 10.04

To: "Fajar A. Nugraha" <list@xxxxxxxxx>
Subject: Re: [Xen-users] grub commands problem with Ubuntu 10.04
From: Abhishek Dixit <abhidixit87@xxxxxxxxx>
Date: Wed, 9 Mar 2011 02:37:30 +0530
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 08 Mar 2011 13:08:36 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=bxlO4RAjGObhM2bd0PeS9CSAFBiDAj8UTzbRmpRlY3o=; b=afLbP1UB0XUwzJZPtUfnGCDedVvrKzfGGlDf/ApIIQ1YR1g2Yx7MczNtXWFn7mq4IE revEhRSxLOC2smGnE/cyFY9vb0oEKOmpuTiWtOy3dNpClmxkXGzi53DixNzZZ6S9kj4B vlARdxDW4cErR/4htx+MiV8VHBDzGIMQF1l2E=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=F4dd44doogtsN2f7sXV1WV+sxHaO9dqGoyJeH9tyH+8l+ecZMTzl+ughVI4Bu/9Duk PXgg8FphudKq7k9ZcinWjKZR9en7GRznClHXyq0/vL8EEdO2IVwQIPaEzmrril1OWatY KsHBZpT7p5Bk/XnbTTV0rquM6OpSTZQNlvv+c=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <AANLkTin_a=i14zhpmRqUkktNmq_eGB5DXMFFYPxJTsCi@xxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <AANLkTikFwM4cfVG+7TttQzz6mKwRE9e1N6z75bxtRCib@xxxxxxxxxxxxxx> <AANLkTikHSuqkmwZggy=z8tuJeXmw7AjhTAtyoVQX-GXa@xxxxxxxxxxxxxx> <AANLkTikeg72JJLMLJjOa3M9yP8d_WFi1TV8Cb3V=nPSL@xxxxxxxxxxxxxx> <AANLkTin_a=i14zhpmRqUkktNmq_eGB5DXMFFYPxJTsCi@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
On Tue, Mar 8, 2011 at 5:54 PM, Fajar A. Nugraha <list@xxxxxxxxx> wrote:
> On Tue, Mar 8, 2011 at 4:32 PM, Abhishek Dixit <abhidixit87@xxxxxxxxx> wrote:
>> I had installed Ubuntu on a machine which has Windows7 using Wubi
>> where Ubuntu is running inside a folder in C drive which is an NTFS
>> partition
>>
>> these are my grub entries
>>
>> menuentry "Xen Linux 2.6.32.27" {
>>        insmod multiboot2
>
> insmod multiboot should be enough
>
>>        set root='(hd0,2)'
>>        set root=(loop0)
>>        kernel (hd0,2)/boot/xen.gz dummy=dummy
>
> it should be "multiboot", not "kernel". Where did you read that it
> should be kernel? Blindly trying anything?
>
>>        module (hd0,2)/boot/vmlinuz-2.6.32.27 dummy=dummy
>> root=/dev/sda2 loop=/ubuntu/disks/root.disk ro console=tty0
>>        module (hd0,2)/boot/initrd.img-2.6.32.27
>> }
>>
>> I also tried  insmod multiboot  each time I got
>>
>> error file not found
>> error unknown command 'kernel'
>> error unknown command 'module'
>> error unknown command 'module'
>>
>> Any thing else which I can try?
>>
>
> Something might be wrong with your grub installation. Or it might just
> be too old. Try pressing "c" (for command line), and when you get
> "grub>" prompt try some stuff:

on grub command prompt I tried

grub>insmod multiboot

error: file not found

then
grub>insmod multiboot2
error: file not found

Ok by now I pressed tab on grub command prompt to understand know what
commands are
there so there I did not see multiboot
as a command neither is multiboot2
that probably is the reason it is failing.

> - lsmod --> you should see ntfs there
Yes I do see it here

> - ls --> you should see your disk and partition in the form of (hd0)
> (hd0,1) and so on)
Yes when I do
grub>ls
(loop0) (hd0) (hd0,5)  (hd0,4)  (hd0,2)  (hd0,1)

> - ls (hd0,2)/boot/grub/multiboot.mod

No this did not worked immediately after typing on grub command prompt
grub>ls (hd0,2)/b and pressing tab there was no output so (hd0,2)/boot
is not there

here I pressed
grub>ls (loop0)/b
and pressed tab I got the entry full by boot

grub>ls (loop0)/boot/xen.gz
xen.gz

So I think I need to use (loop0)/boot/xen.gz and in this path only it
shows all the Dom0 kernel and non Dom0 kernel.

But when I try to type on grub command prompt
grub>multiboot (loop0)/boot/xen.gz
error: unknown command multiboot

even if I try
grub>multiboot2 (loop0)/boot/xen.gz
error: unknown command multiboot2


> - ls (hd0,2)/boot/grub/ntfs.mod
> - ls (hd0,2)/boot/xen.gz
>
Now as per your wiki here
http://wiki.xensource.com/xenwiki/Xen4.0
I tried

grub>kernel (loop0)/boot/xen.gz
I tried above line on grub2 command prompt (not in grub.cfg)
so I got error: unknown command 'kernel'

Now on a grub prompt I press tab to see the commands which are available
so following is result
grub>. [ badram boot cat chainloader clear configfile cpuid dump echo
exit export halt help initrd insmod linux list_env  load_env loopback
ls lsmod normal normal_ext parser.grub parser.rescue reboot rmmod root
save_env search search.file search.fs_lable search.fs_uuid set sleep
source terminal_input terminal_output test unset

Surprisingly I do not see kernel command in above output and neither
multiboot or multiboot2

I tried on grub prompt again
grub>set root='(hd0,2)'
grub>set root=(loop0)
grub>linux (loop0)/boot/xen.gz

error: Invalid magic number

Suprisingly a non Xen kernel which is working has following grub entries

menuentry "Ubuntu, Linux 2.6.32.27" {
       insmod ntfs
       set root='(hd0,2)'
       search --no-floppy --fs-uuid --set 96f65c80f65c6313
       loopback loop0 /ubuntu/disks/root.disk
       set root=(loop0)
       linux /boot/vmlinuz-2.6.32.27 root=/dev/sda2
loop=/ubuntu/disks/root.disk ro   quiet splash
       initrd /boot/initrd.img-2.6.32.27
}

even on grub prompt
grub> insmod multiboot or
grub> insmod multiboo2
gives same error I mentioned
error: file not found

Any thing else you feel  I can try?
-- 
Regards
Abhi

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users