PDA

View Full Version : [wubi] Cannot boot after wubi install



CaKiwi
April 1st, 2011, 12:01 AM
I deleted my 9.10 wubi install and tried to install wubi 10.10. Now I get the following messages when booting into ubuntu

Gave up waiting for root device
...
ALERT /dev/sbd1 does not exist. Dropping to a shell

I can boot into windows 7 without problems

I ran the boot_info_script from the live cd and this is the RESULTS.txt file


Boot Info Script 0.55 dated February 15th, 2010

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

=> Windows is installed in the MBR of /dev/sdb

sdb1: __________________________________________________ _______________________

File system: ntfs
Boot sector type: Windows Vista/7
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows 7
Boot files/dirs: /bootmgr /boot/bcd /Windows/System32/winload.exe
/wubildr.mbr /ubuntu/winboot/wubildr.mbr /wubildr
/ubuntu/winboot/wubildr /ubuntu/disks/root.disk
/ubuntu/disks/swap.disk

sdb1/Wubi: __________________________________________________ _______________________

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

sdb2: __________________________________________________ _______________________

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

sdb3: __________________________________________________ _______________________

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

sdb5: __________________________________________________ _______________________

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

sdb6: __________________________________________________ _______________________

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

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

Drive: sdb ___________________ __________________________________________________ ___

Disk /dev/sdb: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488397168 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 * 2,048 390,636,539 390,634,492 7 HPFS/NTFS
/dev/sdb2 465,500,160 488,394,751 22,894,592 7 HPFS/NTFS
/dev/sdb3 390,636,540 465,499,439 74,862,900 5 Extended
/dev/sdb5 390,636,666 460,953,044 70,316,379 83 Linux
/dev/sdb6 460,953,108 465,499,439 4,546,332 82 Linux swap / Solaris


blkid -c /dev/null: __________________________________________________ __________

Device UUID TYPE LABEL

/dev/loop0 squashfs
/dev/loop1 0b4fb056-b732-4113-b7ef-dfe4f8bb8aac ext4
/dev/sdb1 7E2AC78C2AC73FBF ntfs
/dev/sdb2 826873DF6873D101 ntfs RECOVERY
/dev/sdb3: PTTYPE="dos"
/dev/sdb5 13b72c28-4213-4dc2-8004-2b7b0446ea91 ext4
/dev/sdb6 18b48473-100f-4a6c-be2e-9865697fa845 swap
/dev/sdb: PTTYPE="dos"
error: /dev/sda: No medium found

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

Device Mount_Point Type Options

aufs / aufs (rw)
/dev/sr0 /cdrom iso9660 (ro,noatime)
/dev/loop0 /rofs squashfs (ro,noatime)


======================== sdb1/Wubi/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 {
}

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.35-22-generic" {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 7e2ac78c2ac73fbf
loopback loop0 /ubuntu/disks/root.disk
set root=(loop0)
linux /boot/vmlinuz-2.6.35-22-generic root=/dev/sdb1 loop=/ubuntu/disks/root.disk ro quiet splash
initrd /boot/initrd.img-2.6.35-22-generic
}
menuentry "Ubuntu, Linux 2.6.35-22-generic (recovery mode)" {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 7e2ac78c2ac73fbf
loopback loop0 /ubuntu/disks/root.disk
set root=(loop0)
linux /boot/vmlinuz-2.6.35-22-generic root=/dev/sdb1 loop=/ubuntu/disks/root.disk ro single
initrd /boot/initrd.img-2.6.35-22-generic
}
### END /etc/grub.d/10_lupin ###

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

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

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows 7 (loader) (on /dev/sdb1)" {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 7e2ac78c2ac73fbf
chainloader +1
}
menuentry "Windows Vista (loader) (on /dev/sdb2)" {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set 826873df6873d101
chainloader +1
}
menuentry "Ubuntu, Linux 2.6.31-17-generic (on /dev/sdb5)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set 13b72c28-4213-4dc2-8004-2b7b0446ea91
linux /boot/vmlinuz-2.6.31-17-generic root=UUID=13b72c28-4213-4dc2-8004-2b7b0446ea91 ro quiet splash
initrd /boot/initrd.img-2.6.31-17-generic
}
menuentry "Ubuntu, Linux 2.6.31-17-generic (recovery mode) (on /dev/sdb5)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set 13b72c28-4213-4dc2-8004-2b7b0446ea91
linux /boot/vmlinuz-2.6.31-17-generic root=UUID=13b72c28-4213-4dc2-8004-2b7b0446ea91 ro single
initrd /boot/initrd.img-2.6.31-17-generic
}
menuentry "Ubuntu, Linux 2.6.31-14-generic (on /dev/sdb5)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set 13b72c28-4213-4dc2-8004-2b7b0446ea91
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=13b72c28-4213-4dc2-8004-2b7b0446ea91 ro quiet splash
initrd /boot/initrd.img-2.6.31-14-generic
}
menuentry "Ubuntu, Linux 2.6.31-14-generic (recovery mode) (on /dev/sdb5)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set 13b72c28-4213-4dc2-8004-2b7b0446ea91
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=13b72c28-4213-4dc2-8004-2b7b0446ea91 ro single
initrd /boot/initrd.img-2.6.31-14-generic
}
### 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 ###

============================= sdb1/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 nodev,noexec,nosuid 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

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


2.3GB: boot/grub/grub.cfg
2.4GB: boot/initrd.img-2.6.35-22-generic
10.9GB: boot/vmlinuz-2.6.35-22-generic
2.4GB: initrd.img
10.9GB: vmlinuz

=========================== sdb5/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 /boot/grub/grubenv ]; then
have_grubenv=true
load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
saved_entry=${prev_saved_entry}
save_env saved_entry
prev_saved_entry=
save_env prev_saved_entry
fi
insmod ext2
set root=(hd0,5)
search --no-floppy --fs-uuid --set 13b72c28-4213-4dc2-8004-2b7b0446ea91
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
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/white
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry "Ubuntu, Linux 2.6.31-17-generic" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd0,5)
search --no-floppy --fs-uuid --set 13b72c28-4213-4dc2-8004-2b7b0446ea91
linux /boot/vmlinuz-2.6.31-17-generic root=UUID=13b72c28-4213-4dc2-8004-2b7b0446ea91 ro quiet splash
initrd /boot/initrd.img-2.6.31-17-generic
}
menuentry "Ubuntu, Linux 2.6.31-17-generic (recovery mode)" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod ext2
set root=(hd0,5)
search --no-floppy --fs-uuid --set 13b72c28-4213-4dc2-8004-2b7b0446ea91
linux /boot/vmlinuz-2.6.31-17-generic root=UUID=13b72c28-4213-4dc2-8004-2b7b0446ea91 ro single
initrd /boot/initrd.img-2.6.31-17-generic
}
menuentry "Ubuntu, Linux 2.6.31-14-generic" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd0,5)
search --no-floppy --fs-uuid --set 13b72c28-4213-4dc2-8004-2b7b0446ea91
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=13b72c28-4213-4dc2-8004-2b7b0446ea91 ro quiet splash
initrd /boot/initrd.img-2.6.31-14-generic
}
menuentry "Ubuntu, Linux 2.6.31-14-generic (recovery mode)" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod ext2
set root=(hd0,5)
search --no-floppy --fs-uuid --set 13b72c28-4213-4dc2-8004-2b7b0446ea91
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=13b72c28-4213-4dc2-8004-2b7b0446ea91 ro single
initrd /boot/initrd.img-2.6.31-14-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows 7 (loader) (on /dev/sda1)" {
insmod ntfs
set root=(hd0,1)
search --no-floppy --fs-uuid --set 7e2ac78c2ac73fbf
chainloader +1
}
menuentry "Windows Vista (loader) (on /dev/sda2)" {
insmod ntfs
set root=(hd0,2)
search --no-floppy --fs-uuid --set 826873df6873d101
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 ###

=============================== sdb5/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
# / was on /dev/sda5 during installation
UUID=13b72c28-4213-4dc2-8004-2b7b0446ea91 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda6 during installation
UUID=18b48473-100f-4a6c-be2e-9865697fa845 none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0

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


200.9GB: boot/grub/core.img
202.1GB: boot/grub/grub.cfg
200.9GB: boot/initrd.img-2.6.31-14-generic
200.9GB: boot/initrd.img-2.6.31-17-generic
202.4GB: boot/vmlinuz-2.6.31-14-generic
200.7GB: boot/vmlinuz-2.6.31-17-generic
200.9GB: initrd.img
202.4GB: vmlinuz
=======Devices which don't seem to have a corresponding hard drive==============

sda
Any help appreciated

Dutch70
April 1st, 2011, 12:37 AM
Are you sure you had 9.10 installed with Wubi?

Your boot info script says you have/had grub installed.

You may want to search for the wubi megathread and see if you can find some info in there. I can't seem to find it right now.

CaKiwi
April 1st, 2011, 12:55 AM
I'm sure I did a wubi install.
I originally did a normal dual boot installation but I was continually having problem not being able to boot into windows 7, seemingly after windows did an update. See this thread http://ubuntuforums.org/showthread.php?t=1376746

bcbc
April 1st, 2011, 01:51 AM
It's interesting that your hard drive shows up as /dev/sdb ... where is /dev/sda? If you look at your leftover karmic grub.cfg it refers to (hd0,5) (which is /dev/sda5)

It's probably complaining about /dev/sdb1 because it should be /dev/sda1. You can check this:

1. When you select Ubuntu it goes to the grub menu
2. Hit 'c' and enter ls (lower case LS)
3. If you see (hd0) (hd0,1) (hd0,2) then you should be booting /dev/sda1
4. If so, hit ESC to go back to the menu
5 Hit 'e' to edit the entry. Change /dev/sdb1 to /dev/sda1
6 CTRL+x to boot
7. Drop to terminal (CTRL+ALT+t) and update grub: sudo update-grub

Hedgehog1
April 1st, 2011, 03:46 AM
California Kiwi,

Dutch70 pointed this thread out to me.

I have been following the phenomenon of LiveUSB's appearing before the hard drives (LiveUSB is /dev/sda, your hard drive is /dev/sdb) and the issues that cause it.

Right now I am thinking it happens when a hard disk is a little slow to spin up. This MIGHT be what caused Windows 7 to not boot properly from grub on your system. But I am still too early in the study of this to say for sure.

At this moment, I have a working theory; and as a side effect of testing that theory I hope to get your WUBI install working again (The old Win/Win).

The idea is to add a rootdelay to the Ubuntu boot, to give the disk a little time.

Please boot off the LiveUSB, select TRY, and then:

In the Terminal (Menu to: Applications >> Accessories >> Terminal):


sudo mount /dev/sdb5 /mnt


gksudo gedit /mnt/etc/default/grub

change this line:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

to this:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash rootdelay=120"

save the file and exit.


sudo grub-install --root-directory=/mnt /dev/sdb

With any luck, you can now reboot and get into Ubuntu.

The Hedge

:KS

CaKiwi
April 1st, 2011, 07:40 AM
Thanks for the replies. I decided to try a full install and it has gone well so far. Maybe it will all fall apart again when Windows does an update, so I will bookmark this thread just in case I have to try Wubi again. I think the wubi problem is related to the fact that I still had an old partition and it got confused over the partition labels.

Thanks again

Cakiwi

Hedgehog1
April 1st, 2011, 07:44 AM
Fingers Crossed! (Does that really help?!?!)

We will be here if you need us...


The Hedge

:KS