Little help with dual boot GRUB - grub.cfg

Soldato
Joined
1 Mar 2003
Posts
5,508
Location
Cotham, Bristol
Ok can someone point out how I can add windows 7 to the grub boot menu, I'm confused! Essentially Windows 7 is installed on the 60GB (/dev/sda) and Ubuntu 11.10 is installed on the 1500GB (/dev/sdb)

Currently Ubuntu boots by default, but hitting F11 during boot doesn't show Windows 7 as an option.

Code:
paul@linux-desktop:~$ sudo fdisk -l
[sudo] password for paul: 

Disk /dev/sda: 60.0 GB, 60022480896 bytes
255 heads, 63 sectors/track, 7297 cylinders, total 117231408 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xfbeadff6

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048   117227519    58612736    7  HPFS/NTFS/exFAT

Disk /dev/sdb: 1500.3 GB, 1500301910016 bytes
255 heads, 63 sectors/track, 182401 cylinders, total 2930277168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000d4674

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *          63  2912150744  1456075341   83  Linux
/dev/sdb2      2912150745  2930272064     9060660    5  Extended
/dev/sdb5      2912150808  2930272064     9060628+  82  Linux swap / Solaris
 
Hi.

Since you have to ask I assume you shouldn't be medling with grub.cfg.

are you running grub2?

Code:
grub2-mkconfig -o /boot/grub/grub.cfg

Code:
grub-mkconfig -o /boot/grub/grub.cfg

N.B. just check grub.cfg is actually in /boot/grub/grub.cfg and make a backup first to /boot/grub/grub.cfg.old0

Execute as root (sudo) and while it's running it should pickup you windows installation and create a boot option. Finally reboot, grub should present itself without F11
 
yea ... well depends on which grub version you have, it won't hurt to try them. Impossible to have both installed and only one of them will work.

In terminal type:

Code:
sudo grub2-mkconfig -o /boot/grub/grub.cfg
 
Back
Top Bottom