Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Can't boot after I did a aptitude full-upgrade and let it update menu.lst (did a diff first and it looked good).

This is what I've done so far in the BusyBox shell:

mkdir /tmp/xvda1
mount /dev/xvda1 /tmp/xvda1
chroot /dev/xvda1
nano /boot/grub/menu.lst

This file looks like this:

title           Ubuntu 12.04.1 LTS, kernel 3.2.0-31-virtual
kernel          /boot/vmlinuz-3.2.0-31-virtual root=UUID=/dev/xvda1 ro quiet splash
initrd          /boot/initrd.img-3.2.0-31-virtual

title           Ubuntu 12.04.1 LTS, kernel 3.2.0-31-virtual (recovery mode)
kernel          /boot/vmlinuz-3.2.0-31-virtual root=UUID=/dev/xvda1 ro  single
initrd          /boot/initrd.img-3.2.0-31-virtual

titleUbuntu 12.04.1 LTS, kernel 3.2.0-24-virtual
kernel/boot/vmlinuz-3.2.0-24-virtual root=UUID=/dev/xvda1 ro quiet splash

titleUbuntu 12.04.1 LTS, kernel 3.2.0-24-virtual (recovery mode)
kernel/boot/vmlinuz-3.2.0-24-virtual root=UUID=/dev/xvda1 ro  single

titleUbuntu 12.04.1 LTS, kernel 3.2.0-24-generic
kernel/boot/vmlinuz-3.2.0-24-generic root=UUID=/dev/xvda1 ro quiet splash

titleUbuntu 12.04.1 LTS, kernel 3.2.0-24-generic (recovery mode)
kernel/boot/vmlinuz-3.2.0-24-generic root=UUID=/dev/xvda1 ro  single

titleChainload into GRUB 2

titleUbuntu 12.04.1 LTS, memtest86+

From what I remember, the upgrade added the UUID= string. Should I remove these? Or rather, how do I get my system back online again? Thanks.

Update: Seems like I can't even edit the file.

[ Error writing /boot/grub/menu.lst: Read-only file system ]

Update 2:

I've now rebuilt the server from an image. Examining the diff right now, and this seems like the mayor thing:

-kernel /boot/vmlinuz-3.2.0-24-virtual root=/dev/xvda1 console=hvc0 ro quiet splash
+kernel /boot/vmlinuz-3.2.0-31-virtual root=UUID=/dev/xvda1 ro quiet splash

So if I could have saved menu.lst, I guess I could have solved it.

My remaining question is: How could I have written to menu.lst?

share|improve this question

I just came across the same issue - before you reboot edit your /boot/grub/menu.lst - remove the UUID= and add console=hvc0.

From what I can gather console=hvc0 allows Xen to redirect and capture the console output. Also, a UUID can be used to identify the root partition, but the syntax used is incorrect.

Source here.

share|improve this answer
Can you include some of the details on why this solution might help? See… – voretaq7 Oct 26 '12 at 17:11

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.