Hardware
HP Envy 17’ touchsmart
Under secureBoot
16 gB RAM
Intel core i7
CG geforce 840m
)
I had install Opensuse in my laptop, an it used to work., with the possibilité to dual boot between OpenSuse and Windowswith GRUB2. The experience was great, so I decided to buy an SSD hard drive to improve my laptop.
Here are my partitions with the new Hard drive
Home (XFS nearly 400 Gb) SWAP (4gb) and Boot/EFI on the old HDD.
Root (80go) on the SSD, Ext4.
The installation runs well, until the reboot where i have a message in console like “Minimal like Bash”. (I don’t know how to get this screen again, so I can’t be more precise). I guess this screen is for make a king of bridge between the 2 hard drives… But I’m a beginner and I type Reboot, so windows start automaticly, without the choice to boot on Opensuse.
I have check The boot manager on YAST, and GRUB2-EFIwith the secureboot support is my boot program, so it seems to benormal…
For now, the only trick I have found is to go on BIOS at the beginning and choose Opensusesecureboot in device option. But it is not a real solution…So I need help to solve my problem.
Hardware
HP Envy 17’ touchsmart
Under secureBoot
16 gB RAM
Intel core i7
CG geforce 840m
)
I had install Opensuse in my laptop, an it used to work., with the
possibilité to dual boot between OpenSuse and Windowswith GRUB2. The
experience was great, so I decided to buy an SSD hard drive to improve
my laptop.
Here are my partitions with the new Hard drive
Home (XFS nearly 400 Gb) SWAP (4gb) and Boot/EFI on the old HDD.
Root (80go) on the SSD, Ext4.
The installation runs well, until the reboot where i have a message in
console like “Minimal like Bash”. (I don’t know how to get this screen
again, so I can’t be more precise). I guess this screen is for make a
king of bridge between the 2 hard drives… But I’m a beginner and I
type Reboot, so windows start automaticly, without the choice to boot on
Opensuse.
I have check The boot manager on YAST, and GRUB2-EFIwith the
secureboot support is my boot program, so it seems to benormal…
For now, the only trick I have found is to go on BIOS at the beginning
and choose Opensusesecureboot in device option. But it is not a real
solution…So I need help to solve my problem.
Thanks!
Hi
If you go into Your BIOS menu and boot into openSUSE, then can check if
it’s added properly, open a terminal session and switch to root user
and post back the following info;
That’s assuming sda is your new ssd and sdb is your old drive, if not
use the output from the lsblk command to identify your disks.
–
Cheers Malcolm °¿° LFCS, SUSE Knowledge Partner (Linux Counter #276890)
SUSE Linux Enterprise Desktop 12 GNOME 3.10.1 Kernel 3.12.38-44-default
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below… Thanks!
linux-7blh:/home/loicmartel # lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 931,5G 0 disk
├─sda1 8:1 0 650M 0 part
├─sda2 8:2 0 260M 0 part /boot/efi
├─sda3 8:3 0 128M 0 part
├─sda4 8:4 0 457G 0 part
├─sda5 8:5 0 4G 0 part [SWAP]
├─sda6 8:6 0 20,9G 0 part
├─sda7 8:7 0 350,6G 0 part /home
└─sda8 8:8 0 40G 0 part /tmp
sdb 8:16 0 117,4G 0 disk
├─sdb1 8:17 0 80,4G 0 part /
└─sdb2 8:18 0 15G 0 part
sdc 8:32 1 7,6G 0 disk
├─sdc1 8:33 1 4M 0 part
└─sdc2 8:34 1 4,4G 0 part
sr0 11:0 1 1024M 0 rom
linux-7blh:/home/loicmartel # gdisk -l /dev/sda
GPT fdisk (gdisk) version 0.8.10
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): F4949876-F93B-48AC-8C06-B3493835A497
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 121668613 sectors (58.0 GiB)
Number Start (sector) End (sector) Size Code Name
1 2048 1333247 650.0 MiB 2700 Basic data partition
2 1333248 1865727 260.0 MiB EF00 EFI system partition
3 1865728 2127871 128.0 MiB 0C01 Microsoft reserved ...
4 2127872 960596447 457.0 GiB 0700 Basic data partition
5 960598016 969009151 4.0 GiB 0700 primary
6 1909817344 1953513471 20.8 GiB 0700 Basic data partition
7 1052915712 1788194695 350.6 GiB 0700 primary
8 1788194816 1872070655 40.0 GiB 0700 primary
linux-7blh:/home/loicmartel # gdisk -l /dev/sdb
GPT fdisk (gdisk) version 0.8.10
Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present
Found valid GPT with protective MBR; using GPT.
Disk /dev/sdb: 246162672 sectors, 117.4 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): E270AD20-740C-4FAA-807B-A93855EFBAB8
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 246162638
Partitions will be aligned on 2048-sector boundaries
Total free space is 46138541 sectors (22.0 GiB)
Number Start (sector) End (sector) Size Code Name
1 2048 168554495 80.4 GiB 0700 primary
2 168554496 200026111 15.0 GiB 0700 primary
linux-7blh:/home/loicmartel # efibootmgr -v^C
linux-7blh:/home/loicmartel # efibootmgr -v
BootCurrent: 0002
Timeout: 5 seconds
BootOrder: 0001,3001,0002,2001,2002,2003
Boot0000* USB Hard Drive (UEFI) - PNY USB 2.0 FD ACPI(a0341d0,0)PCI(14,0)USB(1,0)HD(1,e00,1f80,10ce3e4f)RC
Boot0001* Windows Boot Manager HD(2,145800,82000,70104f93-4913-48b9-9578-d7e0a786e66e)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.}...0................
Boot0002* opensuse-secureboot HD(2,145800,82000,70104f93-4913-48b9-9578-d7e0a786e66e)File(\EFI\opensuse\shim.efi)
Boot2001* USB Drive (UEFI) RC
Boot2002* Internal CD/DVD ROM Drive (UEFI) RC
Boot3000* Internal Hard Disk or Solid State Disk RC
Boot3001* Internal Hard Disk or Solid State Disk RC
Boot3002* Internal Hard Disk or Solid State Disk RC
Boot3003* Internal Hard Disk or Solid State Disk RC
In the BIOS I can select a custom entry, like \EFI\opensuse\shim.efi, and it create a normal boot with the choice between windows and OpenSuSe. But I can’t “add” an entrey, even in the boot config panel in Bios…
So i have try the second way, and type the command ou gaves me.
After it I reboot and get a Minilike bash like console, exactly the same after I’ve installed Opensuse.
A type rebbot, and Windows is the first in the boot list again, so Windows boot automaticly when a reboot again…
Hi
If you can set a custom boot entry, then you need to move it to the top of the list above OS Boot Manager entry. In the BIOS boot order, you should be able to move the entries around with + and - keys?
Unfortunatly, If I can change the boot order between somes items like CD, or USB disk and OS Bootmanager, Opensuse or grub aren’t shown in the list…I thhink i’m gonna have to manually boot my laptop for ever :’(
With the first command line, The laptop reboot just like a charm on the good Grub interface (wich one I can choose between suse and windows). But after one more standard reboot, the windows monster came back and booted lonely!
So, i have tried the second command line and get this result:
linux-7blh:/home/loicmartel # efibootmgr -b 0002 -B 0002
BootCurrent: 0002
Timeout: 5 seconds
BootOrder: 0001,3001,2001,2002,2003
Boot0001* Windows Boot Manager
Boot2001* USB Drive (UEFI)
Boot2002* Internal CD/DVD ROM Drive (UEFI)
Boot3000* Internal Hard Disk or Solid State Disk
Boot3001* Internal Hard Disk or Solid State Disk
Boot3002* Internal Hard Disk or Solid State Disk
Boot3003* Internal Hard Disk or Solid State Disk
linux-7blh:/home/loicmartel # efibootmgr -c -d sda -L "openSUSE Secureboot" -l "\\EFI\\opensuse\\shim,efi"
Could not open disk sda: No such file or directory
Looks like you were lucky ( for some value of luck) in getting a machine that only will boot Windows. Note that the Windows entry moved back to the top.
There is a tricky work around that consists of modifying the windows section of the EFI boot partition to boot. In essence you save the contents just in case then copy the Linux files over and rename them the same as the Windows files. The EFI will see the Windows directory and execute the code which then should run grub. You can then boot Windows or Linux from grub. It all depends on how comfortable you are doing this sort of thing.
And would write a stern letter HP telling them that their hardware does not follow standards and ask how are they going to fix that. After all you bought it expecting it to follow normal standard capibilities and features. Did they advertise this as a Windows only computer? I doubt it.
It seems that some HP machines do this little trick.
With the first command line, The laptop reboot just like a charm on the
good Grub interface (wich one I can choose between suse and windows).
But after one more standard reboot, the windows monster came back and
booted lonely!
So, i have tried the second command line and get this result:
Code:
linux-7blh:/home/loicmartel # efibootmgr -b 0002 -B 0002
BootCurrent: 0002
Timeout: 5 seconds
BootOrder: 0001,3001,2001,2002,2003
Boot0001* Windows Boot Manager
Boot2001* USB Drive (UEFI)
Boot2002* Internal CD/DVD ROM Drive (UEFI)
Boot3000* Internal Hard Disk or Solid State Disk
Boot3001* Internal Hard Disk or Solid State Disk
Boot3002* Internal Hard Disk or Solid State Disk
Boot3003* Internal Hard Disk or Solid State Disk
linux-7blh:/home/loicmartel # efibootmgr -c -d sda -L “openSUSE
Secureboot” -l “\EFI\opensuse\shim,efi” Could not open disk sda: No
such file or directory --------------------
Hi
Ahh it should be /dev/sda apologies…
You can set up a systemd job to set the boot next option, however the
next time you boot into windows you have to use the F9 method…
–
Cheers Malcolm °¿° LFCS, SUSE Knowledge Partner (Linux Counter #276890)
SUSE Linux Enterprise Desktop 12 GNOME 3.10.1 Kernel 3.12.38-44-default
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below… Thanks!
On Sun 29 Mar 2015 12:56:03 AM CDT, gogalthorp wrote:
Looks like you were lucky ( for some value of luck) in getting a machine
that only will boot Windows. Note that the Windows entry moved back to
the top.
There is a tricky work around that consists of modifying the windows
section of the EFI boot partition to boot. In essence you save the
contents just in case then copy the Linux files over and rename them the
same as the Windows files. The EFI will see the Windows directory and
execute the code which then should run grub. You can then boot Windows
or Linux from grub. It all depends on how comfortable you are doing this
sort of thing.
And would write a stern letter HP telling them that their hardware does
not follow standards and ask how are they going to fix that. After all
you bought it expecting it to follow normal standard capibilities and
features. Did they advertise this as a Windows only computer? I doubt
it.
It seems that some HP machines do this little trick.
Hi
The later HP ProBooks I have work fine as the offer a custom boot
option and you can change the boot order…
–
Cheers Malcolm °¿° LFCS, SUSE Knowledge Partner (Linux Counter #276890)
SUSE Linux Enterprise Desktop 12 GNOME 3.10.1 Kernel 3.12.38-44-default
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below… Thanks!
Hi,
I have modified the command line with /dev/sda and it created the ne entry.
linux-7blh:/home/loicmartel # efibootmgr -c -d /dev/sda -L "openSUSE Secureboot" -l "\\EFI\\opensuse\\shim,efi"
BootCurrent: 003D
Timeout: 5 seconds
BootOrder: 0000,0001,3001,2001,2002,2003
Boot0001* Windows Boot Manager
Boot2001* USB Drive (UEFI)
Boot2002* Internal CD/DVD ROM Drive (UEFI)
Boot3000* Internal Hard Disk or Solid State Disk
Boot3001* Internal Hard Disk or Solid State Disk
Boot3002* Internal Hard Disk or Solid State Disk
Boot3003* Internal Hard Disk or Solid State Disk
Boot0000* openSUSE Secureboot
However, when I reboot, windows start, and the new entry diseapered :s
linux-7blh:/home/loicmartel # efibootmgr
BootCurrent: 003D
Timeout: 5 seconds
BootOrder: 0001,3001,2001,2002,2003
Boot0001* Windows Boot Manager
Boot2001* USB Drive (UEFI)
Boot2002* Internal CD/DVD ROM Drive (UEFI)
Boot3000* Internal Hard Disk or Solid State Disk
Boot3001* Internal Hard Disk or Solid State Disk
Boot3002* Internal Hard Disk or Solid State Disk
Boot3003* Internal Hard Disk or Solid State Disk
So I really think that the solution you propose in your last post is the good one. But honestly I’m a beginner and I really don’t know how to modify the boot partitions…
(In wich section is yout custom boot option in the BIOS? with F9? because because for my part I only can read and launch… Maybe HP gaves more options for the Pro Book, and not in the entertainement products, like my Laptop)
Hi
Pressing F9 on most HP’s leads to the ‘Boot’ menu likewise F10 for the BIOS.
Interesting your ‘BootCurrent’ is 003D which isn’t in the list…
If you boot into openSUSE and then make a change via YaST bootloader (say change the grub display time to 10 seconds and save it should re-add the entry? You can confirm via the efibootmgr command. Lets see if it comes back.
Then we can add a systemd service to set the boot next option.
I have set 10 second in the boot loader. (A USB with Opensuse 13.2 is plugged). But unfirtunally Opensuse don’t appears anymore!
linux-7blh:/home/loicmartel # efibootmgr
BootCurrent: 003D
Timeout: 5 seconds
BootOrder: 0001,3001,2001,2002,2003
Boot0000* USB Hard Drive (UEFI) - PNY USB 2.0 FD
Boot0001* Windows Boot Manager
Boot2001* USB Drive (UEFI)
Boot2002* Internal CD/DVD ROM Drive (UEFI)
Boot3000* Internal Hard Disk or Solid State Disk
Boot3001* Internal Hard Disk or Solid State Disk
Boot3002* Internal Hard Disk or Solid State Disk
Boot3003* Internal Hard Disk or Solid State Disk
It seemms that Opensuse is back in the boot list ^^, but i Didnt tried to reboot…
linux-7blh:/home/loicmartel # efibootmgr -c -L "openSUSE Secureboot" -l "\\EFI\\opensuse\\shim,efi"
BootCurrent: 003D
Timeout: 5 seconds
BootOrder: 0002,0001,3001,2001,2002,2003
Boot0000* USB Hard Drive (UEFI) - PNY USB 2.0 FD
Boot0001* Windows Boot Manager
Boot2001* USB Drive (UEFI)
Boot2002* Internal CD/DVD ROM Drive (UEFI)
Boot3000* Internal Hard Disk or Solid State Disk
Boot3001* Internal Hard Disk or Solid State Disk
Boot3002* Internal Hard Disk or Solid State Disk
Boot3003* Internal Hard Disk or Solid State Disk
Boot0002* openSUSE Secureboot