So, I was installing ubuntu and i split my partitions on /boot, windows and linux ( / ). But when i finished the installation and turned on the laptop my Windows 7 didnt show up in the grub there was only ubuntu and ubuntu recovery.
the fdisk -l output is this:
Code:
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
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0005cd85
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 206847 102400 83 Linux
/dev/sda2 206848 429894347 214843750 7 HPFS/NTFS/exFAT
/dev/sda3 429895680 625141759 97623040 83 Linux
What i did is I tried to edit /etc/grub.d/40_custom and added this:
Code:
echo "Adding Windows" >&2
cat << EOF
menuentry "Windows" {
set root=(hd0,2)
chainloader +1
}
EOF
then i ran update-grub but I only got (ubuntu) linux and initrd images and No volume groups found then i also tried the grub-mkconfig -o /boot/grub/grub.cfg command but the output is same.
Bookmarks