Boot issues after recent updates

Asked by Vineet Kashyap

Hi

I have an ACER aspire netbook which had a base OS of Windows XP on which i installed Ubuntu using WUBI and everything was fine until i applied some updates which caused Ubuntu to stop booting and come with this error:

NTFS5:no wubildr and pc is restarted.

After doing some research, i tried copying wubildr and wubildr.mbr from my c:\ubuntu\... to c:\ which did not fix the problem.

I then got the latest iso for Ubuntu 10.10 and booted it off my usb drive and used update-grub which then caused Windows to stop booting and came with grub rescue console.

I then used Windows on my usb drive to fix mbr but got a blue screen instead. I then used ms-sys on \dev\sdb2 which is my c drive from Ubuntu Live to fix mbr and now i am getting error: unknown filesystem followed by grub rescue console. Now when i boot Ubuntu from usb, mouse has stopped working but that is not a big deal.

I have lost 2 days and need help urgently for my Masters. I ran the boot-info script and the following is the result:

Few other things that might help you narrow down the problem: I can't see menu.lst or grub.conf anywhere on my boot partition.

I need both windows and ubuntu up and running.

                Boot Info Script 0.55 dated February 15th, 2010

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

 => Syslinux is installed in the MBR of /dev/sda
 => Grub 2 is installed in the MBR of /dev/sdb and looks on the same drive in
    partition #2 for (,msdos2)/boot/grub.

sda1: _________________________________________________________________________

    File system: vfat
    Boot sector type: Unknown
    Boot sector info: No errors found in the Boot Parameter Block.
    Operating System:
    Boot files/dirs:

sdb1: _________________________________________________________________________

    File system: ntfs
    Boot sector type: Windows Vista/7
    Boot sector info: No errors found in the Boot Parameter Block.
    Operating System:
    Boot files/dirs: /BOOTMGR /BOOT/BCD

sdb2: _________________________________________________________________________

    File system: ntfs
    Boot sector type: Windows Vista/7
    Boot sector info: No errors found in the Boot Parameter Block.
    Operating System: Windows XP
    Boot files/dirs: /boot.ini /ntldr /NTDETECT.COM /wubildr.mbr
                       /ubuntu/winboot/wubildr.mbr /wubildr
                       /ubuntu/winboot/wubildr /ubuntu/disks/root.disk
                       /ubuntu/disks/swap.disk /boot/grub/core.img

sdb2/Wubi: _________________________________________________________________________

    File system: ext4
    Boot sector type: -
    Boot sector info:
    Operating System: Ubuntu 10.04.1 LTS
    Boot files/dirs: /boot/grub/grub.cfg /etc/fstab

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

Drive: sda ___________________ _____________________________________________________

Disk /dev/sda: 4009 MB, 4009754624 bytes
255 heads, 63 sectors/track, 487 cylinders, total 7831552 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition Boot Start End Size Id System

/dev/sda1 * 63 7,807,589 7,807,527 b W95 FAT32

Drive: sdb ___________________ _____________________________________________________

Disk /dev/sdb: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition Boot Start End Size Id System

/dev/sdb1 63 12,594,959 12,594,897 12 Compaq diagnostics
/dev/sdb2 * 12,595,200 312,578,047 299,982,848 7 HPFS/NTFS

blkid -c /dev/null: ____________________________________________________________

Device UUID TYPE LABEL

/dev/loop0 squashfs
/dev/loop1 16142268-1400-4a72-a9c3-341d670b2745 ext4
/dev/sda1 E0A6-D666 vfat PENDRIVE
/dev/sda: PTTYPE="dos"
/dev/sdb1 2278EF8578EF55D7 ntfs PQSERVICE
/dev/sdb2 52B4BB85B4BB6A5D ntfs ACER
/dev/sdb: PTTYPE="dos"

============================ "mount | grep ^/dev output: ===========================

Device Mount_Point Type Options

aufs / aufs (rw)
/dev/sda1 /cdrom vfat (rw,relatime,fmask=0022,dmask=0022,codepage=cp437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
/dev/loop0 /rofs squashfs (ro,noatime)

================================ sdb2/boot.ini: ================================

[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(2)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(2)\WINDOWS="Microsoft Windows XP Home Edition" /noexecute=optin /fastdetect
C:\wubildr.mbr = "Ubuntu"

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

    ??GB: boot/grub/core.img

======================== sdb2/Wubi/boot/grub/grub.cfg: ========================

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/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
  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
}
insmod ntfs
set root='(hd0,2)'
search --no-floppy --fs-uuid --set 52b4bb85b4bb6a5d
loopback loop0 /ubuntu/disks/root.disk
set root=(loop0)
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=640x480
  insmod gfxterm
  insmod vbe
  if terminal_output gfxterm ; then true ; else
    # For backward compatibility with versions of terminal.mod that don't
    # understand terminal_output
    terminal gfxterm
  fi
fi
insmod ntfs
set root='(hd0,2)'
search --no-floppy --fs-uuid --set 52b4bb85b4bb6a5d
loopback loop0 /ubuntu/disks/root.disk
set root=(loop0)
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 ###
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/10_lupin ###
menuentry "Ubuntu, Linux 2.6.32-27-generic" {
 insmod ntfs
 set root='(hd0,2)'
 search --no-floppy --fs-uuid --set 52b4bb85b4bb6a5d
 loopback loop0 /ubuntu/disks/root.disk
 set root=(loop0)
 linux /boot/vmlinuz-2.6.32-27-generic root=/dev/sda2 loop=/ubuntu/disks/root.disk ro quiet splash
 initrd /boot/initrd.img-2.6.32-27-generic
}
menuentry "Ubuntu, Linux 2.6.32-27-generic (recovery mode)" {
 insmod ntfs
 set root='(hd0,2)'
 search --no-floppy --fs-uuid --set 52b4bb85b4bb6a5d
 loopback loop0 /ubuntu/disks/root.disk
 set root=(loop0)
 linux /boot/vmlinuz-2.6.32-27-generic root=/dev/sda2 loop=/ubuntu/disks/root.disk ro single
 initrd /boot/initrd.img-2.6.32-27-generic
}
menuentry "Ubuntu, Linux 2.6.32-22-generic" {
 insmod ntfs
 set root='(hd0,2)'
 search --no-floppy --fs-uuid --set 52b4bb85b4bb6a5d
 loopback loop0 /ubuntu/disks/root.disk
 set root=(loop0)
 linux /boot/vmlinuz-2.6.32-22-generic root=/dev/sda2 loop=/ubuntu/disks/root.disk ro quiet splash
 initrd /boot/initrd.img-2.6.32-22-generic
}
menuentry "Ubuntu, Linux 2.6.32-22-generic (recovery mode)" {
 insmod ntfs
 set root='(hd0,2)'
 search --no-floppy --fs-uuid --set 52b4bb85b4bb6a5d
 loopback loop0 /ubuntu/disks/root.disk
 set root=(loop0)
 linux /boot/vmlinuz-2.6.32-22-generic root=/dev/sda2 loop=/ubuntu/disks/root.disk ro single
 initrd /boot/initrd.img-2.6.32-22-generic
}
menuentry "Ubuntu, Linux 2.6.31-20-generic" {
 insmod ntfs
 set root='(hd0,2)'
 search --no-floppy --fs-uuid --set 52b4bb85b4bb6a5d
 loopback loop0 /ubuntu/disks/root.disk
 set root=(loop0)
 linux /boot/vmlinuz-2.6.31-20-generic root=/dev/sda2 loop=/ubuntu/disks/root.disk ro quiet splash
 initrd /boot/initrd.img-2.6.31-20-generic
}
menuentry "Ubuntu, Linux 2.6.31-20-generic (recovery mode)" {
 insmod ntfs
 set root='(hd0,2)'
 search --no-floppy --fs-uuid --set 52b4bb85b4bb6a5d
 loopback loop0 /ubuntu/disks/root.disk
 set root=(loop0)
 linux /boot/vmlinuz-2.6.31-20-generic root=/dev/sda2 loop=/ubuntu/disks/root.disk ro single
 initrd /boot/initrd.img-2.6.31-20-generic
}
### END /etc/grub.d/10_lupin ###

### BEGIN /etc/grub.d/20_memtest86+ ###
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows Vista (loader) (on /dev/sda1)" {
 insmod ntfs
 set root='(hd0,1)'
 search --no-floppy --fs-uuid --set 2278ef8578ef55d7
 chainloader +1
}
menuentry "Microsoft Windows XP Home Edition (on /dev/sda2)" {
 insmod ntfs
 set root='(hd0,2)'
 search --no-floppy --fs-uuid --set 52b4bb85b4bb6a5d
 drivemap -s (hd0) ${root}
 chainloader +1
}
### 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 ###

============================= sdb2/Wubi/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 defaults 0 0
/host/ubuntu/disks/root.disk / ext4 loop,errors=remount-ro 0 1
/host/ubuntu/disks/swap.disk none swap loop,sw 0 0

================= sdb2/Wubi: Location of files loaded by Grub: =================

    .7GB: boot/grub/grub.cfg
   3.3GB: boot/initrd.img-2.6.31-20-generic
  10.4GB: boot/initrd.img-2.6.32-22-generic
   7.8GB: boot/initrd.img-2.6.32-27-generic
   1.2GB: boot/vmlinuz-2.6.31-20-generic
   9.6GB: boot/vmlinuz-2.6.32-22-generic
   6.2GB: boot/vmlinuz-2.6.32-27-generic
   7.8GB: initrd.img
  10.4GB: initrd.img.old
   6.2GB: vmlinuz
   9.6GB: vmlinuz.old
=========================== Unknown MBRs/Boot Sectors/etc =======================

Unknown BootLoader on sda1

00000000 eb 58 90 53 59 53 4c 49 4e 55 58 00 02 02 ba 13 |.X.SYSLINUX.....|
00000010 02 00 00 00 00 f8 00 00 3f 00 ff 00 3f 00 00 00 |........?...?...|
00000020 27 22 77 00 23 76 00 00 00 00 00 00 02 00 00 00 |'"w.#v..........|
00000030 01 00 06 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000040 80 00 29 66 d6 a6 e0 4e 4f 20 4e 41 4d 45 20 20 |..)f...NO NAME |
00000050 20 20 46 41 54 33 32 20 20 20 fa fc 31 c9 8e d1 | FAT32 ..1...|
00000060 bc 76 7b 52 06 57 8e c1 b1 26 bf 78 7b f3 a5 8e |.v{R.W...&.x{...|
00000070 d9 bb 78 00 0f b4 37 0f a0 56 20 d2 78 1b 31 c0 |..x...7..V .x.1.|
00000080 b1 06 89 3f 89 47 02 f3 64 a5 8a 0e 18 7c 88 4d |...?.G..d....|.M|
00000090 bc 50 50 50 50 cd 13 eb 4b f6 45 b4 7f 75 25 38 |.PPPP...K.E..u%8|
000000a0 4d b8 74 20 66 3d 21 47 50 54 75 10 80 7d b8 ed |M.t f=!GPTu..}..|
000000b0 75 0a 66 ff 75 ec 66 ff 75 e8 eb 0f 51 51 66 ff |u.f.u.f.u...QQf.|
000000c0 75 bc eb 07 51 51 66 ff 36 1c 7c b4 08 cd 13 72 |u...QQf.6.|....r|
000000d0 13 20 e4 75 0f c1 ea 08 42 89 16 1a 7c 83 e1 3f |. .u....B...|..?|
000000e0 89 0e 18 7c fb bb aa 55 b4 41 8a 16 74 7b cd 13 |...|...U.A..t{..|
000000f0 72 10 81 fb 55 aa 75 0a f6 c1 01 74 05 c6 06 32 |r...U.u....t...2|
00000100 7d 00 66 b8 8c 00 01 00 66 ba 00 00 00 00 bb 00 |}.f.....f.......|
00000110 7e e8 10 00 66 81 3e 24 7e 34 be f5 72 75 76 ea |~...f.>$~4..ruv.|
00000120 38 7e 00 00 66 03 06 64 7b 66 13 16 68 7b b9 10 |8~..f..d{f..h{..|
00000130 00 eb 2b 66 52 66 50 06 53 6a 01 6a 10 89 e6 66 |..+fRfP.Sj.j...f|
00000140 60 b4 42 e8 7f 00 66 61 8d 64 10 72 01 c3 66 60 |`.B...fa.d.r..f`|
00000150 31 c0 e8 70 00 66 61 e2 da c6 06 32 7d 2b 66 60 |1..p.fa....2}+f`|
00000160 66 0f b7 36 18 7c 66 0f b7 3e 1a 7c 66 f7 f6 31 |f..6.|f..>.|f..1|
00000170 c9 87 ca 66 f7 f7 66 3d ff 03 00 00 77 17 c0 e4 |...f..f=....w...|
00000180 06 41 08 e1 88 c5 88 d6 b8 01 02 e8 37 00 66 61 |.A..........7.fa|
00000190 72 01 c3 e2 c9 31 f6 8e d6 bc 6c 7b 8e de 66 8f |r....1....l{..f.|
000001a0 06 78 00 be cc 7d e8 09 00 31 c0 cd 16 cd 19 f4 |.x...}...1......|
000001b0 eb fd 66 60 ac 20 c0 74 09 b4 0e bb 07 00 cd 10 |..f`. .t........|
000001c0 eb f2 66 61 c3 8a 16 74 7b cd 13 c3 42 6f 6f 74 |..fa...t{...Boot|
000001d0 20 65 72 72 6f 72 0d 0a 00 00 00 00 00 00 00 00 | error..........|
000001e0 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

Regards,

Vineet

Question information

Language:
English Edit question
Status:
Solved
For:
Wubi Edit question
Assignee:
No assignee Edit question
Solved by:
bcbc
Solved:
Last query:
Last reply:
Revision history for this message
Best bcbc (bcbc) said :
#1

Hi are you still having a problem with this.
From your bootinfoscript, you need to replace grub in your master boot record (MBR) of /dev/sdb

You can do this from the Ubuntu, so boot that same 'live USB', then run:
sudo apt-get install lilo
hit ENTER on big warning screen that you can ignore - it relates to booting linux not windows, and then run:
sudo lilo -M /dev/sdb mbr

This will install a windows equivalent bootloader on your internal drive. If you prefer you can use a windows repair disc as well. This should resolve your first problem - getting windows booting.

For the second, see this thread:
You want Problem #1, Solution #1 followed by the permanent fix.

Let me know if you have any questions.

PS I'm a bit confused that your /dev/sdb1 has vista/7 boot files, and your /dev/sdb2 has XP boot files, but the bootinfoscript says that /dev/sdb2 has a windows7 boot sector (and it also has the boot flag set).
If you find windows is still not booting you'll need to explain what your setup is supposed to be.

Revision history for this message
bcbc (bcbc) said :
#2

I said: "For the second see this thread:" but forgot to post the link...http://ubuntuforums.org/showthread.php?t=1639198

Revision history for this message
Vineet Kashyap (vineetkashyap586) said :
#3

Hi bcbc

I had to use TestDisk to fix the boot sector of my partition first. Then, installed lilo onto this drive and finally i was able to boot Windows.

Then, edited the grub.cfg file to get Ubuntu back up and running and lastly applied the permanent fix.

I hope any future updates won't break anything. I am currently on 10.04 Lucid so might upgrade to Maverick once i have completed my Masters.

Thanks a lot for your help and a very happy new year.

Regards,

Vineet

Revision history for this message
Vineet Kashyap (vineetkashyap586) said :
#4

Thanks bcbc, that solved my question.

Revision history for this message
bcbc (bcbc) said :
#5

Hi Vineet Kashyap,

Glad to hear you got it sorted. You will likely have a similar problem upgrading to 10.10 so be prepared to run that fix again. If you locked packages grub-pc and grub-common you shouldn't have another problem staying with 10.04

Regards
bcbc