View previous topic :: View next topic |
Author |
Message |
ChinaUA n00b
Joined: 30 Oct 2013 Posts: 7
|
Posted: Wed Oct 30, 2013 12:57 pm Post subject: [SOLVED] Problem with Grub |
|
|
Hi,
after I run the command
Code: | grub-install --no-floppy /dev/xvda |
I become an error:
Code: | expr: non-integer argument
expr: non-integer argument
The file /boot/grub/stage1 not read correctly. |
This is my fstab:
Code: | /dev/xvda1 /boot ext2 defaults,noatime 0 2
/dev/xvda3 / ext4 noatime 0 1
/dev/xvda2 none swap sw 0 0
/dev/cdrom /mnt/cdrom auto noauto,ro 0 0
|
My fdisk:
Code: | Device Boot Start End Blocks Id System
/dev/xvda1 * 2048 206847 102400 83 Linux
/dev/xvda2 206848 8595455 4194304 82 Linux swap / Solaris
/dev/xvda3 8595456 209725439 100564992 83 Linux |
And my grub.conf:
Code: | default 0
timeout 30
#splashimage=(hd0,0)/boot/grub/splash.xpm.gz
title Gentoo Linux 3.10.7-r1
root (hd0,0)
kernel /boot/kernel-genkernel-x86_64-3.10.7-gentoo-r1 real_root=/dev/xvda3
initrd /boot/initramfs-genkernel-x86_64-3.10.7-gentoo-r1
# vim:ft=conf: |
What can be a problem?
Last edited by ChinaUA on Thu Nov 07, 2013 3:09 pm; edited 1 time in total |
|
Back to top |
|
|
ChinaUA n00b
Joined: 30 Oct 2013 Posts: 7
|
Posted: Wed Oct 30, 2013 12:59 pm Post subject: |
|
|
And when I do
I have:
Code: | Error 21: Selected disk does not exist |
Also ) and than TAB:
Error 21: Selected disk does not exist |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Wed Oct 30, 2013 3:53 pm Post subject: |
|
|
Code: | grub
find /boot/grub/stage1 | ??? _________________ Defund the FCC. |
|
Back to top |
|
|
ChinaUA n00b
Joined: 30 Oct 2013 Posts: 7
|
Posted: Wed Oct 30, 2013 6:29 pm Post subject: |
|
|
Thnx for your answer. I will try it on Friday, till Friday have not access to the computer. I googled a little bit, and I guess this problem can be because of XEN... so grub don't see a virtual disks xvda. |
|
Back to top |
|
|
hydrapolic Tux's lil' helper
Joined: 07 Feb 2008 Posts: 126
|
Posted: Wed Oct 30, 2013 7:29 pm Post subject: |
|
|
Seems like it's a Xen domU - you don't need any bootloader for that. |
|
Back to top |
|
|
ChinaUA n00b
Joined: 30 Oct 2013 Posts: 7
|
Posted: Thu Nov 07, 2013 12:04 pm Post subject: |
|
|
hydrapolic wrote: | Seems like it's a Xen domU - you don't need any bootloader for that. |
So I should just restart my computer and to boot it from the hard disk?
I tried it, but I just have a line at the screen and nothing is happens...[/code] |
|
Back to top |
|
|
hydrapolic Tux's lil' helper
Joined: 07 Feb 2008 Posts: 126
|
Posted: Thu Nov 07, 2013 2:41 pm Post subject: |
|
|
Do you have a physical machine acting as a dom0 and this machine as a domU? Is that a paravirtualized domU? Please give more information about your installation, machine type, and so on. |
|
Back to top |
|
|
ChinaUA n00b
Joined: 30 Oct 2013 Posts: 7
|
Posted: Thu Nov 07, 2013 3:08 pm Post subject: |
|
|
Thank you all for your help. it is already solved. the problem was, that grub don't support a xvda virtual disks of Xen. So I found a patch, that just add a xvda strings to the grub-install.in. After that grub-install started without errors |
|
Back to top |
|
|
hydrapolic Tux's lil' helper
Joined: 07 Feb 2008 Posts: 126
|
Posted: Fri Nov 08, 2013 7:15 am Post subject: |
|
|
Glad you made it, however I still don't get the point of using grub for a XenU - maybe just for cases where you use full virtualization. Check out paravirtualization:
http://wiki.xen.org/wiki/Paravirtualization_%28PV%29 |
|
Back to top |
|
|
|