gek0
June 21st, 2010, 12:21 PM
Hi all,
Skip to ################## to miss out my life story and introduction :P
I have been running Vista and Ubuntu for quite some time now. I Think I was using Wubi but it never occurred to me that this was the "wrong" way to install Ubuntu. Regardless I had fun for around half a year after taking a childhood ambition to run Linux(Sad I know).
So once school was finished and I had some free time I booted ubuntu and ran the update manager as it had been a while since i used it. I was given an option to upgrade to Lucid so I took it - obviously.
#########################
During the upgrade/installation it asked me to where grub2 was to be installed, and if my memory serves me correctly it said "if you are unsure, select all", so I selected all and proceeded, as boot loaders is not something I have ever spent any time on.
At the restart i was faced with grub rescue, it was from here I struggled. However, always impressed by how many errors can be fixed by Google I proceeded and made my Live CD, both Vista recovery and ubuntu Live.
It has been a week since this began and I have come a long way since and changed many settings as per every post and thread I came across, I will do my best to try and note the changes I made.
Live CD boot and changed grub2 install to /dev/sda, somehow.
Ran update-grub
Windows Recovery Environment appeared on grub2 menu.
Managed to install grub legacy? Certainly a different version than grub2
When I tried to boot to boot to vista on grub2 menu it hung for 3 seconds then restarted my computer back around to grub2 after bios.
I then found the fix if you used WUBI which I believed at the time I had, so I copied the files wublder and so on. Didn't work.
Then I found a post about using testdisk. The instructions were well written and I got to the point were you "backupBS" only to found no such option and everything reading "OK", suggesting nothing was wrong and this route would fail. I tried the other options of rebuilding and so on, dead ends also.
Then found a post from Oldfred (who I hope will spend the time with my post and help me ultimately put this being me so I can figure out what actually went wrong...") suggesting the use of the Vista recovery CD, I ran it no problem after a few failed attempts of writing it to CD, found my Vista OS and I went off to recovery it using the fixboot, scanos, rebuildbcd, which did something. Note I didnt run .fixmbr as I had spent alot of time(2 days) fixing grub to boot me to an OS... This didnt work either, either did chkdsk, i realise now I didnt run chkdsk /r properly, i guess it wasn't pointed to the correct drive or something I don't know.
So in my wisdom I booted from live CD and used Gparted to format my Linux partition and resize Vista to take up the existing room, with the idea of reinstalling lucid from CD and creating a fresh partition and hopefully rewriting grub correctly(Ambitious but I was tired and stuck). After reading some more on Gparted I realise it's not the best tool to use for Vista..... Too late now though.
This changed the outcome of trying to boot to Windows Recovery Environment to achieving a flashing underscore, something which seemed common, great, I'm almost there.
Ran testdisk again, no luck.
Decided to relaunch Recovery CD to just /fixmbr and be done with it and try to reinstall Ubuntu again. It was slow to load and also didn't locate my Vista OS, I tried the LOAD DRIVERS option, but it was late and I decided to give up and sleep.
Now, were I am at now.
Recovery CD boot caused Blue screen - irq_not_less_or_equal.
I realise I need to run chkdsk /r but I cannot reach a prompt to do so when booted to Windows CD, as it crashes.
I can continue and go down the repair MBR routes with boot cds and so on but I am going to ask for help before my computer goes on fire.
Time for the important details then.
Boot Info Script 0.55 dated February 15th, 2010
============================= Boot Info Summary: ==============================
=> Grub 2 is installed in the MBR of /dev/sda and looks on the same drive in
partition #5 for /boot/grub.
sda1: __________________________________________________ _______________________
File system: vfat
Boot sector type: Grub 2
Boot sector info: Grub 2 is installed in the boot sector of sda1 and
looks at sector 10935296 of the same hard drive for
core.img, but core.img can not be found at this
location. No errors found in the Boot Parameter Block.
Operating System:
Boot files/dirs: /COMMAND.COM
sda2: __________________________________________________ _______________________
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:
sda3: __________________________________________________ _______________________
File system: ntfs
Boot sector type: Windows Vista/7
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows Vista
Boot files/dirs: /bootmgr /Boot/BCD /Windows/System32/winload.exe
/wubildr.mbr /wubildr
sda4: __________________________________________________ _______________________
File system: Extended Partition
Boot sector type: -
Boot sector info:
sda5: __________________________________________________ _______________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 10.04 LTS
Boot files/dirs: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img
sda6: __________________________________________________ _______________________
File system: swap
Boot sector type: -
Boot sector info:
=========================== Drive/Partition Info: =============================
Drive: sda ___________________ __________________________________________________ ___
Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 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 112,454 112,392 de Dell Utility
/dev/sda2 112,640 21,084,159 20,971,520 7 HPFS/NTFS
/dev/sda3 * 21,084,160 566,162,147 545,077,988 7 HPFS/NTFS
/dev/sda4 566,163,454 625,141,759 58,978,306 5 Extended
/dev/sda5 566,163,456 622,616,575 56,453,120 83 Linux
/dev/sda6 622,618,624 625,141,759 2,523,136 82 Linux swap / Solaris
blkid -c /dev/null: __________________________________________________ __________
Device UUID TYPE LABEL
/dev/sda1 07D7-0606 vfat DellUtility
/dev/sda2 2ED2EF36D2EF0147 ntfs RECOVERY
/dev/sda3 CE60F48660F47695 ntfs Windows Vista
/dev/sda4: PTTYPE="dos"
/dev/sda5 36917c93-81d1-45fc-a492-71d7357cde3a ext4
/dev/sda6 ea654c7d-54e3-405d-9c61-596d1f6b5a3f swap
/dev/sda: PTTYPE="dos"
error: /dev/sdb: No medium found
error: /dev/sdc: No medium found
error: /dev/sdd: No medium found
error: /dev/sde: No medium found
============================ "mount | grep ^/dev output: ===========================
Device Mount_Point Type Options
/dev/sda5 / ext4 (rw,errors=remount-ro)
=========================== sda5/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 ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 36917c93-81d1-45fc-a492-71d7357cde3a
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 ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 36917c93-81d1-45fc-a492-71d7357cde3a
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.32-22-generic-pae' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 36917c93-81d1-45fc-a492-71d7357cde3a
linux /boot/vmlinuz-2.6.32-22-generic-pae root=UUID=36917c93-81d1-45fc-a492-71d7357cde3a ro quiet splash
initrd /boot/initrd.img-2.6.32-22-generic-pae
}
menuentry 'Ubuntu, with Linux 2.6.32-22-generic-pae (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 36917c93-81d1-45fc-a492-71d7357cde3a
echo 'Loading Linux 2.6.32-22-generic-pae ...'
linux /boot/vmlinuz-2.6.32-22-generic-pae root=UUID=36917c93-81d1-45fc-a492-71d7357cde3a ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.32-22-generic-pae
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 36917c93-81d1-45fc-a492-71d7357cde3a
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 36917c93-81d1-45fc-a492-71d7357cde3a
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Dell Utility Partition (on /dev/sda1)" {
insmod fat
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 07d7-0606
drivemap -s (hd0) ${root}
chainloader +1
}
menuentry "Windows Recovery Environment (loader) (on /dev/sda3)" {
insmod ntfs
set root='(hd0,3)'
search --no-floppy --fs-uuid --set ce60f48660f47695
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 ###
=============================== sda5/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
# / was on /dev/sda5 during installation
UUID=36917c93-81d1-45fc-a492-71d7357cde3a / ext4 errors=remount-ro 0 1
# swap was on /dev/sda6 during installation
UUID=ea654c7d-54e3-405d-9c61-596d1f6b5a3f none swap sw 0 0
=================== sda5: Location of files loaded by Grub: ===================
305.0GB: boot/grub/core.img
292.1GB: boot/grub/grub.cfg
305.3GB: boot/initrd.img-2.6.32-22-generic-pae
305.1GB: boot/vmlinuz-2.6.32-22-generic-pae
305.3GB: initrd.img
305.1GB: vmlinuz
=======Devices which don't seem to have a corresponding hard drive==============
sdb sdc sdd sde Thank you for taking the time to read and I hope you can get my out of this and back into my dual boot.
Skip to ################## to miss out my life story and introduction :P
I have been running Vista and Ubuntu for quite some time now. I Think I was using Wubi but it never occurred to me that this was the "wrong" way to install Ubuntu. Regardless I had fun for around half a year after taking a childhood ambition to run Linux(Sad I know).
So once school was finished and I had some free time I booted ubuntu and ran the update manager as it had been a while since i used it. I was given an option to upgrade to Lucid so I took it - obviously.
#########################
During the upgrade/installation it asked me to where grub2 was to be installed, and if my memory serves me correctly it said "if you are unsure, select all", so I selected all and proceeded, as boot loaders is not something I have ever spent any time on.
At the restart i was faced with grub rescue, it was from here I struggled. However, always impressed by how many errors can be fixed by Google I proceeded and made my Live CD, both Vista recovery and ubuntu Live.
It has been a week since this began and I have come a long way since and changed many settings as per every post and thread I came across, I will do my best to try and note the changes I made.
Live CD boot and changed grub2 install to /dev/sda, somehow.
Ran update-grub
Windows Recovery Environment appeared on grub2 menu.
Managed to install grub legacy? Certainly a different version than grub2
When I tried to boot to boot to vista on grub2 menu it hung for 3 seconds then restarted my computer back around to grub2 after bios.
I then found the fix if you used WUBI which I believed at the time I had, so I copied the files wublder and so on. Didn't work.
Then I found a post about using testdisk. The instructions were well written and I got to the point were you "backupBS" only to found no such option and everything reading "OK", suggesting nothing was wrong and this route would fail. I tried the other options of rebuilding and so on, dead ends also.
Then found a post from Oldfred (who I hope will spend the time with my post and help me ultimately put this being me so I can figure out what actually went wrong...") suggesting the use of the Vista recovery CD, I ran it no problem after a few failed attempts of writing it to CD, found my Vista OS and I went off to recovery it using the fixboot, scanos, rebuildbcd, which did something. Note I didnt run .fixmbr as I had spent alot of time(2 days) fixing grub to boot me to an OS... This didnt work either, either did chkdsk, i realise now I didnt run chkdsk /r properly, i guess it wasn't pointed to the correct drive or something I don't know.
So in my wisdom I booted from live CD and used Gparted to format my Linux partition and resize Vista to take up the existing room, with the idea of reinstalling lucid from CD and creating a fresh partition and hopefully rewriting grub correctly(Ambitious but I was tired and stuck). After reading some more on Gparted I realise it's not the best tool to use for Vista..... Too late now though.
This changed the outcome of trying to boot to Windows Recovery Environment to achieving a flashing underscore, something which seemed common, great, I'm almost there.
Ran testdisk again, no luck.
Decided to relaunch Recovery CD to just /fixmbr and be done with it and try to reinstall Ubuntu again. It was slow to load and also didn't locate my Vista OS, I tried the LOAD DRIVERS option, but it was late and I decided to give up and sleep.
Now, were I am at now.
Recovery CD boot caused Blue screen - irq_not_less_or_equal.
I realise I need to run chkdsk /r but I cannot reach a prompt to do so when booted to Windows CD, as it crashes.
I can continue and go down the repair MBR routes with boot cds and so on but I am going to ask for help before my computer goes on fire.
Time for the important details then.
Boot Info Script 0.55 dated February 15th, 2010
============================= Boot Info Summary: ==============================
=> Grub 2 is installed in the MBR of /dev/sda and looks on the same drive in
partition #5 for /boot/grub.
sda1: __________________________________________________ _______________________
File system: vfat
Boot sector type: Grub 2
Boot sector info: Grub 2 is installed in the boot sector of sda1 and
looks at sector 10935296 of the same hard drive for
core.img, but core.img can not be found at this
location. No errors found in the Boot Parameter Block.
Operating System:
Boot files/dirs: /COMMAND.COM
sda2: __________________________________________________ _______________________
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:
sda3: __________________________________________________ _______________________
File system: ntfs
Boot sector type: Windows Vista/7
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows Vista
Boot files/dirs: /bootmgr /Boot/BCD /Windows/System32/winload.exe
/wubildr.mbr /wubildr
sda4: __________________________________________________ _______________________
File system: Extended Partition
Boot sector type: -
Boot sector info:
sda5: __________________________________________________ _______________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 10.04 LTS
Boot files/dirs: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img
sda6: __________________________________________________ _______________________
File system: swap
Boot sector type: -
Boot sector info:
=========================== Drive/Partition Info: =============================
Drive: sda ___________________ __________________________________________________ ___
Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 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 112,454 112,392 de Dell Utility
/dev/sda2 112,640 21,084,159 20,971,520 7 HPFS/NTFS
/dev/sda3 * 21,084,160 566,162,147 545,077,988 7 HPFS/NTFS
/dev/sda4 566,163,454 625,141,759 58,978,306 5 Extended
/dev/sda5 566,163,456 622,616,575 56,453,120 83 Linux
/dev/sda6 622,618,624 625,141,759 2,523,136 82 Linux swap / Solaris
blkid -c /dev/null: __________________________________________________ __________
Device UUID TYPE LABEL
/dev/sda1 07D7-0606 vfat DellUtility
/dev/sda2 2ED2EF36D2EF0147 ntfs RECOVERY
/dev/sda3 CE60F48660F47695 ntfs Windows Vista
/dev/sda4: PTTYPE="dos"
/dev/sda5 36917c93-81d1-45fc-a492-71d7357cde3a ext4
/dev/sda6 ea654c7d-54e3-405d-9c61-596d1f6b5a3f swap
/dev/sda: PTTYPE="dos"
error: /dev/sdb: No medium found
error: /dev/sdc: No medium found
error: /dev/sdd: No medium found
error: /dev/sde: No medium found
============================ "mount | grep ^/dev output: ===========================
Device Mount_Point Type Options
/dev/sda5 / ext4 (rw,errors=remount-ro)
=========================== sda5/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 ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 36917c93-81d1-45fc-a492-71d7357cde3a
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 ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 36917c93-81d1-45fc-a492-71d7357cde3a
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.32-22-generic-pae' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 36917c93-81d1-45fc-a492-71d7357cde3a
linux /boot/vmlinuz-2.6.32-22-generic-pae root=UUID=36917c93-81d1-45fc-a492-71d7357cde3a ro quiet splash
initrd /boot/initrd.img-2.6.32-22-generic-pae
}
menuentry 'Ubuntu, with Linux 2.6.32-22-generic-pae (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 36917c93-81d1-45fc-a492-71d7357cde3a
echo 'Loading Linux 2.6.32-22-generic-pae ...'
linux /boot/vmlinuz-2.6.32-22-generic-pae root=UUID=36917c93-81d1-45fc-a492-71d7357cde3a ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.32-22-generic-pae
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 36917c93-81d1-45fc-a492-71d7357cde3a
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 36917c93-81d1-45fc-a492-71d7357cde3a
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Dell Utility Partition (on /dev/sda1)" {
insmod fat
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 07d7-0606
drivemap -s (hd0) ${root}
chainloader +1
}
menuentry "Windows Recovery Environment (loader) (on /dev/sda3)" {
insmod ntfs
set root='(hd0,3)'
search --no-floppy --fs-uuid --set ce60f48660f47695
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 ###
=============================== sda5/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
# / was on /dev/sda5 during installation
UUID=36917c93-81d1-45fc-a492-71d7357cde3a / ext4 errors=remount-ro 0 1
# swap was on /dev/sda6 during installation
UUID=ea654c7d-54e3-405d-9c61-596d1f6b5a3f none swap sw 0 0
=================== sda5: Location of files loaded by Grub: ===================
305.0GB: boot/grub/core.img
292.1GB: boot/grub/grub.cfg
305.3GB: boot/initrd.img-2.6.32-22-generic-pae
305.1GB: boot/vmlinuz-2.6.32-22-generic-pae
305.3GB: initrd.img
305.1GB: vmlinuz
=======Devices which don't seem to have a corresponding hard drive==============
sdb sdc sdd sde Thank you for taking the time to read and I hope you can get my out of this and back into my dual boot.