PDA

View Full Version : [SOLVED] Vista not booting after Maverick installation



Tickborn
October 16th, 2010, 08:34 PM
HI everybody,
Here is my problem:
I updated from 10.04 to 10.10. Ubuntu works fine, but Vista does not boot anymore. If i select it from the GRUB menu the Pc just go silent and does nothing till I press Ctrl+Alt+Canc.

Here is my fdisk -l


Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xfebefebe

Device Boot Start End Blocks Id System
/dev/sda1 1 60811 488457568 83 Linux
/dev/sda2 60811 62634 14648437+ 83 Linux
/dev/sda3 62635 121601 473652365+ 5 Extended
/dev/sda5 120629 121601 7815622+ 82 Linux swap / Solaris
/dev/sda6 62635 120627 465828709+ 83 Linux

Partition table entries are not in disk order

Disk /dev/sdb: 163.9 GB, 163928604672 bytes
255 heads, 63 sectors/track, 19929 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xbb03152a

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 19929 160079661 7 HPFS/NTFS


... my 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/sdb2 during installation
UUID=2412b722-9959-4243-9ab2-e3d1d3ef14c3 / ext4 errors=remount-ro 0 1
# /home was on /dev/sdb6 during installation
UUID=da5f5671-e8b2-4fcc-ae8b-5bcd1aaf25a4 /home ext4 defaults 0 2
# /windows was on /dev/sda1 during installation
UUID=0E0030AB00309BA1 /windows ntfs defaults,umask=007,gid=46 0 0
# swap was on /dev/sdb5 during installation
UUID=2590fd30-f641-4eca-95da-c9fff2c5a2dd none swap sw 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
/dev/sdb1 /media/ntfs ntfs defaults 0 2

And here is my 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='(hd1,msdos2)'
search --no-floppy --fs-uuid --set 2412b722-9959-4243-9ab2-e3d1d3ef14c3
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=1024x768
load_video
insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='(hd1,msdos2)'
search --no-floppy --fs-uuid --set 2412b722-9959-4243-9ab2-e3d1d3ef14c3
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.35-22-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd1,msdos2)'
search --no-floppy --fs-uuid --set 2412b722-9959-4243-9ab2-e3d1d3ef14c3
linux /boot/vmlinuz-2.6.35-22-generic root=UUID=2412b722-9959-4243-9ab2-e3d1d3ef14c3 ro vga=792 splash quiet 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='(hd1,msdos2)'
search --no-floppy --fs-uuid --set 2412b722-9959-4243-9ab2-e3d1d3ef14c3
echo 'Loading Linux 2.6.35-22-generic ...'
linux /boot/vmlinuz-2.6.35-22-generic root=UUID=2412b722-9959-4243-9ab2-e3d1d3ef14c3 ro single vga=792 splash quiet
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='(hd1,msdos2)'
search --no-floppy --fs-uuid --set 2412b722-9959-4243-9ab2-e3d1d3ef14c3
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(hd1,msdos2)'
search --no-floppy --fs-uuid --set 2412b722-9959-4243-9ab2-e3d1d3ef14c3
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows Vista (loader) (on /dev/sda1)" {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 0e0030ab00309ba1
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 ###

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

Thanx in advance for any help!

oldfred
October 16th, 2010, 11:47 PM
Did you change drive order? Ubuntu shows booting from hd1 (but search will find UUID & boot) and the grub entry for windows says it is drive 0?

Are both SATA drives. I think some IDE and SATA do not always come up in the same order.

Run this but I am not sure it will tell anything more:
Boot Info Script courtesy of forum member meierfra
Page with instructions and download:
http://bootinfoscript.sourceforge.net/
Paste results.txt, then highlight entire file and click on # in edit panel(code tags) to make it easier to read.
Or You can generate the tags first by pressing the # icon in the post's menu and then paste the contents between the generated [ code][ /code] tags.

Tickborn
October 17th, 2010, 12:55 AM
Thanx for your help old fred. I don't remember to have done any change to the drive order. And yes, one disk is a IDE while the other is a SATA.
Now, checking in Gpart, it in fact shows that the Vista should be in sdb 1... so strange, I was sure I did check this before and... anyway here is the result of the Boot Info Script


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 #2 for (,msdos2)/boot/grub.
=> Windows is installed in the MBR of /dev/sdb

sda1: __________________________________________________ _______________________

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: /Boot/BCD /grub/core.img

sda2: __________________________________________________ _______________________

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

sda3: __________________________________________________ _______________________

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

sda5: __________________________________________________ _______________________

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

sda6: __________________________________________________ _______________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files/dirs:

sdb1: __________________________________________________ _______________________

File system: ntfs
Boot sector type: Grub 2
Boot sector info: Grub 2 is installed in the boot sector of sdb1 and
looks at sector 982815592 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: Windows Vista
Boot files/dirs: /bootmgr /Boot/BCD /Windows/System32/winload.exe /grldr

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

Drive: sda ___________________ __________________________________________________ ___

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 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 976,915,198 976,915,136 83 Linux
/dev/sda2 976,916,480 1,006,213,354 29,296,875 83 Linux
/dev/sda3 1,006,215,334 1,953,520,064 947,304,731 5 Extended
/dev/sda5 1,937,888,820 1,953,520,064 15,631,245 82 Linux swap / Solaris
/dev/sda6 1,006,215,336 1,937,872,754 931,657,419 83 Linux


Drive: sdb ___________________ __________________________________________________ ___

Disk /dev/sdb: 163.9 GB, 163928604672 bytes
255 heads, 63 sectors/track, 19929 cylinders, total 320173056 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 320,159,384 320,159,322 7 HPFS/NTFS


blkid -c /dev/null: __________________________________________________ __________

Device UUID TYPE LABEL

/dev/sda1 68DE1A10DE19D762 ntfs Vista Partition
/dev/sda2 2412b722-9959-4243-9ab2-e3d1d3ef14c3 ext4
/dev/sda3: PTTYPE="dos"
/dev/sda5 2590fd30-f641-4eca-95da-c9fff2c5a2dd swap
/dev/sda6 da5f5671-e8b2-4fcc-ae8b-5bcd1aaf25a4 ext4 Ubuntu Storage
/dev/sda: PTTYPE="dos"
/dev/sdb1 0E0030AB00309BA1 ntfs Vista System Partition
/dev/sdb: PTTYPE="dos"
error: /dev/sdc: No medium found
error: /dev/sdd: No medium found
error: /dev/sde: No medium found
error: /dev/sdf: No medium found

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

Device Mount_Point Type Options

/dev/sda2 / ext4 (rw,errors=remount-ro,commit=0)
/dev/sda6 /home ext4 (rw,commit=0)
/dev/sdb1 /windows fuseblk (rw,nosuid,nodev,allow_other,blksize=4096,default_ permissions)
/dev/sda1 /media/Vista Partition fuseblk (rw,nosuid,nodev,allow_other,blksize=4096,default_ permissions)


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


??GB: grub/core.img

=========================== sda2/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='(hd1,msdos2)'
search --no-floppy --fs-uuid --set 2412b722-9959-4243-9ab2-e3d1d3ef14c3
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=1024x768
load_video
insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='(hd1,msdos2)'
search --no-floppy --fs-uuid --set 2412b722-9959-4243-9ab2-e3d1d3ef14c3
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.35-22-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd1,msdos2)'
search --no-floppy --fs-uuid --set 2412b722-9959-4243-9ab2-e3d1d3ef14c3
linux /boot/vmlinuz-2.6.35-22-generic root=UUID=2412b722-9959-4243-9ab2-e3d1d3ef14c3 ro vga=792 splash quiet 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='(hd1,msdos2)'
search --no-floppy --fs-uuid --set 2412b722-9959-4243-9ab2-e3d1d3ef14c3
echo 'Loading Linux 2.6.35-22-generic ...'
linux /boot/vmlinuz-2.6.35-22-generic root=UUID=2412b722-9959-4243-9ab2-e3d1d3ef14c3 ro single vga=792 splash quiet
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='(hd1,msdos2)'
search --no-floppy --fs-uuid --set 2412b722-9959-4243-9ab2-e3d1d3ef14c3
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(hd1,msdos2)'
search --no-floppy --fs-uuid --set 2412b722-9959-4243-9ab2-e3d1d3ef14c3
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows Vista (loader) (on /dev/sda1)" {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 0e0030ab00309ba1
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 ###

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

=============================== sda2/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/sdb2 during installation
UUID=2412b722-9959-4243-9ab2-e3d1d3ef14c3 / ext4 errors=remount-ro 0 1
# /home was on /dev/sdb6 during installation
UUID=da5f5671-e8b2-4fcc-ae8b-5bcd1aaf25a4 /home ext4 defaults 0 2
# /windows was on /dev/sda1 during installation
UUID=0E0030AB00309BA1 /windows ntfs defaults,umask=007,gid=46 0 0
# swap was on /dev/sdb5 during installation
UUID=2590fd30-f641-4eca-95da-c9fff2c5a2dd none swap sw 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
/dev/sdb1 /media/ntfs ntfs defaults 0 2

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


502.7GB: boot/grub/core.img
509.1GB: boot/grub/grub.cfg
501.7GB: boot/initrd.img-2.6.35-22-generic
502.8GB: boot/vmlinuz-2.6.35-22-generic
501.7GB: initrd.img
502.8GB: vmlinuz
=======Devices which don't seem to have a corresponding hard drive==============

sdc sdd sde sdf Thanx again!

oldfred
October 17th, 2010, 01:02 AM
You have grub installed to the boot sector of sdb1 which is supposed to have windows code. You also have a grub4dos folder in your windows.

sdb1: ___
File system: ntfs
Boot sector type: Grub 2
Boot sector info: Grub 2 is installed in the boot sector of sdb1 and
looks at sector 982815592 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: Windows Vista
Boot files/dirs: /bootmgr /Boot/BCD /Windows/System32/winload.exe /grldr

Fix for most, a few have other issues, better than windows fix in many cases as it also fixes other parameters:
This has instructions on using testdisk to repair the install of grub to the boot sector for windows from Ubuntu or Linux LiveCD.
http://sourceforge.net/apps/mediawiki/bootinfoscript/index.php?title=Boot_Problems:Boot_Sector

I would also delete the /grldr folder unless you know you are using grub4dos for something.

Tickborn
October 17th, 2010, 01:08 AM
Well, i rechecked the Grub file, and realized that Ubuntu boot was in sdb.. so, how could it work? therefore i just reboot.. recheck on Gparted, and Surprise! Now Vista is back on sda and Ubuntu on sdb. I ran again Boot Info:


Boot Info Script 0.55 dated February 15th, 2010

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

=> Windows 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: ntfs
Boot sector type: Grub 2
Boot sector info: Grub 2 is installed in the boot sector of sda1 and
looks at sector 982815592 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: Windows Vista
Boot files/dirs: /bootmgr /Boot/BCD /Windows/System32/winload.exe /grldr

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: /Boot/BCD /grub/core.img

sdb2: __________________________________________________ _______________________

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

sdb3: __________________________________________________ _______________________

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

sdb5: __________________________________________________ _______________________

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

sdb6: __________________________________________________ _______________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files/dirs:

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

Drive: sda ___________________ __________________________________________________ ___

Disk /dev/sda: 163.9 GB, 163928604672 bytes
255 heads, 63 sectors/track, 19929 cylinders, total 320173056 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 320,159,384 320,159,322 7 HPFS/NTFS


Drive: sdb ___________________ __________________________________________________ ___

Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 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 976,915,198 976,915,136 83 Linux
/dev/sdb2 976,916,480 1,006,213,354 29,296,875 83 Linux
/dev/sdb3 1,006,215,334 1,953,520,064 947,304,731 5 Extended
/dev/sdb5 1,937,888,820 1,953,520,064 15,631,245 82 Linux swap / Solaris
/dev/sdb6 1,006,215,336 1,937,872,754 931,657,419 83 Linux


blkid -c /dev/null: __________________________________________________ __________

Device UUID TYPE LABEL

/dev/sda1 0E0030AB00309BA1 ntfs Vista System Partition
/dev/sda: PTTYPE="dos"
/dev/sdb1 68DE1A10DE19D762 ntfs Vista Partition
/dev/sdb2 2412b722-9959-4243-9ab2-e3d1d3ef14c3 ext4
/dev/sdb3: PTTYPE="dos"
/dev/sdb5 2590fd30-f641-4eca-95da-c9fff2c5a2dd swap
/dev/sdb6 da5f5671-e8b2-4fcc-ae8b-5bcd1aaf25a4 ext4 Ubuntu Storage
/dev/sdb: PTTYPE="dos"
error: /dev/sdc: No medium found
error: /dev/sdd: No medium found
error: /dev/sde: No medium found
error: /dev/sdf: No medium found

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

Device Mount_Point Type Options

/dev/sdb2 / ext4 (rw,errors=remount-ro,commit=0)
/dev/sdb6 /home ext4 (rw,commit=0)
/dev/sda1 /windows fuseblk (rw,nosuid,nodev,allow_other,blksize=4096,default_ permissions)
/dev/sdb1 /media/ntfs fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)


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


??GB: grub/core.img

=========================== sdb2/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='(hd1,msdos2)'
search --no-floppy --fs-uuid --set 2412b722-9959-4243-9ab2-e3d1d3ef14c3
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=1024x768
load_video
insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='(hd1,msdos2)'
search --no-floppy --fs-uuid --set 2412b722-9959-4243-9ab2-e3d1d3ef14c3
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.35-22-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd1,msdos2)'
search --no-floppy --fs-uuid --set 2412b722-9959-4243-9ab2-e3d1d3ef14c3
linux /boot/vmlinuz-2.6.35-22-generic root=UUID=2412b722-9959-4243-9ab2-e3d1d3ef14c3 ro vga=792 splash quiet 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='(hd1,msdos2)'
search --no-floppy --fs-uuid --set 2412b722-9959-4243-9ab2-e3d1d3ef14c3
echo 'Loading Linux 2.6.35-22-generic ...'
linux /boot/vmlinuz-2.6.35-22-generic root=UUID=2412b722-9959-4243-9ab2-e3d1d3ef14c3 ro single vga=792 splash quiet
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='(hd1,msdos2)'
search --no-floppy --fs-uuid --set 2412b722-9959-4243-9ab2-e3d1d3ef14c3
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(hd1,msdos2)'
search --no-floppy --fs-uuid --set 2412b722-9959-4243-9ab2-e3d1d3ef14c3
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows Vista (loader) (on /dev/sda1)" {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 0e0030ab00309ba1
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 ###

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

=============================== sdb2/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/sdb2 during installation
UUID=2412b722-9959-4243-9ab2-e3d1d3ef14c3 / ext4 errors=remount-ro 0 1
# /home was on /dev/sdb6 during installation
UUID=da5f5671-e8b2-4fcc-ae8b-5bcd1aaf25a4 /home ext4 defaults 0 2
# /windows was on /dev/sda1 during installation
UUID=0E0030AB00309BA1 /windows ntfs defaults,umask=007,gid=46 0 0
# swap was on /dev/sdb5 during installation
UUID=2590fd30-f641-4eca-95da-c9fff2c5a2dd none swap sw 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
/dev/sdb1 /media/ntfs ntfs defaults 0 2

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


502.7GB: boot/grub/core.img
509.1GB: boot/grub/grub.cfg
501.7GB: boot/initrd.img-2.6.35-22-generic
502.8GB: boot/vmlinuz-2.6.35-22-generic
501.7GB: initrd.img
502.8GB: vmlinuz
=======Devices which don't seem to have a corresponding hard drive==============

sdc sdd sde sdf

How can this be???

oldfred
October 17th, 2010, 01:26 AM
Either way you need to run the fixes. Ubuntu should boot as normally in BIOS you set which drive to boot from and Ubuntu uses UUID to find partition to boot from. Windows can be particular, since it expects a drive 0 or drive 1.

Is there some setting in BIOS, is power supply borderline and one drive spins up faster on one boot or the other. Was one a cold boot and the other a warm boot?

Tickborn
October 17th, 2010, 01:43 AM
Nope, no particular setting in BIOS. The power supply should be no problem, as it is a Desktop computer and the i remember that when i built it up the power outcome was definitly exceeding the needs. Both were warm reboot.

Anyway, now i will try the Fixes. Will come to back when done.
So far, thak you very much.
The best part of Ubuntu is still the Comunity :)

Tickborn
October 17th, 2010, 02:53 PM
Great! I did as you said: now finally everything is working fine.
Once again thank you very much!

oldfred
October 17th, 2010, 04:59 PM
Glad you got it working.

But, do you still have the issue of drive order? You may not know for sure until you have rebooted several times. Grub2 used to put in a drivemap command to make windows think it was the correct drive even when it was not, but I have noticed some without it recently.