PDA

View Full Version : [ubuntu] Upgrade interrupted, 10.04 to 11.4, can not boot now.



Dekkenz
June 2nd, 2011, 07:11 PM
Hey,

So I have ubuntu 10.04 installed on my laptop, which I use mainly for browsing the net and watching movies.
2 Days ago it prompted an upgrade to version 11.4, I accepted, but while it was upgrading my power died.
Now I can not boot at all.
I keep getting this error:

Kerneal panic - not syncinc: VFS: Unable to mount root fs on unknown-block(0,0)

All I can do is access the command line ( grub ), and a limited root account?
This is what I get when I try to use "sudo apt-get upgrade"

W: Not using locking for read only lock file /var/lib/dpkg/lock
E: dpkg was interrupted, you must manually run `sudo dpkg --configure -a` to correct the problems.

And when I run `sudo dpkg --configure -a` I get:

dpkg: error: unable to access dpkg status area: Read-only file system

Help?:(

Rubi1200
June 2nd, 2011, 09:18 PM
Hi and welcome to the forums :-)

I think the best thing to do in this situation is to boot the computer with a LiveCD/USB and see if you can access your important data to save it.

Once that is done, please do the following:

Boot the Ubuntu Live CD/USB. Choose the option "Try Ubuntu without any changes." Once the desktop loads come back here and do the following:

1. Download the boot info script which is in a zipped file. There is a link in my signature.
2. Once downloaded, move the boot info script by either copying or dragging and dropping the zipped folder onto the desktop and unzip the contents by using right-click Extract here.
3. Open the folder and copy the script to the desktop (you can also drag and drop if you like)
4. Open a terminal and run the following command


sudo bash ~/Desktop/boot_info_script.sh

This will create a RESULTS.txt file on the desktop. Paste the entire contents of that file back here in a new post. Once pasted highlight all text and click the # sign on the toolbar to place code tags around the text.

Dekkenz
June 2nd, 2011, 10:35 PM
Hey,

Thanks for the reply.
Here is the output of RESULTS.txt:

Boot Info Script 0.60 from 17 May 2011


============================= Boot Info Summary: ===============================

=> Grub2 (v1.97-1.98) is installed in the MBR of /dev/sda and looks at sector
1 of the same hard drive for core.img. core.img is at this location and
looks in partition 1 for (,msdos1)/boot/grub.

sda1: __________________________________________________ ________________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 11.04
Boot files: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img

sda2: __________________________________________________ ________________________

File system: Extended Partition
Boot sector type: Unknown
Boot sector info:

sda5: __________________________________________________ ________________________

File system: swap
Boot sector type: -
Boot sector info:

============================ Drive/Partition Info: =============================

Drive: sda __________________________________________________ ___________________

Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders, total 156301488 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x000adc38

Partition Boot Start Sector End Sector # of Sectors Id System

/dev/sda1 * 2,048 150,159,359 150,157,312 83 Linux
/dev/sda2 150,161,406 156,301,311 6,139,906 5 Extended
/dev/sda5 150,161,408 156,301,311 6,139,904 82 Linux swap / Solaris


"blkid" output: __________________________________________________ ______________

Device UUID TYPE LABEL

/dev/loop0 squashfs
/dev/sda1 d73b63de-7b23-460e-9035-12f6a61b5b3c ext4
/dev/sda5 31d6db05-67d0-45b5-8d3d-5ed84e930a8c swap

================================ Mount points: =================================

Device Mount_Point Type Options

/dev/loop0 /rofs squashfs (rw)
/dev/sr0 /cdrom iso9660 (rw)


=========================== sda1/boot/grub/grub.cfg: ===========================

--------------------------------------------------------------------------------
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
set have_grubenv=true
load_env
fi
set default="0"
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi

function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}

function recordfail {
set recordfail=1
if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}

function load_video {
insmod vbe
insmod vga
}

insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos1)'
search --no-floppy --fs-uuid --set=root d73b63de-7b23-460e-9035-12f6a61b5b3c
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
load_video
insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos1)'
search --no-floppy --fs-uuid --set=root d73b63de-7b23-460e-9035-12f6a61b5b3c
set locale_dir=($root)/boot/grub/locale
set lang=en
insmod gettext
if [ "${recordfail}" = 1 ]; then
set timeout=-1
else
set timeout=10
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, with Linux 2.6.38-8-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos1)'
search --no-floppy --fs-uuid --set=root d73b63de-7b23-460e-9035-12f6a61b5b3c
linux /boot/vmlinuz-2.6.38-8-generic root=/dev/sda1 ro quiet splash
}
menuentry 'Ubuntu, with Linux 2.6.38-8-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos1)'
search --no-floppy --fs-uuid --set=root d73b63de-7b23-460e-9035-12f6a61b5b3c
echo 'Loading Linux 2.6.38-8-generic ...'
linux /boot/vmlinuz-2.6.38-8-generic root=/dev/sda1 ro single
echo 'Loading initial ramdisk ...'
}
menuentry 'Ubuntu, with Linux 2.6.35-28-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos1)'
search --no-floppy --fs-uuid --set=root d73b63de-7b23-460e-9035-12f6a61b5b3c
linux /boot/vmlinuz-2.6.35-28-generic root=UUID=d73b63de-7b23-460e-9035-12f6a61b5b3c ro quiet splash
initrd /boot/initrd.img-2.6.35-28-generic
}
menuentry 'Ubuntu, with Linux 2.6.35-28-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos1)'
search --no-floppy --fs-uuid --set=root d73b63de-7b23-460e-9035-12f6a61b5b3c
echo 'Loading Linux 2.6.35-28-generic ...'
linux /boot/vmlinuz-2.6.35-28-generic root=UUID=d73b63de-7b23-460e-9035-12f6a61b5b3c ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.35-28-generic
}
menuentry 'Ubuntu, with Linux 2.6.35-27-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos1)'
search --no-floppy --fs-uuid --set=root d73b63de-7b23-460e-9035-12f6a61b5b3c
linux /boot/vmlinuz-2.6.35-27-generic root=UUID=d73b63de-7b23-460e-9035-12f6a61b5b3c ro quiet splash
initrd /boot/initrd.img-2.6.35-27-generic
}
menuentry 'Ubuntu, with Linux 2.6.35-27-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos1)'
search --no-floppy --fs-uuid --set=root d73b63de-7b23-460e-9035-12f6a61b5b3c
echo 'Loading Linux 2.6.35-27-generic ...'
linux /boot/vmlinuz-2.6.35-27-generic root=UUID=d73b63de-7b23-460e-9035-12f6a61b5b3c ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.35-27-generic
}
menuentry 'Ubuntu, with Linux 2.6.35-25-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos1)'
search --no-floppy --fs-uuid --set=root d73b63de-7b23-460e-9035-12f6a61b5b3c
linux /boot/vmlinuz-2.6.35-25-generic root=UUID=d73b63de-7b23-460e-9035-12f6a61b5b3c ro quiet splash
initrd /boot/initrd.img-2.6.35-25-generic
}
menuentry 'Ubuntu, with Linux 2.6.35-25-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos1)'
search --no-floppy --fs-uuid --set=root d73b63de-7b23-460e-9035-12f6a61b5b3c
echo 'Loading Linux 2.6.35-25-generic ...'
linux /boot/vmlinuz-2.6.35-25-generic root=UUID=d73b63de-7b23-460e-9035-12f6a61b5b3c ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.35-25-generic
}
menuentry 'Ubuntu, with Linux 2.6.35-24-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos1)'
search --no-floppy --fs-uuid --set=root d73b63de-7b23-460e-9035-12f6a61b5b3c
linux /boot/vmlinuz-2.6.35-24-generic root=UUID=d73b63de-7b23-460e-9035-12f6a61b5b3c ro quiet splash
initrd /boot/initrd.img-2.6.35-24-generic
}
menuentry 'Ubuntu, with Linux 2.6.35-24-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos1)'
search --no-floppy --fs-uuid --set=root d73b63de-7b23-460e-9035-12f6a61b5b3c
echo 'Loading Linux 2.6.35-24-generic ...'
linux /boot/vmlinuz-2.6.35-24-generic root=UUID=d73b63de-7b23-460e-9035-12f6a61b5b3c ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.35-24-generic
}
menuentry 'Ubuntu, with Linux 2.6.35-22-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos1)'
search --no-floppy --fs-uuid --set=root d73b63de-7b23-460e-9035-12f6a61b5b3c
linux /boot/vmlinuz-2.6.35-22-generic root=UUID=d73b63de-7b23-460e-9035-12f6a61b5b3c ro quiet splash
initrd /boot/initrd.img-2.6.35-22-generic
}
menuentry 'Ubuntu, with Linux 2.6.35-22-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos1)'
search --no-floppy --fs-uuid --set=root d73b63de-7b23-460e-9035-12f6a61b5b3c
echo 'Loading Linux 2.6.35-22-generic ...'
linux /boot/vmlinuz-2.6.35-22-generic root=UUID=d73b63de-7b23-460e-9035-12f6a61b5b3c ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.35-22-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos1)'
search --no-floppy --fs-uuid --set=root d73b63de-7b23-460e-9035-12f6a61b5b3c
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos1)'
search --no-floppy --fs-uuid --set=root d73b63de-7b23-460e-9035-12f6a61b5b3c
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
if [ "x${timeout}" != "x-1" ]; then
if keystatus; then
if keystatus --shift; then
set timeout=-1
else
set timeout=0
fi
else
if sleep --interruptible 3 ; then
set timeout=0
fi
fi
fi
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
--------------------------------------------------------------------------------

=============================== sda1/etc/fstab: ================================

--------------------------------------------------------------------------------
# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
/dev/sda1 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
UUID=31d6db05-67d0-45b5-8d3d-5ed84e930a8c none swap sw 0 0
--------------------------------------------------------------------------------

=================== sda1: Location of files loaded by Grub: ====================

GiB - GB File Fragment(s)

= boot/grub/core.img 1
= boot/grub/grub.cfg 1
= boot/initrd.img-2.6.35-22-generic 2
= boot/initrd.img-2.6.35-24-generic 2
= boot/initrd.img-2.6.35-25-generic 2
= boot/initrd.img-2.6.35-27-generic 2
= boot/initrd.img-2.6.35-28-generic 2
= boot/vmlinuz-2.6.35-22-generic 1
= boot/vmlinuz-2.6.35-24-generic 1
= boot/vmlinuz-2.6.35-25-generic 1
= boot/vmlinuz-2.6.35-27-generic 1
= boot/vmlinuz-2.6.35-28-generic 1
= boot/vmlinuz-2.6.38-8-generic 1
= initrd.img 2
= initrd.img.old 2
= vmlinuz 1
= vmlinuz.old 1

======================== Unknown MBRs/Boot Sectors/etc: ========================

Unknown BootLoader on sda2

00000000 81 33 c5 04 a1 0d 72 74 47 a3 2d 65 4b 28 dd 49 |.3....rtG.-eK(.I|
00000010 78 73 90 9c 9a 5a 75 66 c7 32 55 1f 92 5f dd 49 |xs...Zuf.2U.._.I|
00000020 44 42 a2 2f 22 89 4a 20 48 a7 cc 26 07 df dd 49 |DB./".J H..&...I|
00000030 38 9d b3 f0 5c a7 ba d0 c2 88 76 05 6e 5d dd 49 |8...\.....v.n].I|
00000040 2e 1e e7 83 6d 0c 07 11 32 e0 ab 98 ba 49 dd 49 |....m...2....I.I|
00000050 2c 09 0f d9 43 25 5c 7f 2d b9 e5 54 6c 69 dd 49 |,...C%\.-..Tli.I|
00000060 2a 0b 61 0d 64 c0 9a 9f 5a 2e 50 9e 79 cf dd 49 |*.a.d...Z.P.y..I|
00000070 1a 39 13 38 eb 58 6e 99 68 df 38 d3 50 a6 dd 49 |.9.8.Xn.h.8.P..I|
00000080 11 8d 8e f6 d0 94 1e c9 cc 96 c5 75 5b 19 dd 49 |...........u[..I|
00000090 09 2e 32 cc 55 20 c7 96 6e 4b f6 64 0b 42 dd 48 |..2.U ..nK.d.B.H|
000000a0 d5 e5 ac 02 e7 c2 b2 06 78 22 aa 8f a5 db dd 48 |........x".....H|
000000b0 c3 3e d7 d5 22 01 37 9b a1 a5 4a 9a 2a 83 dd 48 |.>..".7...J.*..H|
000000c0 c0 89 f9 d8 f0 c4 f3 b0 88 62 e8 a8 8a 06 dd 48 |.........b.....H|
000000d0 c0 4f b8 89 a7 08 26 4b af 1b fc ee e6 d6 dd 48 |.O....&K.......H|
000000e0 ba 86 a0 43 5e 74 81 ef 3b cb 77 19 be 5b dd 48 |...C^t..;.w..[.H|
000000f0 ae 7b 73 b5 2c 29 1b a7 6f 60 39 29 7d e3 dd 48 |.{s.,)..o`9)}..H|
00000100 9f 54 03 c4 fa 3b 3c 36 74 cb 0f 91 f1 b8 dd 48 |.T...;<6t......H|
00000110 9c 1b 85 40 5c 2b 65 18 c5 24 a4 03 99 97 dd 48 |...@\+e..$.....H|
00000120 94 20 d6 d4 f9 7b ec a1 81 3f f5 45 7a 70 dd 48 |. ...{...?.Ezp.H|
00000130 92 92 47 2b 69 a8 63 c3 0a 9f 64 65 40 7f dd 48 |..G+i.c...de@..H|
00000140 89 e6 0e 2e fc 81 bc 57 c5 e3 fb f3 fd 51 dd 48 |.......W.....Q.H|
00000150 89 32 d6 a3 b3 a5 ec 59 96 62 e8 86 2f 7b dd 48 |.2.....Y.b../{.H|
00000160 6b ad 88 4f c8 e7 fb d3 7d 57 26 40 28 57 dd 48 |k..O....}W&@(W.H|
00000170 64 89 cf 79 d1 10 2f a5 7e 6c 38 1b 86 59 dd 48 |d..y../.~l8..Y.H|
00000180 5f bf 03 4f 10 fe 49 31 b6 02 03 85 9b a4 dd 48 |_..O..I1.......H|
00000190 5e 2e 06 6e bc ee f3 57 47 75 1a 32 77 34 dd 48 |^..n...WGu.2w4.H|
000001a0 53 80 4d 62 be dc 5f 32 72 55 c1 a1 52 0a dd 48 |S.Mb.._2rU..R..H|
000001b0 49 62 07 9c 30 7b fa 53 32 0e 30 8a 96 c6 00 fe |Ib..0{.S2.0.....|
000001c0 ff ff 82 fe ff ff 02 00 00 00 00 b0 5d 00 00 00 |............]...|
000001d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
000001f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 aa |..............U.|
00000200


=============================== StdErr Messages: ===============================

awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in


Can't I just finish the system update somehow using this LiveCD?

Rubi1200
June 3rd, 2011, 12:29 AM
I think there is an option on the CD to repair a broken system and if you have backups of data it might be worthwhile trying it. If not, it might be best to just reinstall.

Dekkenz
June 3rd, 2011, 12:48 AM
I have checked the CD, there is no repair option as it seems.

Rubi1200
June 3rd, 2011, 12:58 AM
The only other way I know of is to do a chroot from the LiveCD (and you must have an Internet connection for this):



sudo mkdir /mnt/temp
sudo mount /dev/sda1 /mnt/temp
for i in /dev /dev/pts /proc /sys; do sudo mount -B $i /mnt/temp$i; done
sudo cp /etc/resolv.conf /mnt/temp/etc/resolv.conf
sudo chroot /mnt/tempThis will bring you to a root prompt so any commands after this do not need sudo.

I would start with the following:


apt-get autoclean
apt-get clean
apt-get update
apt-get upgrade
apt-get dist-upgrade
apt-get install -f
dpkg --configure -aIf all this completes without errors, reinstall GRUB for good measure:


apt-get purge grub grub-pc grub-common
apt-get install grub-common grub-pc
update-grub

Then finish up:


exit
for i in /dev/pts /dev /proc /sys; do sudo umount /mnt/temp$i ; doneReboot.

Dekkenz
June 3rd, 2011, 01:25 AM
I do not seem to have this file:
sudo cp /etc/resolv.conf /mnt/temp/etc/resolv.conf

I have a folder called resolvconf, and that is about it.

Dekkenz
June 3rd, 2011, 02:07 AM
Edit:
I get this: "E: Unable to locate package grub-common"

Rubi1200
June 3rd, 2011, 07:39 AM
Can you access your data?

I really think you would be better off saving data and reinstalling in this situation. There are too many errors and too many unknown factors to try and fix this effectively.

Clearly something got badly broken during the upgrade attempt and unless someone else has more ideas I would recommend going for a fresh install.

Dekkenz
June 3rd, 2011, 10:11 AM
Yea, I created a partition with the old data, and installed ubuntu on the new partition.
I will move all the data I need, and format the old partition, and merge if possible.

Thanks for all the help!