PDA

View Full Version : [ubuntu] Is this a possible way to fix non booting Windows7 partition after I installed 10.04?



adampyre
April 17th, 2010, 09:47 AM
Hey,

I installed 10.04 and Grub won't boot into Windows7. I attempted to fix the problem through several different methods and nothing worked and I fear I made the booting problem worse than it was to begin with. I can boot into Ubuntu just fine, just not Windows7. Black screen with a cursor upper left hand. Windows7 repair disk does not help and using Windows7 command line repairs did nothing.

So here is an idea I came up with: Is there any way I can back up the Windows partition exactly the way it is, reinstall Windows7, and then somehow lay down all that information directly over the install to make it exactly like it was?

I doubt it is that simple, but is that possible? Like basically unhiding all the hidden files, copying them into a folder on my Ubuntu installation, reinstalling Windows7 and just copying them all back?

Thanks!

wilee-nilee
April 17th, 2010, 10:16 AM
If you want help to maybe rescue the original W7 install post this boot script. I don't think your going to get any help with your theoretical approach, there are easier ways to do this.
http://bootinfoscript.sourceforge.net/
You might get help with what your proposing here or at least a confirmation of it's possibilities.
http://www.sevenforums.com/

adampyre
April 17th, 2010, 02:26 PM
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 #4 for /boot/grub.

sda1: __________________________________________________ _______________________

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: /grub/grub.cfg /bootmgr /Boot/BCD
/Windows/System32/winload.exe /grub/core.img

sda3: __________________________________________________ _______________________

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

sda4: __________________________________________________ _______________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu lucid (development
branch)
Boot files/dirs: /boot/grub/menu.lst /boot/grub/grub.cfg /etc/fstab
/boot/grub/core.img

=========================== 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 48,933,989 48,933,927 7 HPFS/NTFS
/dev/sda3 441,626,850 625,137,344 183,510,495 7 HPFS/NTFS
/dev/sda4 * 48,933,990 441,626,849 392,692,860 83 Linux


blkid -c /dev/null: __________________________________________________ __________

Device UUID TYPE LABEL

/dev/mmcblk0p1 d3e361a4-6e35-40a6-b7da-c853a0a054af swap
/dev/sda1 AE069FD5069F9CC1 ntfs Win7Music
/dev/sda3 6E9347A073AB6AFB ntfs Music Partition
/dev/sda4 dfda1eef-7b2a-4b8b-a157-fe5b92010609 ext4
/dev/sda: PTTYPE="dos"

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

Device Mount_Point Type Options

/dev/sda4 / ext4 (rw,errors=remount-ro)
/dev/sr0 /media/UDF Volume udf (ro,nosuid,nodev,uhelper=udisks,uid=1000,gid=1000, iocharset=utf8,umask=0077)


============================= sda1/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='(/dev/sda,4)'
search --no-floppy --fs-uuid --set e87aa5ac-f5ba-4071-81a0-47b523441fbb
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='(/dev/sda,1)'
search --no-floppy --fs-uuid --set ae069fd5069f9cc1
set locale_dir=($root)/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/20_memtest86+ ###
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
if [ ${timeout} != -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 ###

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


??GB: grub/core.img
??GB: grub/grub.cfg

=========================== sda4/boot/grub/menu.lst: ===========================

# menu.lst - See: grub(8), info grub, update-grub(8)
# grub-install(8), grub-floppy(8),
# grub-md5-crypt, /usr/share/doc/grub
# and /usr/share/doc/grub-legacy-doc/.

## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not use 'savedefault' or your
# array will desync and will not let you boot your system.
default 0

## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 3

## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
hiddenmenu

# Pretty colours
#color cyan/blue white/blue

## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line) and entries protected by the
# command 'lock'
# e.g. password topsecret
# password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret

#
# examples
#
# title Windows 95/98/NT/2000
# root (hd0,0)
# makeactive
# chainloader +1
#
# title Linux
# root (hd0,1)
# kernel /vmlinuz root=/dev/hda2 ro
#

#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below

## DO NOT UNCOMMENT THEM, Just edit them to your needs

## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
## kopt_2_6_8=root=/dev/hdc1 ro
## kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=dfda1eef-7b2a-4b8b-a157-fe5b92010609 ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=dfda1eef-7b2a-4b8b-a157-fe5b92010609

## should update-grub create alternative automagic boot options
## e.g. alternative=true
## alternative=false
# alternative=true

## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
## lockalternative=false
# lockalternative=false

## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash

## should update-grub lock old automagic boot options
## e.g. lockold=false
## lockold=true
# lockold=false

## Xen hypervisor options to use with the default Xen boot option
# xenhopt=

## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(recovery) single
# altoptions=(recovery mode) single

## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
## howmany=7
# howmany=all

## specify if running in Xen domU or have grub detect automatically
## update-grub will ignore non-xen kernels when running in domU and vice versa
## e.g. indomU=detect
## indomU=true
## indomU=false
# indomU=detect

## should update-grub create memtest86 boot option
## e.g. memtest86=true
## memtest86=false
# memtest86=true

## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false

## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false

## ## End Default Options ##

title Ubuntu lucid (development branch), kernel 2.6.32-19-generic
uuid dfda1eef-7b2a-4b8b-a157-fe5b92010609
kernel /boot/vmlinuz-2.6.32-19-generic root=UUID=dfda1eef-7b2a-4b8b-a157-fe5b92010609 ro quiet splash
initrd /boot/initrd.img-2.6.32-19-generic

title Windows 7 USER
root (hd0,1)
savedefault
makeactive
chainloader +1

title Windows 7 MUSIC
root (hd0,0)
savedefault
makeactive
chainloader +1

title Ubuntu lucid (development branch), kernel 2.6.32-19-generic (recovery mode)
uuid dfda1eef-7b2a-4b8b-a157-fe5b92010609
kernel /boot/vmlinuz-2.6.32-19-generic root=UUID=dfda1eef-7b2a-4b8b-a157-fe5b92010609 ro single
initrd /boot/initrd.img-2.6.32-19-generic

title Ubuntu lucid (development branch), memtest86+
uuid dfda1eef-7b2a-4b8b-a157-fe5b92010609
kernel /boot/memtest86+.bin

### END DEBIAN AUTOMAGIC KERNELS LIST

=========================== sda4/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='(/dev/sda,4)'
search --no-floppy --fs-uuid --set dfda1eef-7b2a-4b8b-a157-fe5b92010609
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='(/dev/sda,4)'
search --no-floppy --fs-uuid --set dfda1eef-7b2a-4b8b-a157-fe5b92010609
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-19-generic" --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(/dev/sda,4)'
search --no-floppy --fs-uuid --set dfda1eef-7b2a-4b8b-a157-fe5b92010609
linux /boot/vmlinuz-2.6.32-19-generic root=UUID=dfda1eef-7b2a-4b8b-a157-fe5b92010609 ro quiet splash
initrd /boot/initrd.img-2.6.32-19-generic
}
menuentry "Ubuntu, with Linux 2.6.32-19-generic (recovery mode)" --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(/dev/sda,4)'
search --no-floppy --fs-uuid --set dfda1eef-7b2a-4b8b-a157-fe5b92010609
echo Loading Linux 2.6.32-19-generic ...
linux /boot/vmlinuz-2.6.32-19-generic root=UUID=dfda1eef-7b2a-4b8b-a157-fe5b92010609 ro single
echo Loading initial ramdisk ...
initrd /boot/initrd.img-2.6.32-19-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod ext2
set root='(/dev/sda,4)'
search --no-floppy --fs-uuid --set dfda1eef-7b2a-4b8b-a157-fe5b92010609
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod ext2
set root='(/dev/sda,4)'
search --no-floppy --fs-uuid --set dfda1eef-7b2a-4b8b-a157-fe5b92010609
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='(/dev/sda,1)'
search --no-floppy --fs-uuid --set ae069fd5069f9cc1
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 ###

=============================== sda4/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/sda4 during installation
UUID=dfda1eef-7b2a-4b8b-a157-fe5b92010609 / ext4 errors=remount-ro 0 1
/dev/mmcblk0p1 none swap sw 0 0

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


49.2GB: boot/grub/core.img
51.4GB: boot/grub/grub.cfg
49.2GB: boot/grub/menu.lst
49.2GB: boot/grub/stage2
63.7GB: boot/initrd.img-2.6.32-19-generic
49.6GB: boot/vmlinuz-2.6.32-19-generic
63.7GB: initrd.img
49.6GB: vmlinuz

oldfred
April 17th, 2010, 05:29 PM
In your windows partition you have grub files??

/grub/grub.cfg /bootmgr /Boot/BCD
/Windows/System32/winload.exe /grub/core.

If there also is a /boot/grub it confuses windows as Boot and boot are the same where in linux they are different. Delete any grub files from your windows boot partition.

You also have the boot flag on sda4 and it should be on sda1. The windows repair may not work as it has to see the boot flag (active partition) to know what partition to repair. You can use gparted, right click on partitition and manage flags, disk utility, or command line. Make sure you only have one boot flag per drive.

set boot flag on for sda1 (off on others)
sudo sfdisk -A1 /dev/sda

Usksider
April 18th, 2010, 05:23 AM
I can only wish you luck with this - having struggled for a week, tried every method known to man to get back into Windows 7 and failed... I lost faith and reinstalled Windows onto the original partition; I now have a dual-boot system again. However when I boot Lucid Lynx I get a message saying:

Disk drive for /windows is not ready or not present. Press S to skip mounting...

I've tried allowing Ubuntu to mount the drive, but it fails. No idea why :confused:

At least I have Windows 7 back :)

ianshortreed
May 3rd, 2010, 04:12 AM
Ran Testdisk, but no love, both options tried Rebuild BS & Restore ... followed by sudo grub, but still does not boot Windows XP (sda2) partition.Here are the RESULTS below of the boot_info_script055.sh
below. Any ideas much appreciated to avoid a Windows partition rebuild.

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 #8 for /boot/grub.

sda1: __________________________________________________ _______________________

File system: ext3
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 7.10
Boot files/dirs: /etc/fstab

sda2: __________________________________________________ _______________________

File system: ntfs
Boot sector type: Windows XP
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows XP
Boot files/dirs: /boot.ini /ntldr /NTDETECT.COM

sda3: __________________________________________________ _______________________

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

sda6: __________________________________________________ _______________________

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

sda7: __________________________________________________ _______________________

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

sda8: __________________________________________________ _______________________

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

sda9: __________________________________________________ _______________________

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
Sector size (logical/physical): 512 bytes / 512 bytes

Partition Boot Start End Size Id System

/dev/sda1 * 63 160,649 160,587 83 Linux
/dev/sda2 160,650 87,088,364 86,927,715 7 HPFS/NTFS
/dev/sda3 87,089,150 156,301,311 69,212,162 5 Extended
/dev/sda5 87,089,152 120,292,276 33,203,125 83 Linux
/dev/sda6 153,366,528 156,301,311 2,934,784 82 Linux swap / Solaris
/dev/sda7 151,879,680 153,356,287 1,476,608 82 Linux swap / Solaris
/dev/sda8 120,293,376 150,460,415 30,167,040 83 Linux
/dev/sda9 150,462,464 151,877,631 1,415,168 82 Linux swap / Solaris


blkid -c /dev/null: __________________________________________________ __________

Device UUID TYPE LABEL

/dev/sda1 aa75e55d-0846-4752-a492-b200b8cf4b09 ext3
/dev/sda2 62502EE2502EBD23 ntfs
/dev/sda3: PTTYPE="dos"
/dev/sda5 61dd6b88-b236-4476-a1a2-d8daee7b37ff ext4
/dev/sda6 0902776a-ce41-46eb-a362-64218142987b swap
/dev/sda7 143363e7-c6d3-4c37-b620-d8f891ff4429 swap
/dev/sda8 e6cc3089-541e-4518-b256-27e1fd51cbaa ext4
/dev/sda9 e1809496-6955-40fd-9890-8af4a54efbd6 swap
/dev/sda: PTTYPE="dos"

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

Device Mount_Point Type Options

/dev/sda8 / ext4 (rw,errors=remount-ro)


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

# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/sda2
UUID=aa75e55d-0846-4752-a492-b200b8cf4b09 / ext3 defaults,errors=remount-ro 0 1
# /dev/sda1
UUID=62502EE2502EBD23 /media/sda1 ntfs defaults,umask=007,gid=46 0 1
/dev/hda /media/cdrom0 udf,iso9660 user,noauto,exec 0 0

================================ sda2/boot.ini: ================================

[boot loader]

timeout=30

default=multi(0)disk(0)rdisk(0)partition(1)\WINDOW S

[operating systems]

multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP"/fastdetect


=========================== 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
}
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-21-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 61dd6b88-b236-4476-a1a2-d8daee7b37ff
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=61dd6b88-b236-4476-a1a2-d8daee7b37ff ro quiet splash
initrd /boot/initrd.img-2.6.32-21-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-21-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 61dd6b88-b236-4476-a1a2-d8daee7b37ff
echo 'Loading Linux 2.6.32-21-generic ...'
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=61dd6b88-b236-4476-a1a2-d8daee7b37ff ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.32-21-generic
}
### 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 61dd6b88-b236-4476-a1a2-d8daee7b37ff
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 61dd6b88-b236-4476-a1a2-d8daee7b37ff
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Microsoft Windows XP (on /dev/sda2)" {
insmod ntfs
set root='(hd0,2)'
search --no-floppy --fs-uuid --set 62502ee2502ebd23
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=61dd6b88-b236-4476-a1a2-d8daee7b37ff / ext4 errors=remount-ro 0 1
# swap was on /dev/sda6 during installation
UUID=0902776a-ce41-46eb-a362-64218142987b none swap sw 0 0

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


57.7GB: boot/grub/grub.cfg
45.2GB: boot/initrd.img-2.6.32-21-generic
53.4GB: boot/vmlinuz-2.6.32-21-generic
45.2GB: initrd.img
53.4GB: vmlinuz

=========================== sda8/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,8)'
search --no-floppy --fs-uuid --set e6cc3089-541e-4518-b256-27e1fd51cbaa
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,8)'
search --no-floppy --fs-uuid --set e6cc3089-541e-4518-b256-27e1fd51cbaa
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-21-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,8)'
search --no-floppy --fs-uuid --set e6cc3089-541e-4518-b256-27e1fd51cbaa
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=e6cc3089-541e-4518-b256-27e1fd51cbaa ro quiet splash
initrd /boot/initrd.img-2.6.32-21-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-21-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,8)'
search --no-floppy --fs-uuid --set e6cc3089-541e-4518-b256-27e1fd51cbaa
echo 'Loading Linux 2.6.32-21-generic ...'
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=e6cc3089-541e-4518-b256-27e1fd51cbaa ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.32-21-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod ext2
set root='(hd0,8)'
search --no-floppy --fs-uuid --set e6cc3089-541e-4518-b256-27e1fd51cbaa
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod ext2
set root='(hd0,8)'
search --no-floppy --fs-uuid --set e6cc3089-541e-4518-b256-27e1fd51cbaa
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Microsoft Windows XP (on /dev/sda2)" {
insmod ntfs
set root='(hd0,2)'
chainloader +1
}
### END /etc/grub.d/30_os-prober ###

menuentry "Ubuntu, with Linux 2.6.32-21-generic (on /dev/sda5)" {
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 61dd6b88-b236-4476-a1a2-d8daee7b37ff
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=61dd6b88-b236-4476-a1a2-d8daee7b37ff ro quiet splash
initrd /boot/initrd.img-2.6.32-21-generic
}
menuentry "Ubuntu, with Linux 2.6.32-21-generic (recovery mode) (on /dev/sda5)" {
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 61dd6b88-b236-4476-a1a2-d8daee7b37ff
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=61dd6b88-b236-4476-a1a2-d8daee7b37ff ro single
initrd /boot/initrd.img-2.6.32-21-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 ###

=============================== sda8/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/sda8 during installation
UUID=e6cc3089-541e-4518-b256-27e1fd51cbaa / ext4 errors=remount-ro 0 1
# swap was on /dev/sda9 during installation
UUID=e1809496-6955-40fd-9890-8af4a54efbd6 none swap sw 0 0

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


74.6GB: boot/grub/core.img
72.4GB: boot/grub/grub.cfg
74.7GB: boot/initrd.img-2.6.32-21-generic
74.7GB: boot/vmlinuz-2.6.32-21-generic
74.7GB: initrd.img
74.7GB: vmlinuz

wilee-nilee
May 3rd, 2010, 04:26 AM
@ianshortreed, you need to start your own thread for help and use the code tags if you can to repost the script. Just give the thread a meaningful accurate header such as reloading bootloader into MBR, I think you probably get what I mean.

AzT3K
May 3rd, 2010, 05:02 AM
Read this:

http://ubuntuforums.org/showthread.php?t=1469763

wilee-nilee
May 3rd, 2010, 05:26 AM
Read this:

http://ubuntuforums.org/showthread.php?t=1469763

I can appreciate your need to help others, but this does not help, in that without a close look at the script by somebody that can interpret it, there is a danger of the person posting hosing there setup, by just following a random posting.

AzT3K
May 3rd, 2010, 05:51 AM
Updating ubuntu hosed my system...

This is how i fixed it...

Isn't that what community and open source is about... ?

Um... Sorry guess I better leave it to the professionals


Quote:
Originally Posted by AzT3K View Post
Read this:

http://ubuntuforums.org/showthread.php?t=1469763
I can appreciate your need to help others, but this does not help, in that without a close look at the script by somebody that can interpret it, there is a danger of the person posting hosing there setup, by just following a random posting.

wilee-nilee
May 3rd, 2010, 06:12 AM
Updating ubuntu hosed my system...

This is how i fixed it...

Isn't that what community and open source is about... ?

Um... Sorry guess I better leave it to the professionals

That is how I roll, my 1st concern is not causing any more damage. There are many on the forum that are very astute at this sort of thing.

Part of the problem here is that some who have had a problem, have tried methodologies, that didn't fix the problem, and may have made things worse even before posting for help. So in order to have a true community effort; is to at the least, if you going to post a link say this worked for me, and not posting it to feed a intrinsic ego need. And also recognize that there are people who can get the job done, directly.

Now I ask was the hosed system due to user error?

kansasnoob
May 3rd, 2010, 06:27 AM
@ adampyre (the OP),

You have somewhat of a mess but I think this will work to get Win 7 booting:

http://ubuntuforums.org/showpost.php?p=8929988&postcount=357

You may need to recover grub2 afterward but you also have mixed legacy grub and grub2 files so look what I did here:

http://ubuntuforums.org/showpost.php?p=9222307&postcount=12

Take note that their Lucid was on sda8 and yours is on sda4!

kansasnoob
May 3rd, 2010, 06:31 AM
@ ianshortreed, You must start your own thread!

Every boot scenario is different!

Dropping a butt load of info into someone else's thread is bad for them and equally bad for you!