PDA

View Full Version : [kubuntu] Just installed KUbuntu 11.04 and now Windows 7 will not boot



AppleWiz
April 30th, 2011, 05:09 PM
Hi Group,

I probably killed my Win7 install with Kubuntu 11.04, despite taking care with separate partitions. GRUB doesn't see it, and the W7 installer disk repair fails. Attached is the result from boot_info_script.

All expected Windows files show up when viewing from the Dolphin file manager. The W7 DOS chkdsk reports no file corruption.

Looks like I have to reinstall W7 and all the apps, which will be a long slog. Fortunately all the most vital files sit safely on a backup drive. This is the 4th Linux install I did since 1998, and all were a nightmare!

-Rob

eks
April 30th, 2011, 05:27 PM
Try installing startupmanager (sudo apt-get install startupmanager, or search Synaptic or KPackageKit). It updated GRUB automatically for me.

AppleWiz
April 30th, 2011, 05:46 PM
Thanks,

I already considered doing that. The download size is 110MB which will take a while. I don't understand why open source software takes up so much drive space, to do such a relatively small job?

-Rob

Quackers
April 30th, 2011, 05:56 PM
Startup Manager won't help in your current circumstances.
You appear to have a Windows 7 system on sda5, which is a logical partition. It has a Windows XP type boot sector, which is odd. There are also 2 of its boot files missing. I would assume that they used to be in sda1, which is likely to have been a small partition at the start of the drive. However sda1 is now your kubuntu root partition.
Have you deleted a small partition? Anyway it's gone, so Windows will not boot. To get Windows to boot you will need a small primary partition for its boot files (as Windows cannot boot from a logical partition). It may be easier to backup what you need and re-install Windows 7, then re-install kubuntu.

Your boot script output in code tags

Boot Info Script 0.55 dated February 15th, 2010

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

=> Grub 2 is installed in the MBR of /dev/sda and looks for b2d.

sda1: __________________________________________________ _______________________

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

sda2: __________________________________________________ _______________________

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

sda5: __________________________________________________ _______________________

File system: ntfs
Boot sector type: Windows XP
Boot sector info: According to the info in the boot sector, sda5 starts
at sector 63.
Operating System: Windows 7
Boot files/dirs: /Windows/System32/winload.exe

sda6: __________________________________________________ _______________________

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

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

Drive: sda ___________________ __________________________________________________ ___

Disk /dev/sda: 128.0 GB, 128035676160 bytes
255 heads, 63 sectors/track, 15566 cylinders, total 250069680 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 * 2,048 107,421,695 107,419,648 83 Linux
/dev/sda2 107,423,742 250,051,724 142,627,983 5 Extended
/dev/sda5 122,881,248 250,051,724 127,170,477 7 HPFS/NTFS
/dev/sda6 107,423,744 122,879,999 15,456,256 82 Linux swap / Solaris


blkid -c /dev/null: __________________________________________________ __________

Device UUID TYPE LABEL

/dev/sda1 12e3d7fb-056f-4896-92fd-5e16bf3b4689 ext4
/dev/sda2: PTTYPE="dos"
/dev/sda5 501801F01801D5BE ntfs Win7
/dev/sda6 759dffe2-34b2-4706-b685-3b2c2c8b0c7e swap
/dev/sda: PTTYPE="dos"

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

Device Mount_Point Type Options

/dev/sda1 / ext4 (rw,errors=remount-ro,commit=0)


=========================== sda1/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 video_bochs
insmod video_cirrus
}

insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos1)'
search --no-floppy --fs-uuid --set=root 12e3d7fb-056f-4896-92fd-5e16bf3b4689
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=auto
load_video
insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos1)'
search --no-floppy --fs-uuid --set=root 12e3d7fb-056f-4896-92fd-5e16bf3b4689
set locale_dir=($root)/boot/grub/locale
set lang=en_GB
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
if background_color 0,71,115; then
clear
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
if [ ${recordfail} != 1 ]; then
if [ -e ${prefix}/gfxblacklist.txt ]; then
if hwmatch ${prefix}/gfxblacklist.txt 3; then
if [ ${match} = 0 ]; then
set linux_gfx_mode=keep
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=keep
fi
else
set linux_gfx_mode=text
fi
export linux_gfx_mode
if [ "$linux_gfx_mode" != "text" ]; then load_video; fi
menuentry 'Ubuntu, with Linux 2.6.38-8-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos1)'
search --no-floppy --fs-uuid --set=root 12e3d7fb-056f-4896-92fd-5e16bf3b4689
linux /boot/vmlinuz-2.6.38-8-generic root=UUID=12e3d7fb-056f-4896-92fd-5e16bf3b4689 ro quiet splash vt.handoff=7
initrd /boot/initrd.img-2.6.38-8-generic
}
menuentry 'Ubuntu, with Linux 2.6.38-8-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos1)'
search --no-floppy --fs-uuid --set=root 12e3d7fb-056f-4896-92fd-5e16bf3b4689
echo 'Loading Linux 2.6.38-8-generic ...'
linux /boot/vmlinuz-2.6.38-8-generic root=UUID=12e3d7fb-056f-4896-92fd-5e16bf3b4689 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.38-8-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='(/dev/sda,msdos1)'
search --no-floppy --fs-uuid --set=root 12e3d7fb-056f-4896-92fd-5e16bf3b4689
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos1)'
search --no-floppy --fs-uuid --set=root 12e3d7fb-056f-4896-92fd-5e16bf3b4689
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

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

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

=============================== sda1/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/sda1 during installation
UUID=12e3d7fb-056f-4896-92fd-5e16bf3b4689 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda6 during installation
UUID=759dffe2-34b2-4706-b685-3b2c2c8b0c7e none swap sw 0 0

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


38.7GB: boot/grub/core.img
38.7GB: boot/grub/grub.cfg
.9GB: boot/initrd.img-2.6.38-8-generic
38.7GB: boot/vmlinuz-2.6.38-8-generic
.9GB: initrd.img
38.7GB: vmlinuz
=========================== Unknown MBRs/Boot Sectors/etc =======================

Unknown BootLoader on sda2

00000000 6d 70 65 72 73 6f 6e 61 74 65 43 6c 69 65 6e 74 |mpersonateClient|
00000010 00 00 5c 01 52 70 63 42 69 6e 64 69 6e 67 56 65 |..\.RpcBindingVe|
00000020 63 74 6f 72 46 72 65 65 00 00 a7 01 52 70 63 53 |ctorFree....RpcS|
00000030 65 72 76 65 72 52 65 67 69 73 74 65 72 49 66 45 |erverRegisterIfE|
00000040 78 00 a4 01 52 70 63 53 65 72 76 65 72 52 65 67 |x...RpcServerReg|
00000050 69 73 74 65 72 41 75 74 68 49 6e 66 6f 57 00 00 |isterAuthInfoW..|
00000060 66 01 52 70 63 45 70 52 65 67 69 73 74 65 72 57 |f.RpcEpRegisterW|
00000070 00 00 9c 01 52 70 63 53 65 72 76 65 72 49 6e 71 |....RpcServerInq|
00000080 42 69 6e 64 69 6e 67 73 00 00 b3 01 52 70 63 53 |Bindings....RpcS|
00000090 65 72 76 65 72 55 73 65 50 72 6f 74 73 65 71 45 |erverUseProtseqE|
000000a0 70 57 00 00 ba 01 52 70 63 53 65 72 76 65 72 55 |pW....RpcServerU|
000000b0 73 65 50 72 6f 74 73 65 71 57 00 00 68 01 52 70 |seProtseqW..h.Rp|
000000c0 63 45 70 55 6e 72 65 67 69 73 74 65 72 00 a9 01 |cEpUnregister...|
000000d0 52 70 63 53 65 72 76 65 72 55 6e 72 65 67 69 73 |RpcServerUnregis|
000000e0 74 65 72 49 66 00 04 01 4e 64 72 53 65 72 76 65 |terIf...NdrServe|
000000f0 72 43 61 6c 6c 32 00 00 e1 01 55 75 69 64 43 72 |rCall2....UuidCr|
00000100 65 61 74 65 00 00 d8 01 52 70 63 53 74 72 69 6e |eate....RpcStrin|
00000110 67 46 72 65 65 57 00 00 d6 01 52 70 63 53 74 72 |gFreeW....RpcStr|
00000120 69 6e 67 42 69 6e 64 69 6e 67 50 61 72 73 65 57 |ingBindingParseW|
00000130 00 00 5b 01 52 70 63 42 69 6e 64 69 6e 67 54 6f |..[.RpcBindingTo|
00000140 53 74 72 69 6e 67 42 69 6e 64 69 6e 67 57 00 00 |StringBindingW..|
00000150 aa 01 52 70 63 53 65 72 76 65 72 55 6e 72 65 67 |..RpcServerUnreg|
00000160 69 73 74 65 72 49 66 45 78 00 52 50 43 52 54 34 |isterIfEx.RPCRT4|
00000170 2e 64 6c 6c 00 00 22 00 4c 6f 61 64 55 73 65 72 |.dll..".LoadUser|
00000180 50 72 6f 66 69 6c 65 57 00 00 2d 00 55 6e 6c 6f |ProfileW..-.Unlo|
00000190 61 64 55 73 65 72 50 72 6f 66 69 6c 65 00 04 00 |adUserProfile...|
000001a0 44 65 73 74 72 6f 79 45 6e 76 69 72 6f 6e 6d 65 |DestroyEnvironme|
000001b0 6e 74 42 6c 6f 63 6b 00 01 00 43 72 65 61 00 fe |ntBlock...Crea..|
000001c0 ff ff 07 fe ff ff e2 dc eb 00 ad 77 94 07 00 fe |...........w....|
000001d0 ff ff 05 fe ff ff 01 00 00 00 01 d8 eb 00 00 00 |................|
000001e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
000001f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 aa |..............U.|
00000200

AppleWiz
May 1st, 2011, 09:20 AM
Hi,

Having an XP type boot sector is not odd at all. The machine is a Samsung Q320, which came with Vista. I didn't like Vista, so wiped it and used XP from when the machine was bought (June 2009).

The disk was partitioned about 50/50 with the XP installer. That was to allow an easier upgrade to Windows7, which was put on a month ago. Then I formatted the XP partition off in preparation for installing Linux. Because XP originally formatted the disk, the boot sector shows up as XP.

I have not deleted any partitions. The Kubuntu installer demands using swap space, and I made a small error during installation of not setting the swap space to take up all the spare space. The installer has made the spare space into SDA2.

Most likely IMO the Kubuntu installer has got confused over the order of the partitions, despite the original scheme being a clean 50/50. I'm now resigned to spending a whole day reinstalling everything...

It would be better if the Linux developers fixed these sorts of problems instead of adding yet another desktop revamp on every release. But I guess that's not "cool".

-Rob

ellaivarios
June 28th, 2011, 10:51 AM
When you install Linux as a dual/multi boot with other OSs, it's always good practice to make sure to install Grub within the partition that Linux is installed in, and chainload it from another bootloader (that's if you want to virtualize/emulate a BIOS for isntance, i.e. to create an OEM appearance...

Anyway, since you are reinstalling everying, best to have a SWAP in the very END of the hard drive, together with your linux partition, because that way it is faster... (it spins faster near the edge, believe it or not you will notice a difference.)