PDA

View Full Version : [SOLVED] Not able to boot into windows 7



varunpandey
September 28th, 2011, 07:15 AM
Hi,
I recently installed UBUNTU 10.10 on Dell optiplex 780. I had windows 7 installed previously on it. Now the problem is that when I boot my computer then it straight away goes into Linux Ubuntu, and doesn't show any boot menu from where I can choose to go into Windows. Here are the results for the boot info script :


Boot Info Script 0.60 from 17 May 2011


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

=> Grub2 (v1.97-1.98) is installed in the MBR of /dev/sda and looks at sector
1 of the same hard drive for core.img. core.img is at this location and
looks in partition 6 for (,msdos6)/boot/grub.

sda1: __________________________________________________ ________________________

File system: vfat
Boot sector type: Dell Utility: FAT16
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files: /DELLBIO.BIN /DELLRMK.BIN /COMMAND.COM

sda2: __________________________________________________ ________________________

File system: ntfs
Boot sector type: Windows Vista/7
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files: /bootmgr /Boot/BCD /boot/grub/core.img

sda3: __________________________________________________ ________________________

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: /Windows/System32/winload.exe

sda4: __________________________________________________ ________________________

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: Ubuntu 10.10
Boot files: /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 Sector End Sector # of Sectors Id System

/dev/sda1 63 674,729 674,667 de Dell Utility
/dev/sda2 * 675,840 28,557,311 27,881,472 7 NTFS / exFAT / HPFS
/dev/sda3 28,557,312 420,339,711 391,782,400 7 NTFS / exFAT / HPFS
/dev/sda4 420,341,758 625,141,759 204,800,002 5 Extended
/dev/sda5 420,341,760 428,152,831 7,811,072 82 Linux swap / Solaris
/dev/sda6 428,154,880 625,141,759 196,986,880 83 Linux


"blkid" output: __________________________________________________ ______________

Device UUID TYPE LABEL

/dev/sda1 07DB-0116 vfat DellUtility
/dev/sda2 F622B25022B21619 ntfs RECOVERY
/dev/sda3 329026089025D361 ntfs OS
/dev/sda5 45d15a7d-0107-4d94-bb40-c1531c372269 swap
/dev/sda6 f9d70ecf-22e8-4a4f-b2bf-60b56d712304 ext4

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

Device Mount_Point Type Options

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


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

GiB - GB File Fragment(s)

?? = ?? boot/grub/core.img 1

=========================== sda6/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='(hd0,msdos6)'
search --no-floppy --fs-uuid --set f9d70ecf-22e8-4a4f-b2bf-60b56d712304
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
load_video
insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set f9d70ecf-22e8-4a4f-b2bf-60b56d712304
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='(hd0,msdos6)'
search --no-floppy --fs-uuid --set f9d70ecf-22e8-4a4f-b2bf-60b56d712304
linux /boot/vmlinuz-2.6.35-22-generic root=UUID=f9d70ecf-22e8-4a4f-b2bf-60b56d712304 ro 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='(hd0,msdos6)'
search --no-floppy --fs-uuid --set f9d70ecf-22e8-4a4f-b2bf-60b56d712304
echo 'Loading Linux 2.6.35-22-generic ...'
linux /boot/vmlinuz-2.6.35-22-generic root=UUID=f9d70ecf-22e8-4a4f-b2bf-60b56d712304 ro single
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='(hd0,msdos6)'
search --no-floppy --fs-uuid --set f9d70ecf-22e8-4a4f-b2bf-60b56d712304
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set f9d70ecf-22e8-4a4f-b2bf-60b56d712304
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 ###
--------------------------------------------------------------------------------

=============================== sda6/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/sda6 during installation
UUID=f9d70ecf-22e8-4a4f-b2bf-60b56d712304 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
UUID=45d15a7d-0107-4d94-bb40-c1531c372269 none swap sw 0 0
--------------------------------------------------------------------------------

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

GiB - GB File Fragment(s)

214.297397614 = 230.100078592 boot/grub/core.img 1
252.332290649 = 270.939734016 boot/grub/grub.cfg 1
244.425781250 = 262.450184192 boot/initrd.img-2.6.35-22-generic 2
214.295936584 = 230.098509824 boot/vmlinuz-2.6.35-22-generic 1
244.425781250 = 262.450184192 initrd.img 2
214.295936584 = 230.098509824 vmlinuz 1


Pls help me to get around this.

Quackers
September 28th, 2011, 07:58 AM
Welcome to UF :-)
Have you run
sudo update-grub in a terminal in Ubuntu?
Is the Windows Loader recognised as grub.cfg is run? If it is you can reboot and see if a grub menu then appears.

It appears that you have an extra file in the sda2 partition (in red). This folder/file should not be there and it may be messing things up.

sda2: __________________________________________________ ________________________

File system: ntfs
Boot sector type: Windows Vista/7
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files: /bootmgr /Boot/BCD /boot/grub/core.img

garvinrick4
September 28th, 2011, 08:09 AM
I do think Quackers done hit the nail dead on the head: (Morning Quackers awful early across the pond, Midnight here.)

Grub2 was installed with Windows system partition chosen as the root-directory.
This causes the folder /boot/grub to be created on the Windows system partition.
Since ntfs partitions are case insensitive this leads to confusions between "/boot" and the already existing folder "/Boot
###Solution
Boot into your Linux OS and deleted or rename the folder /boot on the Windows system partition.
Make sure that your don't delete the /Boot folder. The /Boot folder contains the file "bcd" which is necessary to boot Windows Vista/7.

varunpandey
September 28th, 2011, 08:44 AM
Thnaks for the replies Quackers and garvinrick4.
One problem where is this folder bootmgr located in windows. I can access windows partition as it shows up in the places menu of Linux...but don't where to go from there to locate the folder /Boot

garvinrick4
September 28th, 2011, 08:53 AM
There are 2 windows partitions. There will be one when opened that has a /Boot and a
/boot in it. Notice mine has the /Boot but no /boot.

garvinrick4
September 28th, 2011, 09:11 AM
Did you run the ?

sudo update-grub

garvinrick4
September 28th, 2011, 09:23 AM
@ Quackers
Did you notice that sda2 is the recovery partition and it has the boot flag with some
grub2 boot files and no boot flag in sda3 and also no Boot files in sda3. There is no
System partition. I believe sda2 is about 12 gig the size of a windows 7 recovery partition
and blkid lists it as a Recovery. A Dell.

@varunpandey
Let us know where you are at. I will stick around for a while.

varunpandey
September 28th, 2011, 09:47 AM
HI if I go to my computer I see what is shown in the first screenshot. If I go into OC,assuming thats where windows is I see what is in the 2nd screenshot.


Sorry but I am new to Linux, and have no idea what I am doing :(

garvinrick4
September 28th, 2011, 09:52 AM
Not your fault hang in there. Do you have a Windows recovery Disk?

garvinrick4
September 28th, 2011, 09:57 AM
To restore the Windows Vista/7 bootloader, you must first boot off your Windows Vista/7 installation DVD.
If you have one of the many OEM computers that didnt come with a Vista/7 installation disk, you can get the same effect with a Vista recovery disk, which you can download for Vista (http://neosmart.net/blog/2008/windows-vista-recovery-disc-download) or Win 7 (http://neosmart.net/blog/2009/windows-7-system-repair-discs/).
When you get to the Regional settings, select your Location/Keyboard setting then click next. On the next page you must click on "Repair your computer."

On the next page, if it finds your Windows Vista/7 installation, make sure it is UNSELECTED before clicking next.
Then click on "Command prompt". From there, type in the folowing:



bootrec.exe /fixboot


bootrec.exe /fixmbr
Now close the two windows and click "Restart."

Take out your Vista/7 DVD and hopefully, you will be left with your Windows Vista/7 Bootloader.

varunpandey
September 28th, 2011, 10:04 AM
No I do not have the windows disc. I'll try the recovery disc, lets see what happens. Thanks for help btw.

garvinrick4
September 28th, 2011, 10:05 AM
Previous post will get your windows back in shape and booting.
Now to get the Ubuntu grub back in place so as to boot both from same menu.
Take your Ubuntu live cd (Ubuntu install cd using Try Ubuntu) and put in tray and boot off of it.
Select Try Ubuntu.
When boots open a terminal (ctrl/alt/t at one time) and copy and paste these commands.

sudo mount /dev/sda6 /mnt
sudo grub-install --root-directory=/mnt /dev/sda
sudo umount /mnt
sudo rebootBoot into Ubuntu and:

sudo update-grub## Sorry it is booting with 2 disks and fixing Windows first then installing grub (Ubuntu's
bootloader) But it seems we have had to get Windows boot files back in place first.
I will stick around until you finish.

garvinrick4
September 28th, 2011, 10:08 AM
I'll try the recovery disc, lets see what happens. Thanks for help btw.
That will work. Will be here, just want to get you up and running. If you got the time I
will help all I can.

garvinrick4
September 28th, 2011, 10:11 AM
If you do not have the recovery disk handy there is one other way to get windows booting first. (This is only if you do not have a Windows recovery disk)
Use the Ubuntu live cd (install cd using try ubuntu)
Get the internet working in live cd. (get online with firefox to make sure it works)
Now copy and paste these in a terminal (ctrl/alt/t at one time)

sudo apt-get install lilo
sudo lilo -M /dev/sda mbrMay show error messages about the rest of lilo missing, ignore, we just want MBR

Now reboot and should go to Windows and boot up.

Now take the Ubuntu disk again and boot off of it and do the post 12.

Just take your time and focus and just copy and paste the commands that are given.

varunpandey
September 28th, 2011, 10:55 AM
No I don't even have the recovery disc. I am downloading it though. So shoul I keep downloading the disc or should I do what you said, ie lilo thing ?

garvinrick4
September 28th, 2011, 10:57 AM
No I don't even have the recovery disc. I am downloading it though. So shoul I keep downloading the disc or should I do what you said, ie lilo thing ? Go ahead and finish downloading since you got it started always
nice to have a Recovery disk for any operating system you have installed. Should not take that long unless your download speeds are dog slow.
How much time does it say left to finish?

varunpandey
September 28th, 2011, 11:01 AM
1 hour 17 minutes, speed is about 35 Kbps

garvinrick4
September 28th, 2011, 11:06 AM
Use the Install Cd and do the lilo thing it is 3 AM here lets get you going. Post 14 then post 12 let me know will be here.


speed is about 35 KbpsThat is pretty slow, like real slow. Can do it later on.

varunpandey
September 28th, 2011, 11:34 AM
A windo boot manager has come up saying windows failed to start recent hardware/software blah blah blah.... asks for windows installation disc and repair the computer.

garvinrick4
September 28th, 2011, 11:44 AM
A windo boot manager has come up saying windows failed to start recent hardware/software blah blah blah.... asks for windows installation disc and repair the computer. then that is what we have to do. One step at a time.
Use post 12 to get Ubuntu's grub back if any problem there if using Ubuntu to download
recovery disk. Then repair Windows and then put Ubuntu's grub back. Cannot boot
Windows until it is repaired. I will look in on this thread in a bit, keep it posted on what
is going on. As long as you can get windows repaired will be fine.

varunpandey
September 28th, 2011, 11:50 AM
So I now continue with the 12th post right? Boot into ubuntu update grub. Then repair windows using recovery disk and then update grub again right?

garvinrick4
September 28th, 2011, 12:02 PM
Put Ubuntu cd in do post 12, boot into Ubuntu get your windows repair disk and burn to a disk. Run Windows repair to fix that. Then run 12 again to put Ubuntu grub back in place
then boot into ubuntu on hard disk and run sudo update-grub and done. Both should now boot and be menuentrys in grub.

varunpandey
September 28th, 2011, 12:05 PM
Ok got it!

garvinrick4
September 28th, 2011, 12:08 PM
I am going to check in now and then to see if you are booting both Operating Systems.
I am going to watch a Netflix and see how you come out. Keep me posted.

Quackers
September 28th, 2011, 12:58 PM
So when you ran sudo update-grub the Windows Loader was found, yes?
When you try to boot Windows from the new grub menu you are getting the Windows can't boot error.
Did you resize the Windows partition before you installed Ubuntu, and if so what program did you use?
You may need to run a chkdsk on the Windows system.

varunpandey
September 28th, 2011, 01:25 PM
Ok done that. Downloaded the windows recovery disc and booted using that. There is a dialog box that has come up and it says Windows have detected a problem with your Computer's starup options, Do you want to apply repair and restart your computer.
n btw I have grub up and running now. Just that it doesn't show Windows.

Quackers
September 28th, 2011, 01:32 PM
Try running the repair option. If it gets Windows booting we can always re-install grub as garvinrick4 said earlier.

varunpandey
September 28th, 2011, 01:35 PM
I repaired it, but now again grub menu is gone, and it straight away goes into ubuntu.

Quackers
September 28th, 2011, 01:40 PM
Try the Windows disc again and run the automatic repair 2 more times. It can take 3 runs to automatically repair the mbr sometimes.
If it still boots into Ubuntu we'll try the bootrec.exe command.

varunpandey
September 28th, 2011, 02:03 PM
I did a startup repair this time but it says this computer could not be repaired. What should I do next?

Quackers
September 28th, 2011, 02:16 PM
You need to answer the qestions that you are asked.
Did you resize any Windows partitions when you installed Ubuntu?
If so, what program did you use?

It may be that a chkdsk needs to be run.

We can first try a further command to fix Windows but if it doesn't work then something else is wrong.

Boot from the Windows repair disc and ignore the automatic startup repair. You may need to look bottom left (or it is on mine) for something called "advanced options" or similar.
You will get to a screen with several options on it. One of those options is "command prompt" - choose that option and type in
Bootrec.exe /Fixmbr NOTE there is a space between exe and /Fixmbr

If that runs ok reboot and see if Windows starts up.

varunpandey
September 28th, 2011, 02:24 PM
That fixes it. I am able to boot into Windows now. So now I should do what garvinrick4 said to do in the 12 post, to get grub running again.

Quackers
September 28th, 2011, 02:31 PM
Aha! That's good news :-)
Yes, follow garvinrick4's instructions in post 12. After that Ubuntu should boot directly. If it does, open a terminal and run
sudo update-grub and watch to see that the Windows Loader is recognised.
If it is, reboot and you should see your new grub menu giving you the choice of which OS to boot.
Try both in turn. If all is well you're finished :-)

varunpandey
September 28th, 2011, 02:34 PM
Sadly the sudo update wasn't able to recognise the windows loader. ](*,)

When I rebooted my system, it again went straight into Linux.

Quackers
September 28th, 2011, 02:36 PM
Oh dear :-(
Please re-run the boot script so we can see whether that pesky /boot/grub/core.img file is still in sda2.

varunpandey
September 28th, 2011, 02:41 PM
There you go :


Boot Info Script 0.60 from 17 May 2011


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

=> Grub2 (v1.97-1.98) is installed in the MBR of /dev/sda and looks at sector
1 of the same hard drive for core.img. core.img is at this location and
looks in partition 6 for (,msdos6)/boot/grub.

sda1: __________________________________________________ ________________________

File system: vfat
Boot sector type: Dell Utility: FAT16
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files: /DELLBIO.BIN /DELLRMK.BIN /COMMAND.COM

sda2: __________________________________________________ ________________________

File system: ntfs
Boot sector type: Windows Vista/7
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files: /bootmgr /Boot/BCD /boot/grub/core.img

sda3: __________________________________________________ ________________________

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: /Windows/System32/winload.exe

sda4: __________________________________________________ ________________________

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: Ubuntu 10.10
Boot files: /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 Sector End Sector # of Sectors Id System

/dev/sda1 63 674,729 674,667 de Dell Utility
/dev/sda2 * 675,840 28,557,311 27,881,472 7 NTFS / exFAT / HPFS
/dev/sda3 28,557,312 420,339,711 391,782,400 7 NTFS / exFAT / HPFS
/dev/sda4 420,341,758 625,141,759 204,800,002 5 Extended
/dev/sda5 420,341,760 428,152,831 7,811,072 82 Linux swap / Solaris
/dev/sda6 428,154,880 625,141,759 196,986,880 83 Linux


"blkid" output: __________________________________________________ ______________

Device UUID TYPE LABEL

/dev/sda1 07DB-0116 vfat DellUtility
/dev/sda2 F622B25022B21619 ntfs RECOVERY
/dev/sda3 329026089025D361 ntfs OS
/dev/sda5 45d15a7d-0107-4d94-bb40-c1531c372269 swap
/dev/sda6 f9d70ecf-22e8-4a4f-b2bf-60b56d712304 ext4

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

Device Mount_Point Type Options

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


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

GiB - GB File Fragment(s)

?? = ?? boot/grub/core.img 1

=========================== sda6/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='(hd0,msdos6)'
search --no-floppy --fs-uuid --set f9d70ecf-22e8-4a4f-b2bf-60b56d712304
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
load_video
insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set f9d70ecf-22e8-4a4f-b2bf-60b56d712304
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='(hd0,msdos6)'
search --no-floppy --fs-uuid --set f9d70ecf-22e8-4a4f-b2bf-60b56d712304
linux /boot/vmlinuz-2.6.35-22-generic root=UUID=f9d70ecf-22e8-4a4f-b2bf-60b56d712304 ro 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='(hd0,msdos6)'
search --no-floppy --fs-uuid --set f9d70ecf-22e8-4a4f-b2bf-60b56d712304
echo 'Loading Linux 2.6.35-22-generic ...'
linux /boot/vmlinuz-2.6.35-22-generic root=UUID=f9d70ecf-22e8-4a4f-b2bf-60b56d712304 ro single
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='(hd0,msdos6)'
search --no-floppy --fs-uuid --set f9d70ecf-22e8-4a4f-b2bf-60b56d712304
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set f9d70ecf-22e8-4a4f-b2bf-60b56d712304
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 sleep --verbose --interruptible 10 ; then
set timeout=0
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 ###
--------------------------------------------------------------------------------

=============================== sda6/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/sda6 during installation
UUID=f9d70ecf-22e8-4a4f-b2bf-60b56d712304 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
UUID=45d15a7d-0107-4d94-bb40-c1531c372269 none swap sw 0 0
--------------------------------------------------------------------------------

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

GiB - GB File Fragment(s)

214.295959473 = 230.098534400 boot/grub/core.img 1
244.388896942 = 262.410579968 boot/grub/grub.cfg 1
244.425781250 = 262.450184192 boot/initrd.img-2.6.35-22-generic 2
214.295936584 = 230.098509824 boot/vmlinuz-2.6.35-22-generic 1
244.425781250 = 262.450184192 initrd.img 2
214.295936584 = 230.098509824 vmlinuz 1




And yup to answer your previous question, I did not resize the windows partition.

Quackers
September 28th, 2011, 02:45 PM
Thanks. Can you post the output of sudo update-grub when run in the terminal please? Thanks.

varunpandey
September 28th, 2011, 02:47 PM
Here :


sudo update-grub
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.35-22-generic
Found initrd image: /boot/initrd.img-2.6.35-22-generic
Found memtest86+ image: /boot/memtest86+.bin
ls: cannot access /var/lib/os-prober/mount/boot
Boot: No such file or directory
done

Quackers
September 28th, 2011, 02:56 PM
Ok thanks.
Have a look at post #5 in the thread below and follow its instructions, then try sudo update-grub again

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

varunpandey
September 28th, 2011, 03:09 PM
That's all fine, but how do I navigate to the folder which has /boot folder that needs to be deleted?

Quackers
September 28th, 2011, 03:29 PM
Once sda2 is mounted to /mnt open Nautilus (Files option) to navigate there. Like you would to go to Downloads, for instance.

varunpandey
September 28th, 2011, 03:55 PM
:popcorn: :p:guitar: All done......I can now access both operating systems. Thanks a lot both of you!

Quackers
September 28th, 2011, 03:56 PM
Excellent :-)
Enjoy Dual-booting :-)