Installed Ubuntu 11.10, already had Win7 and Win7 wont start

BustaBust

Golden Member
Dec 21, 2001
1,425
2
81
I already had Windows 7 on my C: drive.
I used the Ubuntu LiveCD which didn't contain any rescue software to install.
I had an NTFS partition (C: for Windows), blank NTFS partition Dee

I used the partition program/installer from the Ubuntu LiveCD. I chose custom,
formatted the Dee drive and installed Ubuntu to it. It created a swap drive on it's own.
Left C: intact. I must have chose the wrong bootloader when setting up because the grub loader shows Linux, Linux Recovery, 2 Memtests, and Windows 7. When I choose Windows 7 it just loops back to the same screen that prompts me for a choice. I booted into Ubuntu and checked the disks, the main partition states NTFS and partition type states 'Linux (0x83)', this is my main partition that contains Windows 7 (/dev/sda2). Both partitions are on 1 hard drive (/dev/sda) Ubuntu is on /dev/sda5

I tried booting with a Windows 7 disk to repair the mbr, but first I had to go into BIOS and turn on the ACPI. Then I tried again and the recovery tool showed my previously installed Windows but an error pops up saying the System Recovery tool isn't compatible for this version of Windows or something like that. Keep in mind I'm using the same Windows CD that I used to install it in the first place. I found ms-sys for linux but I don't know how to compile it. Also, I have Boot-Repair and don't know how to fix this problem. I also have Grub-Customizer and don't know how to use it either. I have the Linux LiveCD but don't know how to do anything with it. I've installed LILO as well.

I've read about these:

sudo ms-sys -7 /dev/sda
fixmbr
fixboot

I cannot use any of those because of what I stated above.
Windows was already installed first, Win 7 CD won't work,
have Linux CD, need help with ms-sys 2.2.1 if possible, boot-repair or grub-customizer help if possible OR any other fix is appreciated.

Thanks.

EDIT - Dee is supposed to be the fourth letter in the alphabet. Typed this way to avoid "Disgusted" face smiley

EDIT
Boot Info Script 0.60 from 17 May 2011


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

=> Lilo is installed in the MBR of /dev/sda.

sda1: __________________________________________________________________________

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

sda5: __________________________________________________________________________

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

sda2: __________________________________________________________________________

File system: ntfs
Boot sector type: Grub2 (v1.99)
Boot sector info: Grub2 (v1.99) is installed in the boot sector of sda2
and looks at sector 14149632 of the same hard drive
for core.img. core.img is at this location and looks
for on this drive. No errors found in the Boot
Parameter Block.
============================ Drive/Partition Info: =============================

Drive: sda _____________________________________________________________________

Disk /dev/sda: 750.2 GB, 750156374016 bytes
255 heads, 63 sectors/track, 91201 cylinders, total 1465149168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition Boot Start Sector End Sector # of Sectors Id System

/dev/sda1 2,046 31,133,695 31,131,650 5 Extended
/dev/sda5 2,048 31,133,695 31,131,648 83 Linux
/dev/sda2 * 31,133,970 1,465,144,064 1,434,010,095 7 NTFS / exFAT / HPFS


"blkid" output: ________________________________________________________________

Device UUID TYPE LABEL

/dev/sda2 EECC59B5CC5978B3 ntfs
/dev/sda5 8481f207-2d07-492b-8e19-ca3768ff8ecd ext4

================================ Mount points: =================================

Device Mount_Point Type Options

/dev/sda2 /tmp/BootInfo0/sda2 ntfs (ro)
/dev/sda5 / ext4 (rw,errors=remount-ro,commit=0)


=========================== sda5/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='(hd0,msdos5)'
search --no-floppy --fs-uuid --set=root 8481f207-2d07-492b-8e19-ca3768ff8ecd
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=auto
load_video
insmod gfxterm
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set=root 8481f207-2d07-492b-8e19-ca3768ff8ecd
set locale_dir=($root)/boot/grub/locale
set lang=en_US
insmod gettext
fi
terminal_output gfxterm
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 3.0.0-16-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set=root 8481f207-2d07-492b-8e19-ca3768ff8ecd
linux /boot/vmlinuz-3.0.0-16-generic root=UUID=8481f207-2d07-492b-8e19-ca3768ff8ecd ro quiet splash vt.handoff=7
initrd /boot/initrd.img-3.0.0-16-generic
}
menuentry 'Ubuntu, with Linux 3.0.0-16-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set=root 8481f207-2d07-492b-8e19-ca3768ff8ecd
echo 'Loading Linux 3.0.0-16-generic ...'
linux /boot/vmlinuz-3.0.0-16-generic root=UUID=8481f207-2d07-492b-8e19-ca3768ff8ecd ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.0.0-16-generic
}
submenu "Previous Linux versions" {
menuentry 'Ubuntu, with Linux 3.0.0-12-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set=root 8481f207-2d07-492b-8e19-ca3768ff8ecd
linux /boot/vmlinuz-3.0.0-12-generic root=UUID=8481f207-2d07-492b-8e19-ca3768ff8ecd ro quiet splash vt.handoff=7
initrd /boot/initrd.img-3.0.0-12-generic
}
menuentry 'Ubuntu, with Linux 3.0.0-12-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set=root 8481f207-2d07-492b-8e19-ca3768ff8ecd
echo 'Loading Linux 3.0.0-12-generic ...'
linux /boot/vmlinuz-3.0.0-12-generic root=UUID=8481f207-2d07-492b-8e19-ca3768ff8ecd ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.0.0-12-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='(hd0,msdos5)'
search --no-floppy --fs-uuid --set=root 8481f207-2d07-492b-8e19-ca3768ff8ecd
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set=root 8481f207-2d07-492b-8e19-ca3768ff8ecd
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/sda2)" --class windows --class os {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set=root EECC59B5CC5978B3
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 ###
--------------------------------------------------------------------------------

=============================== sda5/etc/fstab: ================================

--------------------------------------------------------------------------------
# /etc/fstab: static file system information.
#
# Use 'blkid' 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=8481f207-2d07-492b-8e19-ca3768ff8ecd / ext4 errors=remount-ro 0 1
--------------------------------------------------------------------------------

============================= sda5/etc/lilo.conf: ==============================

--------------------------------------------------------------------------------
# /etc/lilo.conf - systemwide LILO configuration (LILO 23)
# details see in manpages: lilo(8) and lilo.conf(5)

# +-------------------------------------------------------------+
# | !! Reminder !! |
# | |
# | Don't forget to run 'lilo' after you make changes to this |
# | conffile or you have installed a new kernel. |
# +-------------------------------------------------------------+


# #################### LILO global section ######################

# With all newer systems (until year 2004) you can use the RAM
# above 15 MB. This option allows the use of this range of RAM.
#large-memory

# With all newer systems you can boot from any partition on disks
# with more than 1024 cylinders. This option allows the use of
# partitions above 1024 cylinders.
lba32

# Specifies the boot device. This is where Lilo installs its boot
# block. It can be either a partition, or the raw device, in which
# case it installs in the MBR, and will overwrite the current MBR.
# With newer kernel you should use the ID of the boot device, which
# can be found here: /dev/disks/by-id/ata*.
#boot = /dev/sda
boot = /dev/disk/by-id/ata-WDC_WD7500AAKS-22RBA0_WD-WCAPT0817149

# This option may be needed for some software RAID installs.
#raid-extra-boot = mbr-only

# Enable map compaction. This tries to merge read requests for
# adjacent sectors into a single read request. This drastically
# reduces load time and keeps the map smaller. Using 'compact'
# is especially recommended when booting from a floppy disk.
# It is disabled here by default because it doesn't always work.
#compact

# Set the verbose level for bootloader installation. Value range:
# 0 to 5. Default value is 0.
#verbose = 1

# Specifies the location of the map file. Lilo creates the (sector)
# map file of direct sector addresses which are independent of any
# filesystem.
map = /boot/map

# ---------------------------------------------------------------

# Specifies the menu interface. You have the choice between:
# text: simple text menu with black background and white text
# menu: configurable text menu with background and text colors.
# bmp: graphical menu with 640x480 bitmap background.
install = menu

# A) Customized boot message for choice 'text'.
# For the simple text menu you can set an extra message in the
# created file. Its text will be displayed before boot prompt.
#message = /boot/message.txt

# B) Configuration of the scheme for choice 'menu'.
# Use following coding: <text>:<highlight>:<border>:<title>
# The first character of each part sets the text frontcolor,
# the second character of earch part sets the text backcolor,
# an upper-case character sets bold face text (frontcolor).
# i.g. 'menu-scheme=wm:rw:wm:Wm'. Possible colors:
# k=black, b=blue, g=green, c=cyan, r=red, m=magenta, y=yellow, w=white.
menu-scheme = Wb:Yr:Wb:Wb
#menu-title = " DESDEMONA Boot-Manager "

# C) Configuration of the image for choice 'bmp'.
# For the graphical menu you need a bitmap file, which needs a special
# menu configuration in the file header (see: lilo -E). Ideally you
# use one of the delivered images of the lilo package.
# with 16 colors: onlyblue, tuxlogo, inside
# with 256 colors: coffee
# for Debian: debianlilo, debian, debian-de
#bitmap = /boot/tuxlogo.bmp

# ---------------------------------------------------------------

# Specifies the number of deciseconds (0.1 seconds) how long LILO
# should wait before booting the first image. LILO doesn't wait if
# 'delay' is omitted or set to zero. You do not see the defined menu.
#delay = 20

# Prompt to start one certain kernel from the displayed menu.
# It is very recommeded to also set 'timeout'. Without timeout boot
# will not take place unless you hit return. Timeout is the number
# of deciseconds (0.1 seconds) after there the default image will
# be started. With 'single-key' alias numbers for each menu line can
# be used.
prompt
timeout = 100
#single-key

# ---------------------------------------------------------------

# Specifying the VGA text mode that should be selected when booting.
# The following values are recognized (case is ignored):
# vga=normal 80x25 text mode (default)
# vga=extended 80x50 text mode (abbreviated to 'ext')
# vga=ask stop and ask for user input: choice of text mode
# vga=<mode> use the corresponding text mode number. A list of
# available modes can be obtained by booting with
# vga=ask' and then pressing [Enter].
# Another way is the use of frame buffer mode. Then the kernel
# will switch from the normal vga text mode (80x25) to the frame
# buffer mode (if frame buffer support is in the kernel):
# vga=0x314 800x600 @ 16 bit
# vga=0x317 1024x768 @ 16 bit
# vga=0x318 1024x768 @ 24 bit
#vga = ask
vga = normal
#vga = 0x317

# ---------------------------------------------------------------

# Kernel command line options that apply to all installed images go
# here. See 'kernel-parameters.txt' in the Linux kernel 'Documentation'
# directory. I.g. for start into 'init 5' write: append="5"
#append = ""

# If you used a serial console to install Debian, this option should be
# enabled by default.
#serial = 0,9600

# Set the image which should be started after delay or timeout.
# If not set, the first defined image will be started.
#default = Linux


# ################### LILO per-image section ####################

# Each image is configured with the linux kernel (=image) and
# usually with the initrd file. Configure all GNU/Linux systems
# on other partitions, too.

--------------------------------------------------------------------------------

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

GiB - GB File Fragment(s)

7.547878265 = 8.104472576 boot/grub/core.img 1
7.586662292 = 8.146116608 boot/grub/grub.cfg 1
2.766178131 = 2.970161152 boot/initrd.img-3.0.0-12-generic 2
7.969726562 = 8.557428736 boot/initrd.img-3.0.0-16-generic 2
6.724067688 = 7.219912704 boot/vmlinuz-3.0.0-12-generic 1
4.552219391 = 4.887908352 boot/vmlinuz-3.0.0-16-generic 2
7.969726562 = 8.557428736 initrd.img 2
2.766178131 = 2.970161152 initrd.img.old 2
4.552219391 = 4.887908352 vmlinuz 2
6.724067688 = 7.219912704 vmlinuz.old 1

========================== sda2/grldr embedded menu: ===========================

--------------------------------------------------------------------------------

========= Devices which don't seem to have a corresponding hard drive: =========

sdb sdc sdd sde sdf

=============================== StdErr Messages: ===============================

unlzma: Decoder error
/home/maulin/Desktop/boot_info_script.sh: line 1888: ( / 2 ) + 16 : syntax error: operand expected (error token is "/ 2 ) + 16 ")
 
Last edited:

H54

Member
Jan 16, 2011
187
0
71
While in Ubuntu, have you tried running:

Code:
sudo update-grub

there is an explicit os-prober command but I haven't used Ubuntu in a while and can't remember what it is. The above command, I believe, will run the OS prober to "discover" whats installed and update grub.
 

BustaBust

Golden Member
Dec 21, 2001
1,425
2
81
H54 yes I've already run the command in terminal. Grug.cfg shows Windows 7 in OS-Prober in 30 and 10 and 20 are Linux and Memtest respectively.

Try RescaTux with Win MBR for now, will update soon.
 

BustaBust

Golden Member
Dec 21, 2001
1,425
2
81
Tried it and it doesn't do anything. It states my Windows 7 partition is Windows Vista, maybe this is why the Windows 7 DVD wouldn't repair it. What gives?
 

H54

Member
Jan 16, 2011
187
0
71
When I was using Ubuntu, windows 7 would show up as Vista so I don't think thats an issue.
 

BustaBust

Golden Member
Dec 21, 2001
1,425
2
81
With the Ubuntu loader, the Windows partition states Windows 7.
The Rescatux states Windows Vista.
When I used my Windows 7 DVD to repair the installation of Windows it found, it stated that the version of system rescue I was using was not the same version of the installation.
Trying Ultimate Boot CD 5.1.1 now to see if I can BCEdit my way out of this one. Will update soon.
 

H54

Member
Jan 16, 2011
187
0
71
I think the fact the fact that you installed grub to a different partition is causing the heartache. How large is your c drive? Can you spare 30 gigs for Ubuntu there?
 

lxskllr

No Lifer
Nov 30, 2004
57,686
7,912
126
I may be stating the obvious here, so bear with me, but it looks to me like the Win7 bootloader is boogered up. GRUB hands of the boot process to the Win7 loader, and it takes over just as if you've booted to a Windows only system. I don't know how to fix it, but I think the Windows side is the right area to attack. Maybe someone makes a boot repair disc for Windows that'll bypass your issue of Windows not recognizing itself.

Edit:
See if this page is any help

http://www.techxe.com/tag/repair-boot-sector-by-cmd/
 
Last edited:

VinDSL

Diamond Member
Apr 11, 2006
4,869
1
81
www.lenon.com
Only got a second...

When I install Linux on a PC that's infected with Winders, I start by doing several defrags.

Then, I use GParted to partition the drive.

Then, I "hide" Winders, before installing Linux (using GParted).

Then, I install Linux.

Finally, I "unhide" Winders.

Works, every time...

Gotta run. BBL
 

ArisVer

Golden Member
Mar 6, 2011
1,345
32
91
I am confused. Why did you install lilo and grub together? You only need one bootloader. All I can think of is.
grub-install /dev/sda and then update-grub

If this does not work you can try
grub-mkconfig and then update-grub
which is the same thing.

Another command which may be usefull to you is os-prober. Read it's manual page. Don't know anything about it.
 

BustaBust

Golden Member
Dec 21, 2001
1,425
2
81
I tried Lilo when grub wasn't working and I already have an os-probe entry at 30 showings Windows 7.

I've already tried the Windows 7 DVD and it gets to the point where it finds the installation, but then a Window pops up on top and states the Win 7 DVD is a different version from my Windows. This is not true since I used that very same dvd to install it.

Update grub does not work as I had already stated.
Tried the ms-sys way and now when I choose the Windows 7 at the menu screen, instead of looping back to the menu screen, it simply goes straight into Linux.

Any way to wipe it all without losing the drive data and let it autodetect and build its own mbr and loader? Doesn't matter if its some 3 party software as long as it works for loading Windows and Ubuntu.
 

boochi

Senior member
May 21, 2011
984
0
0
Busta, did you try plop boot manager like I mentioned in the other thread? If you can get into windows with that, you can use EasyBCD to recreate the Windows 7 bootloader and add an entry for Ubuntu.
http://neosmart.net/EasyBCD/
 

BustaBust

Golden Member
Dec 21, 2001
1,425
2
81
Yes I used Plop and it did not work. I'm am not sure what to do now. I've tried everything yielded in a search and everything suggested here. The only thing left is to acquire a Windows Vista CD and use that to repair. Some of the programs identified my partition as Windows Vista and the Windows 7 DVD stated I was using the wrong version even though I installed from that very same DVD.
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |