LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   Xubuntu - Boot from Windows 7 with GPT (https://www.linuxquestions.org/questions/ubuntu-63/xubuntu-boot-from-windows-7-with-gpt-4175509268/)

mobjr 06-26-2014 09:08 AM

Xubuntu - Boot from Windows 7 with GPT
 
Hi.

I have Slackware with dual boot using bcdedit...
http://alien.slackbook.org/blog/addi...ws7-boot-menu/

Can I boot my xubuntu with bcdedit using GPT partition?

yancek 06-27-2014 08:21 AM

Are you booting Slackware with this method with GPT? I would think you would just need to repeat the process you used for Slackware for Xubuntu. Seems like a convoluted method but I suppose there are situations when it is best.

mobjr 06-27-2014 03:07 PM

Unfortunately no.

I have MBR using Slackware with my PC and my Note GPT using Xubuntu.

I can boot my Slack with "lilo" and "Windows boot"(Boot from Windows)
I need to pass -P ignore to install lilo because Windows change my sector size.
Code:

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
1 heads, 2 sectors/track, 976762584 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0xdaf99b34

  Device Boot      Start        End      Blocks  Id  System
/dev/sda1  *        2048  419432447  209715200    7  HPFS/NTFS/exFAT
/dev/sda2      419432448  1468008447  524288000    5  Extended
/dev/sda5      419434496  1048580095  314572800    7  HPFS/NTFS/exFAT
/dev/sda6  *  1048582144  1258297343  104857600  83  Linux
/dev/sda7      1258299392  1468006399  104853504  83  Linux

My Note I use grub2 and EFI.

Code:

GPT fdisk (gdisk) version 0.8.8

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

Found valid GPT with protective MBR; using GPT.
Disk /dev/sda: 1953525168 sectors, 931.5 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): 67DF012A-57E4-4348-B881-497D428A17C0
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 1953525134
Partitions will be aligned on 2048-sector boundaries
Total free space is 341611885 sectors (162.9 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      409602047  195.1 GiB  0700  Basic data partition
  4      409602048      410578943  477.0 MiB  EF02 
  5      410578944      411578367  488.0 MiB  8200 
  6      411578368      606889983  93.1 GiB    8300 
  7      606889984      997515263  186.3 GiB  8300 
  8      997515264      1611915263  293.0 GiB  0700  Basic data partition

Is possible to copy the first 512 bytes from GPT partition(4 EF02)?
If yes I think I can boot Xubuntu from windows using bcdedit.

syg00 06-27-2014 06:27 PM

No - UEFI boots completely differently.

I don't have Win7 on gpt disk, but I'd expect grub2 to find it and add a Win7 entry to the boot list - I'd suggest you use grub2 as the default firmware load.

To modify the firmware boot menu, install efibootmgr from Intel - should be in the Xubuntu repos (Mint has it) - comes with good help.


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