LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 01-11-2012, 03:03 PM   #1
Hammett
Senior Member
 
Registered: Aug 2003
Location: Barcelona, Catalunya
Distribution: Gentoo
Posts: 1,037

Rep: Reputation: 54
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!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Boot Loader Problem on Slackware64 13.37 (UEFI & GPT disk) ack_iix Slackware 22 07-12-2012 06:02 PM
Disk Partitions for dual boot with Windows 7 GPT/EFI motiv8d1 Linux - General 2 01-10-2011 06:22 PM
Dual boot, two disk Fedora Windows only opens Windows Javkin Fedora 2 10-20-2006 03:47 AM
How can I dual boot Gentoo and Windows? stan03 Linux - Software 2 02-26-2004 05:00 PM
Windows Xp Professional dual boot with Gentoo Entking5 Linux - Newbie 5 02-19-2004 05:39 PM


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

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration