LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   Dual boot Gentoo + Windows 7 on a GPT disk (http://www.linuxquestions.org/questions/linux-general-1/dual-boot-gentoo-windows-7-on-a-gpt-disk-923312/)

Hammett 01-11-2012 04:03 PM

Dual boot Gentoo + Windows 7 on a GPT disk
 
Hi!

I cannot get my windows to load in Grub legacy.
I had installed Windows 7 on a GPT disk as it cannot be installed as MBR on EFI systems.
Windows has been installed with primary disk disconnected (/dev/sda)

this is the output of fdisk:
Code:

Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 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: 0x000ed547

  Device Boot      Start        End      Blocks  Id  System
/dev/sdb1              63  976768064  488384001  83  Linux
/dev/sdb4  *          0          0          0    0  Empty

WARNING: GPT (GUID Partition Table) detected on '/dev/sdc'! The util fdisk doesn't support GPT. Use GNU Parted.


Disk /dev/sdc: 500.1 GB, 500107862016 bytes
256 heads, 63 sectors/track, 60563 cylinders, total 976773168 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: 0x7b857c14

  Device Boot      Start        End      Blocks  Id  System
/dev/sdc1  *          1  4294967295  2147483647+  ee  GPT

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: 0x000c4efe

  Device Boot      Start        End      Blocks  Id  System
/dev/sda1  *          63    51199154    25599546  83  Linux
/dev/sda2        51199155    55392119    2096482+  82  Linux swap / Solaris
/dev/sda3        55392120  625137344  284872612+  83  Linux

/dev/sda is the main HDD where Linux is
/dev/sdb is a data HDD
/dev/sdc is where Windows is

Output of gdisk on /dev/sdc
Code:


GPT fdisk (gdisk) version 0.6.13

Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: present

Found valid GPT with protective MBR; using GPT.

Command (? for help): p
Disk /dev/sdc: 976773168 sectors, 465.8 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): 9B59CC39-30F7-4FEB-B0AB-A0A613F625B0
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 976773134
Partitions will be aligned on 2048-sector boundaries
Total free space is 464773101 sectors (221.6 GiB)

Number  Start (sector)    End (sector)  Size      Code  Name
  1            2048          206847  100.0 MiB  EF00  EFI system partition
  2          206848          468991  128.0 MiB  0C01  Microsoft reserved part
  3          468992      512002047  243.9 GiB  0700  Basic data partition

Grub entry:
Code:

default 0
timeout 5
#splashimage=(hd0,0)/boot/grub/splash.xpm.gz

title Gentoo Linux 3.0.6
root (hd0,0)
kernel /boot/vmlinuz-3.0.6-gentoo root=/dev/sda1 vga=0x361
#initrd /boot/initramfs-genkernel-x86-2.6.24-gentoo-r5

title Gentoo Linux 2.6.39-r3
root (hd0,0)
kernel /boot/vmlinuz-2.6.39-gentoo-r3 root=/dev/sda1 vga=0x361

title Windows 7 Ultimate
rootnoverify (hd2,0)
map (hd0) (hd2)
map (hd2) (hd0)
chainloader +1

Output of /boot/grub/device.map
Code:

(fd0)        /dev/fd0
(hd0)        /dev/sda

It also seems I cannot access /dev/sdc. Linux only recognizes one big partiton (/dev/sdc1) when the disk is partitioned in 4. 3 for Windows, 1 empty.

/dev/sda is a MBR disk

Help here is advised!


All times are GMT -5. The time now is 01:41 AM.