Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sun Jul 01, 2012 11:21 pm 
Offline
Senior Newbie

Joined: Sun Jun 24, 2012 7:00 pm
Posts: 10
I have moved one step further (I can't understand why though... the only change I have done was to unmount all drives except root from linode properties)

I get this first:

Code:
******************* BLKFRONT for device/vbd/51728 **********                                        
                                                                                                   
                                                                                                   
backend at /local/domain/0/backend/vbd/514/51728                                                   
Failed to read /local/domain/0/backend/vbd/514/51728/feature-flush-cache.                           
10240000 sectors of 512 bytes                                                                       
**************************                                                                         
                                                                                                   
                                                                                                   
    GNU GRUB  version 0.97  (524288K lower / 0K upper memory)                                       
                                                                                                   
 +-------------------------------------------------------------------------+                       
 | Arch Linux - vmlinuz-linux-lts-xen                                      |                       
 |                                                                         |                       
 |                                                                         |                       
 |                                                                         |                       
 |                                                                         |                       
 |                                                                         |                       
 |                                                                         |                       
 |                                                                         |                       
 |                                                                         |                       
 |                                                                         |                       
 |                                                                         |                       
 |                                                                         |                       
 +-------------------------------------------------------------------------+                       
    Use the ^ and v keys to select which entry is highlighted.                                     
    Press enter to boot the selected OS, 'e' to edit the                                           
    commands before booting, or 'c' for a command-line.                                             



And then

Code:
Booting 'Arch Linux - vmlinuz-linux-lts-xen'                                                      
                                                                                                   
root   (hd1)                                                                                       
                                                                                                   
Error 21: Selected disk does not exist                                                             
                                                                                                   
Press any key to continue... 


When I press 'e' for editting options I get:

Code:
GNU GRUB  version 0.97  (524288K lower / 0K upper memory)                                       
                                                                                                   
 +-------------------------------------------------------------------------+                       
 | root   (hd1)                                                            |                       
 | kernel /boot/vmlinuz-linux-lts-xen root=/dev/xvdb console=hvc0 ro       |                       
 | initrd /boot/initramfs-linux-lts-xen.img                                |                       
 |                                                                         |                       
 |                                                                         |                       
 |                                                                         |                       
 |                                                                         |                       
 |                                                                         |                       
 |                                                                         |                       
 |                                                                         |                       
 |                                                                         |                       
 |                                                                         |                       
 +-------------------------------------------------------------------------+                       
    Use the ^ and v keys to select which entry is highlighted.                                     
    Press 'b' to boot, 'e' to edit the selected command in the                                     
    boot sequence, 'c' for a command-line, 'o' to open a new line                                   
    after ('O' for before) the selected line, 'd' to remove the                                     
    selected line, or escape to go back to the main menu.                                           



My root (and boot) is on /dev/xvdb (so it should be (hd1) on /boot/grub/menu.lst?)

Would be nice if there is some workaround to that problem..

Thanks a lot,
Greg


Last edited by gallius on Mon Jul 02, 2012 12:37 am, edited 1 time in total.

Top
   
PostPosted: Sun Jul 01, 2012 11:28 pm 
Offline
Senior Member

Joined: Wed Jun 08, 2011 11:25 pm
Posts: 51
gallius wrote:
My root is on /dev/xvdb (so it should be (hd1) on /boot/grub/menu.lst?)


But your /boot is on /dev/xvda (I assume), right? If so, try (hd0) and see what happens.


Top
   
PostPosted: Sun Jul 01, 2012 11:38 pm 
Offline
Senior Newbie

Joined: Sun Jun 24, 2012 7:00 pm
Posts: 10
Hmm, on 'block device assignment' I have mounted it on /dev/xvdb...


Top
   
PostPosted: Sun Jul 01, 2012 11:43 pm 
Offline
Senior Member

Joined: Wed Jun 08, 2011 11:25 pm
Posts: 51
No, I'm talking about your /boot partition not your / (root) partition. If you don't have a separate /boot partition though, why are you putting / on /dev/xvdb? What do you have on /dev/xvda?


Top
   
PostPosted: Sun Jul 01, 2012 11:49 pm 
Offline
Senior Newbie

Joined: Sun Jun 24, 2012 7:00 pm
Posts: 10
Yup, I don't have separate partition for boot.

At the moment I have changed config to have /dev/xvda only and I'm booting to rescue mode to change fstab and menu.lst accordingly.

<edit>

So at the moment my /boot/grub/menu.lst looks like:

Code:
# (4) Arch Linux                                                                                    
title  Arch Linux - vmlinuz-linux-lts-xen                                                           
root   (hd0)                                                                                       
kernel /boot/vmlinuz-linux-lts-xen root=/dev/xvda console=hvc0 ro                                   
initrd /boot/initramfs-linux-lts-xen.img


and my /etc/fstab:

Code:
#                                                                                                   
# /etc/fstab: static file system information                                                       
#                                                                                                   
# <file system> <dir>           <type>  <options>                              $                   
tmpfs           /tmp            tmpfs   nodev,nosuid,noexec,mode=1777          $                   
#tmpfs          /tmp            tmpfs   nodev,nosuid                           $                   
/dev/xvda       /               ext3    defaults,noatime                       $                   
/dev/xvdb       none            swap    defaults                               $                   



Ok, so I have shut down the linode, waited 5 mins and booted it again. It stops on grub menu and after trying to boot I get:

Code:
Booting command-list                                                                              
                                                                                                   
root   (hd0)                                                                                       
 Filesystem type is ext2fs, using whole disk                                                       
kernel /boot/vmlinuz-linux-lts-xen root=/dev/xvda console=hvc0 ro                                   
initrd /boot/initramfs-linux-lts-xen.img                                                           
                                                                                                   
can only boot x86 64 kernels, not xen-3.0-x86_32p                                                   
                                                                                                   
Error 13: Invalid or unsupported executable format                                                 
                                                                                                   
Press any key to continue...                                                                       



and that's strange because my root is on ext3 (and not on ext2)

I'm on:

Code:
uname -a (from my virtual box with the same root partition)

Linux 3.0.31-1-lts-xen i686


I have seen some posts saying that XEN have problems booting from compressed kernel, do you think that might be the case?

<edit>
fstab and menu.lst seem be ok as I can boot from linode kernel...


Top
   
PostPosted: Mon Jul 02, 2012 1:54 am 
Offline
Senior Member

Joined: Wed Jun 08, 2011 11:25 pm
Posts: 51
In the configuration profile there's a kernel selection for pv-grub-x86_32 and another one for pv-grub-x86_64. Make sure you're using the right one.


Top
   
PostPosted: Mon Jul 02, 2012 3:00 am 
Offline
Senior Newbie

Joined: Sun Jun 24, 2012 7:00 pm
Posts: 10
Might be that I have chosen 32 and not 64...

Unfortunately still no success though, this time I'm having:

Quote:
Booting 'Arch Linux - vmlinuz-linux-lts-xen'

root (hd0)
Filesystem type is ext2fs, using whole disk
kernel /boot/vmlinuz-linux root=/dev/xvda ro
initrd /boot/initramfs-linux.img

ERROR Invalid kernel: elf_xen_note_check: ERROR: Will only load images built for the generic loader
or Linux images
xc_dom_parse_image returned -1

Error 9: Unknown boot failure

Press any key to continue...


I feel it's getting closer but still no success.

Thanks for your help anyway :-)


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group