[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • To: "Fajar A. Nugraha" <list@xxxxxxxxx>
  • 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
  • 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=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.