LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   For dual booting Ubuntu 10.04 with Windows 7, which partition process to use? (https://www.linuxquestions.org/questions/ubuntu-63/for-dual-booting-ubuntu-10-04-with-windows-7-which-partition-process-to-use-823760/)

shayno90 08-08-2010 07:58 AM

Ok I ran into a problem now, I updated Ubuntu now and the updated kernel has removed the EasyBCD settings for dual booting and now once the system boots up, a cursor flashes in the top right hand corner and then boots straight into Ubuntu without showing any options for booting into Ubuntu or Windows!

Has this problem being fixed yet or are there any solutions to retrieve the original EasyBCD bootloading setup?

tommcd 08-08-2010 09:27 AM

Quote:

Originally Posted by shayno90 (Post 4059754)
Has this problem being fixed yet or are there any solutions to retrieve the original EasyBCD bootloading setup?

According to the guide you posted in post #13 of this thread, you first installed grub2 to the MBR, then you reinstalled the Windows boot loader to the MBR, then you booted Windows and installed EasyBCD.
When grub2 is installed to the MBR and a kernel update comes along, the update-grub command is run. So grub2 has now once again taken control of your MBR.
Options:
You can reinstall grub2 to the MBR. Then boot Ubuntu and run:
Code:

sudo update-grub
https://help.ubuntu.com/community/Gr...ing%20GRUB%202
This should hopefully add an entry for booting Windows7 as well.

Or you could probably just reinstall EasyBCD like you did before.
You will likely have to reinstall EasyBCD whenever there is a kernel update for Ubuntu though.

You would think that EasyBCD would have a way to deal with this, since update-grub is run whenever there is a kernel update in Ubuntu, which is often. Perhaps you could ask on their forums. I am not familiar with EasyBCD.

shayno90 08-08-2010 09:55 AM

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

=> Grub 2 is installed in the MBR of /dev/sda and looks on the same drive in
partition #5 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:
Boot files/dirs: /bootmgr /Boot/BCD

sda2: _________________________________________________________________________

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

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.1 LTS
Boot files/dirs: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img

sda6: _________________________________________________________________________

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

sda4: _________________________________________________________________________

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

=========================== 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 * 2,048 409,599 407,552 7 HPFS/NTFS
/dev/sda2 409,600 337,010,687 336,601,088 7 HPFS/NTFS
/dev/sda3 337,012,734 598,984,703 261,971,970 5 Extended
/dev/sda5 337,012,736 588,257,279 251,244,544 83 Linux
/dev/sda6 588,259,328 598,984,703 10,725,376 82 Linux swap / Solaris
/dev/sda4 598,984,704 625,139,711 26,155,008 7 HPFS/NTFS


blkid -c /dev/null: ____________________________________________________________

Device UUID TYPE LABEL

/dev/sda1 122656F62656D9F5 ntfs SYSTEM
/dev/sda2 BE26AE8326AE3C71 ntfs
/dev/sda3: PTTYPE="dos"
/dev/sda4 488E0E1C8E0E0364 ntfs RECOVERY
/dev/sda5 bf00db6b-11e7-442c-b27b-7e508a37c0cc ext4
/dev/sda6 63fc54eb-ccbe-43ae-aabe-7785981c2d56 swap
/dev/sda: PTTYPE="dos"

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

Device Mount_Point Type Options

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

Coutesy of sudo bash [path/to/the/download_folder]/boot_info_script*.sh the boot info script.

Ok will run the grub update command to retrieve the Windows 7 Boot option as I want to redo the EasyBCD configuration for booting.

shayno90 08-08-2010 10:06 AM

OK I ran the grub update command in the terminal and it displayed the boot up options for Ubuntu and Windows 7 however once I rebooted, those options did not appear and it booted straight into Linux.

Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.32-24-generic
Found initrd image: /boot/initrd.img-2.6.32-24-generic
Found linux image: /boot/vmlinuz-2.6.32-21-generic
Found initrd image: /boot/initrd.img-2.6.32-21-generic
Found memtest86+ image: /boot/memtest86+.bin
Found Windows 7 (loader) on /dev/sda1
Found Windows Vista (loader) on /dev/sda2
Found Windows Vista (loader) on /dev/sda4
done

This did not appear once I rebooted!

So if I cannot boot into Windows I cannot configure EasyBCD settings. Any idea how I can get the Grub2 boot menu to appear and not just boot straight into Ubuntu?

Do I need to reinstall GRUB 2 since it doesn't appear then change the grub config to boot into Windows 7 partition and then configure the MBR with EasyBCD?

shayno90 08-09-2010 04:12 PM

Well I configured the EasyBCD to organize the booting process. The original problem for not seeing the boot up grub menu was the time in /etc/default/grub and was set to 0 from the previous EasyBCD configuration. I would recommend not to change this 0 and leave it at the original as once the updated Ubuntu starts the changes to the kernel cause the grub to override the EasyBCD dualbooting settings and thus it would boot straight into Ubuntu 10.04 if the GRUB _TIMEOUT=0 so better leave it at 10.


Hint download startupmanager to handle the /boot/grub/grub.cfg and /etc/default/grub settings as once you update Ubuntu this will make it easier to make changes to those sensitive files.

~$ sudo apt-get install startupmanager

http://www.ubuntugeek.com/startup-ma...d-usplash.html

~$ cat /etc/default/grub
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.

GRUB_DEFAULT=0
#GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10 (this was set to 0 in the previous EasyBCD setting)
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""

Essentially just boot into Windows upon seeing it the grub menu and repeat step 7 of the installation guide! :)

tommcd 08-10-2010 08:26 AM

Sorry I never got back to you here, but I work a lot on the weekends so I did not have the time.
The next time there is a kernel update for Ubuntu, the EasyBCD install to the MBR may be overwritten again, like it was the last time.
I would just use grub2 to manage the MBR and dual booting. That way you would not have this problem. Here are 2 more excellent tutorials for grub2:
https://help.ubuntu.com/community/Gr...ing%20GRUB%202
https://wiki.ubuntu.com/Grub2
Those tutorials will teach you how to manage grub2s configuration files. Most of what
startup-manager does can be accomplished from learning how to edit /etc/default/grub file.

Anyway, glad you got it sorted out.


All times are GMT -5. The time now is 04:04 PM.