I want to tryout Ubuntu 14.04 LTS. Because I don't want to reinstall windows after this I installed it via DVD-ROM onto my usb 3.0 stick (64GB). This worked fine.
The first thing when I restarted the computer I was wondering about that windows wasn't starting anymore, when the usb stick wasn't plugged in. I found out why and changed the boot order in the GPT partition using efibootmgr's -o parameter.
Now I have to press F9 to enter the UEFI boot menu of my HP laptop and then I can select ubuntu. All fine.
One thing left which bothers me: Can I configure, that ubuntu automatically starts when the USB stick is connected? Without USB stick windows should start normally without displaying grub?
sudo efibootmgr -v
[sudo] password for alex:
BootCurrent: 0000
Timeout: 0 seconds
BootOrder: 0001,0000,0004,9999
Boot0000* ubuntu HD(2,145800,82000,1ec11f19-24da-44cd-8ac6cd26205992d2)File(\EFI\ubuntu\shimx64.efi)
Boot0001* Windows Boot Manager HD(2,145800,82000,1ec11f19-24da-44cd-8ac6-cd26205992d2)File(\EFI\Microsoft\Boot\bootmgfw.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}....................
Boot0004* Internal Hard Disk ACPI(a0341d0,0)PCI(11,0)SATA(0,ffff,0)HD(2,145800,82000,1ec11f19-24da-44cd-8ac6-cd26205992d2)..BO
Boo9999* USB Drive (UEFI) ACPI(a0341d0,0)PCI(1d,0)USB(10,0)..BO
alex@alex-desktop:~$ sudo parted -l
Modell: ATA SAMSUNG SSD 830 (scsi)
Festplatte /dev/sda: 256GB
Sektorgröße (logisch/physisch): 512B/512B
Partitionstabelle: gpt
Disk-Flags:
Nummer Anfang Ende Größe Dateisystem Name Flags
1 1049kB 683MB 682MB ntfs Basic data partition versteckt, diag
2 683MB 955MB 273MB fat32 EFI system partition boot, esp
3 955MB 1089MB 134MB Microsoft reserved partition msftres
4 1089MB 232GB 231GB ntfs Basic data partition msftdata
5 232GB 256GB 24,0GB ntfs Basic data partition versteckt, msftdata
Modell: SanDisk Extreme (scsi)
Festplatte /dev/sdb: 32,0GB
Sektorgröße (logisch/physisch): 512B/512B
Partitionstabelle: msdos
Disk-Flags:
Nummer Anfang Ende Größe Typ Dateisystem Flags
1 1049kB 28,4GB 28,4GB primary ext4 boot
2 28,4GB 32,0GB 3652MB extended
5 28,4GB 32,0GB 3652MB logical
sudo efibootmgr -v
andsudo parted -l
. Add four spaces to the start of each line. This information will tell us how Windows is installed, whether you have an ESP on the USB flash drive (as oldfred is suggesting may be part of the problem), and how the EFI is configured to boot.