You are not logged in.

#1 2015-10-25 18:20:53

Head_on_a_Stick
Moderator
From: London
Registered: 2015-09-29
Posts: 7,383
Website

Convert your BunsenLabs system to UEFI booting

Note: experimental UEFI-capable ISO images are now available:

https://forums.bunsenlabs.org/viewtopic.php?id=3423

~~~~~~~~~~

As the upstream Debian live ISO images used by BunsenLabs lack UEFI support, the only option for most users is to install with UEFI disabled and "CSM" or "Legacy" mode enabled.

However, it is possible to switch BL to UEFI booting post-install.

Firstly, create an EFI system partition. This should be 512MiB in size, FAT32-formatted and should have the "EF00" partition code (if you use gdisk; the "boot,esp" flag is the gparted equivalent).

Then create /boot/efi and mount it to the ESP:

sudo mkdir /boot/efi
sudo mount /dev/sdXY /boot/efi

You will also have to add a line to /etc/fstab to make this persistent:

sudo tee -a /etc/fstab <<< $(grep sdXY /proc/self/mounts)

In both commands, replace "XY" with the drive letter and partition number of the EFI system partition you have just created.

If you are installing BunsenLabs for the first time, I recommend creating the partitions first -- use a GUID partition table and include a BIOS boot partition ("EF02" in gdisk, "bios_grub" in gparted) as well as the EFI system partition. Mount the EFI system partition to /boot/efi in the partitioning section of the installer.

Now install and configure GRUB:

sudo apt-get install grub-efi
sudo grub-install --target=x86_64-efi --efi-directory=/boot/efi --recheck

There will be an error message after the last command as the NVRAM entry cannot be made without /sys/firmware/efi (this is only present when booted in UEFI mode).

To overcome this, simply copy the GRUB .efi loader to the default loader location that should be booted automatically by all UEFI motherboards:

sudo mkdir /boot/efi/EFI/boot
sudo cp /boot/efi/EFI/bunsenlabs/grubx64.efi /boot/efi/EFI/boot/bootx64.efi

It may even be worth copying the loader to the default Windows bootmanager location as well, just in case ©

sudo mkdir -p /boot/efi/EFI/Microsoft/Boot
sudo cp /boot/efi/EFI/bunsenlabs/grubx64.efi /boot/efi/EFI/Microsoft/Boot/bootmgfw.efi

Now reboot with "CSM"/"Legacy" mode disabled and UEFI enabled.

*Do Not* follow these instructions if you are dual-booting with Windows -- the Windows-generated ESP should be shared and the Windows bootmanager left untouched.

To use BunsenLabs with Secure Boot enabled, see this guide:
https://forums.bunsenlabs.org/viewtopic.php?id=393

Last edited by Head_on_a_Stick (2017-03-24 20:28:18)


"The first principle is that you must not fool yourself - and you are the easiest person to fool" — Richard Feynman

Forum Rules   •   How to report a problem   •   bunsenlabs(7)

Offline

#2 2015-10-25 19:06:03

nobody0
Disabled account
Registered: 2015-09-29
Posts: 664

Re: Convert your BunsenLabs system to UEFI booting

If you are trying to dual boot with Windows 8 or 10, this might be of help, even though it is for Ubuntu/Mint https://sites.google.com/site/easylinux … ct/windows

Offline

#3 2015-10-25 19:20:15

Head_on_a_Stick
Moderator
From: London
Registered: 2015-09-29
Posts: 7,383
Website

Re: Convert your BunsenLabs system to UEFI booting

ostrolek wrote:

If you are trying to dual boot with Windows 8 or 10, this might be of help, even though it is for Ubuntu/Mint https://sites.google.com/site/easylinux … ct/windows

That link just describes how to dual-boot using an ISO image that already supports UEFI.

As I mentioned in the OP, the Debian live ISO images (upon which the BL image is based) will *not* boot in UEFI mode.

Dual-booting with Windows is trivial with Debian these days, it's just the live UEFI support that is lacking.


"The first principle is that you must not fool yourself - and you are the easiest person to fool" — Richard Feynman

Forum Rules   •   How to report a problem   •   bunsenlabs(7)

Offline

#4 2015-10-25 21:55:45

BLizgreat!
Resident Babbler - vll!
Registered: 2015-10-03
Posts: 779

Re: Convert your BunsenLabs system to UEFI booting

Well written ( no surprise there.)

Though overall seriously doubt it'll be employed. People expect instant gratification nowadays and in terms of complete newish type nixers ... nah.

Can't see them bothering to apply this. Am sure it'll be addressed upstream before too long. Here's one such effort. Thanks Steve, btw don't know this fellow at all.

Under the Debian live section of his site, he mentions they've started maintaining weekly live image builds for Jessie and checking his link the images in the directory are fairly recent.

If anyone gets a wild hair and wants to take one for a ride in vm. Easy enough to determine what mode the OS is booted in.

vll! smile

Edit: Though by iso-hybrid may be no different than whats already in circulation. So not really sure if it supports UEFI boot or just the same ole bios-CMS situation as the official live iso's.

Last edited by BLizgreat! (2015-10-25 21:58:47)

Offline

#5 2015-10-25 22:01:56

Head_on_a_Stick
Moderator
From: London
Registered: 2015-09-29
Posts: 7,383
Website

Re: Convert your BunsenLabs system to UEFI booting

BLwillbegreat! wrote:

Under the Debian live section of his site, he mentions they've started maintaining weekly live image builds for Jessie and checking his link the images in the directory are fairly recent.

Interesting, thank you.

I will check those out.

You're probably right anyway but I thought I would provide the method for those who wish to try it wink


"The first principle is that you must not fool yourself - and you are the easiest person to fool" — Richard Feynman

Forum Rules   •   How to report a problem   •   bunsenlabs(7)

Offline

#6 2015-10-25 22:09:38

BLizgreat!
Resident Babbler - vll!
Registered: 2015-10-03
Posts: 779

Re: Convert your BunsenLabs system to UEFI booting

Your definitely welcome Hoas ...

Had some more babble on this. Have also thought there's no reason ( well other than time and buttpains) BL can't start hosting it's iso's ready to go on github or sourceforge ?

Wonder if that old fiddling with Waldorf iso tute I put up on #! forum would work to fiddle with the live iso's and replace the bootloader used with the grub-efi-amd64 package if it's still a version which only supports CSM-legacy blahblah.

With all the different arch's though can see where it'd be a pain in keeping up with n updating. Edit: Well not so much perhaps, is Debian stable base. Might give er a go. Just don't have a lot of time at present.

Never became an expert iso fiddler ( didn't try to alter branding, theme etc so forth.) Just learned enough to get the thing done.

Last edited by BLizgreat! (2015-10-25 22:13:16)

Offline

#7 2015-10-25 22:11:58

Head_on_a_Stick
Moderator
From: London
Registered: 2015-09-29
Posts: 7,383
Website

Re: Convert your BunsenLabs system to UEFI booting

Update: the current weekly live image still lacks UEFI support:

empty@ThinkPad ~ % sudo fdisk -l Downloads/debian-live-8.2.1-amd64-xfce-desktop.iso
Disk Downloads/debian-live-8.2.1-amd64-xfce-desktop.iso: 950 MiB, 996147200 bytes, 1945600 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
Disklabel type: dos
Disk identifier: 0x056b50cf

Device                                              Boot Start     End Sectors  Size Id Type
Downloads/debian-live-8.2.1-amd64-xfce-desktop.iso1 *       64 1945599 1945536  950M 17 Hidden HPFS/NTFS

"The first principle is that you must not fool yourself - and you are the easiest person to fool" — Richard Feynman

Forum Rules   •   How to report a problem   •   bunsenlabs(7)

Offline

#8 2015-10-25 22:17:27

BLizgreat!
Resident Babbler - vll!
Registered: 2015-10-03
Posts: 779

Re: Convert your BunsenLabs system to UEFI booting

Thanks for update and that sucks.

Guess all the awesome Debian dev's have had hands full lately. Kinda irksome they didn't address this though. Sheesh they're human and prone to the same things all the rest of our species is. smile

Offline

#9 2015-10-25 22:50:31

BLizgreat!
Resident Babbler - vll!
Registered: 2015-10-03
Posts: 779

Re: Convert your BunsenLabs system to UEFI booting

This looks really promising for the purpose of the topic.

Haven't tried it yet though. Checked out the potential to fiddle with the Debian 8.2 netinstall iso. Layout is different and would likely take much additional learning and experimentation to figure it out.

Though again info on ... this webpg looks promising to me.

Edit: Yep ... info above is a tad dated still relevant. The frickin iso layout hadn't changed, the stupe app I was using to extract the iso wasn't working properly, so was showing me nothing but empty directories !

Went ahead and mounted the sucker and now have access to contents. Appears to be just as the guy in the resource above outlines.

Last edited by BLizgreat! (2015-10-25 23:01:20)

Offline

#10 2015-10-26 02:05:46

BLizgreat!
Resident Babbler - vll!
Registered: 2015-10-03
Posts: 779

Re: Convert your BunsenLabs system to UEFI booting

Upon further reflection about this ...

Really figure it's more expedient just to wait until upstream resolves it. Being aware of the issue and letting folks know about the problem.

Still think can't hurt for BL to slap up some finished install iso's somewhere. Though it's easy to suggest others add to their workload too. Whatever works ... works.

vll! smile

Offline

#11 2015-10-26 05:01:15

BLizgreat!
Resident Babbler - vll!
Registered: 2015-10-03
Posts: 779

Re: Convert your BunsenLabs system to UEFI booting

Alright hackerish but think I've got it and it's interesting to screw with regardless. Starting a new how to, so don't crap up HOAS's.

Bbl to cross link da suckers. After writing the aforementioned blahblah. Here's the link.

Last edited by BLizgreat! (2015-10-26 05:24:19)

Offline

#12 2015-10-26 15:47:44

Horizon_Brave
Operating System: Linux-Nettrix
Registered: 2015-10-18
Posts: 1,473

Re: Convert your BunsenLabs system to UEFI booting

I have a question, is this workaround needed due to the nature of UEFI? Or is it needed to the secure boot part of UEFI?  What is it about UEFI that prevents some linux from booting, but allows others? (Ubuntu)  Is it something based in the OS itself, or is it purely about the Bootloader (grub), not being trusted?   Who approves of what is trusted anyway? I've read that Microsoft is mostly the trusted party..but why Microsoft, why should they have the authority to decide what I run on my PC?


"I have not failed, I have found 10,000 ways that will not work" -Edison

Offline

#13 2015-10-26 16:18:22

Sector11
Tpyo Knig
From: 77345 ¡#
Registered: 2015-08-20
Posts: 5,083
Website

Re: Convert your BunsenLabs system to UEFI booting

^ because:

1 $ = power ...
2 power = +$$
3 +$$ = +power
4 +power = +$$$
5 +$$$ = ++power
6 ... ouroboros comes to mind here

get the drift?

I wonder how long it will be before "Secure Boot" is the only way - ie: They drop booting with the legacy bios.


BunsenLabs Forum Rules ---== I'm a Conky 1.9'er ==---
System:    Host: s12 Kernel: 3.16.0-4-amd64 x86_64 (64 bit gcc: 4.8.4)
Desktop: Openbox 3.5.2 dm: (startx) Distro: Debian GNU/Linux 8

Offline

#14 2015-10-26 16:44:34

BLizgreat!
Resident Babbler - vll!
Registered: 2015-10-03
Posts: 779

Re: Convert your BunsenLabs system to UEFI booting

H_Brave that's a lot of questions for someone who's been awake as long as me + am already drinking heartily ( what ... it's 5 oclock somewhere.)

Mostly this is something it'd be better you take up with google or your favorite search engine fellow. Not an expert but guessing it's due to limitations in the d-i ( Debian installer) used in their live iso's.

The normal install iso's don't have such a limitation and support more features. Other distro's use other installers ie: Ubuntu using casper and it's more feature capable.

Also noted that some distro's just don't make any effort to support UEFI/GPT too. ie: AntiX ... it's intended for older systems so kinda makes sense they don't bother with much effort in the area. Though sure it can be made to boot supporting UEFI/GPT anyway.

You can add ( or delete) self signed secure boot keys or delete existing one's from many systems. For me ... easy answer was to just outright disable secure boot and fast boot as they're just more aggravation than I'd want to deal with. Plus don't really think there's much value to secure boot anyway.

So who approves of who's trusted ? The person who owns the pc if equipped with the appropriate skillset or adequate google-fu. Some system's don't allow secure boot to be disabled in the firmware period ie: ARM.

Lol you really want a secure system with or w/o secure boot enabled. Follow these simple steps.

1. Overwrite any M$ OS's on the pc.

and

2. Install any ( ya can almost choose em at random and be better off. smile ) gnu/Linux distro.

3. Mission accomplished. smile

Apologizes to Hoas ... am getting way off topic here. For sure move or delete this sucker fellow nixer. If the offtopicness is annoying you.

Last edited by BLizgreat! (2015-10-26 16:48:02)

Offline

#15 2015-10-26 20:28:11

Horizon_Brave
Operating System: Linux-Nettrix
Registered: 2015-10-18
Posts: 1,473

Re: Convert your BunsenLabs system to UEFI booting

I'm sorry didn't mean to hi-jack the thread... I appreciate the heck out of the responses though! If it's ok, I can make a new thread about this

Last edited by Horizon_Brave (2015-10-26 20:28:36)


"I have not failed, I have found 10,000 ways that will not work" -Edison

Offline

#16 2015-10-27 03:39:58

BLizgreat!
Resident Babbler - vll!
Registered: 2015-10-03
Posts: 779

Re: Convert your BunsenLabs system to UEFI booting

It's a forum ... purpose of which is to discuss, so if inclined for sure start a new thread(s). smile

Offline

#17 2016-03-31 10:26:22

cloverskull
Member
Registered: 2015-10-01
Posts: 193

Re: Convert your BunsenLabs system to UEFI booting

Hey HOAS, just wanted to say kudos to you for this write-up. It was a pain in the neck but now things are functioning well. A couple things I noticed:

- Booting the live iso and partitioning from the CLI was the simplest solution. Code to follow [1]
- I created the partitions manually and then booted the installer. The installer didn't like the UEFI partition and I couldn't mount it, so I still had to manually mount the partition after the install completed in the persistent environment and update the fstab. Just wanted to let the thread no so people don't get too hung up on getting it right in the installer.

[1] First, do a

lsblk

to make sure you're partitioning the correct device (/dev/sda in this case). Then:

sgdisk -Z /dev/sda -o /dev/sda -a 2048
sgdisk -n 1:0:+512M -t 1:ef00 -c 1:"EFI"  /dev/sda
sgdisk -n 2:0:+100M -t 2:ef02 -c 2:"BIOS" /dev/sda
sgdisk -n 3:0:+4G   -t 3:8200 -c 3:"SWAP" /dev/sda
sgdisk -n 4:0:0     -t 4:8300 -c 4:"HOME" /dev/sda

Offline

#18 2016-04-05 15:10:24

AndyMender
Member
From: Reincarnated in the UK :)
Registered: 2016-04-01
Posts: 49
Website

Re: Convert your BunsenLabs system to UEFI booting

One of the simplest ways to circumvent the UEFI requirement, at least on a MacBook (which by the by has a crappy EFI implementation), is to install from a current Debian Stable netinstall .iso image and apply the BunsenLabs install script from GitHub (available from main BL website).

Works like a charm and thanks to it I now have a perfectly stable installation of BunsenLabs on my old MacBook 5.1 smile.


In a GNU/Linux daze since forever. Hail to Debian and Arch!

Offline

#19 2016-04-18 22:54:34

Horizon_Brave
Operating System: Linux-Nettrix
Registered: 2015-10-18
Posts: 1,473

Re: Convert your BunsenLabs system to UEFI booting

Kind of a random question,  but what is stopping te  Ma' Deb team from giving their Live image UEFI boot capabilities?  I just recently installed Ma' Deb 's netinstall to Virtbox, and I got the UEFI boot, working pretty flawlessy.  I even did it through manual setup, and it worked like a charm. So what's their reasoning, and where's  the hesitation for them coming from?


"I have not failed, I have found 10,000 ways that will not work" -Edison

Offline

#20 2016-04-18 23:29:43

pvsage
Internal Affairs
Registered: 2015-09-29
Posts: 1,433

Re: Convert your BunsenLabs system to UEFI booting

^ Debian's definition of "stable", which happens to agree with the wiktionary definition:
https://en.wiktionary.org/wiki/stable#Adjective
UEFI apparently wasn't available for the Live ISO when Jessie entered its freeze shakedown.


Be excellent to each other, and...party on, dudes!
BunsenLabs Forum Rules
Tending and defending the Flame since 2009

Offline

#21 2016-04-19 06:18:06

Head_on_a_Stick
Moderator
From: London
Registered: 2015-09-29
Posts: 7,383
Website

Re: Convert your BunsenLabs system to UEFI booting


"The first principle is that you must not fool yourself - and you are the easiest person to fool" — Richard Feynman

Forum Rules   •   How to report a problem   •   bunsenlabs(7)

Offline

#22 2016-06-02 13:16:24

bonbonboi
Member
Registered: 2016-02-18
Posts: 48

Re: Convert your BunsenLabs system to UEFI booting

Hello, is it necessary to flag the esd partition with boot flag? I think boot flag is just necessary for mbr booting since EFI boot process doesn't refer to code in the MBR, and it normally doesn't use code in the boot sector of a partition  roll

Offline

#23 2016-06-02 15:41:59

Head_on_a_Stick
Moderator
From: London
Registered: 2015-09-29
Posts: 7,383
Website

Re: Convert your BunsenLabs system to UEFI booting

bonbonboi wrote:

Hello, is it necessary to flag the esd partition with boot flag?

Well, the EFI system partition should have the "EF00" GUID partition code in order for it to be identified by the motherboard.

In gparted, a partition of type EF00 will be marked with the flags boot,esp

These are merely gparted's abstracted way of referring to the partition type, you are correct to say that a "boot flag" (in the most traditional sense) is not needed but unless "boot,esp" shows in the flags section in gparted the EFI system partition will not be detected.

I would recommend using this command to show your partition table:

sudo parted -l

"The first principle is that you must not fool yourself - and you are the easiest person to fool" — Richard Feynman

Forum Rules   •   How to report a problem   •   bunsenlabs(7)

Offline

#24 2016-06-02 23:41:00

bonbonboi
Member
Registered: 2016-02-18
Posts: 48

Re: Convert your BunsenLabs system to UEFI booting

hhh wrote:

Can the system boot Ubuntu? Install their mini.iso and you can build Bunsenlabs on top of that. I could create a HowTo.

What do you mean?  of course it boots any Linux

Offline

#25 2016-06-03 00:00:03

hhh
TESTING!!!!!!!
Registered: 2015-09-17
Posts: 4,340
Website

Re: Convert your BunsenLabs system to UEFI booting

@bonbonboi,

Well, not Debian Live or BL!

Maybe I'm misunderstanding you. Better we move this to it's own support thread instead of hijacking this HowTo.

https://forums.bunsenlabs.org/viewtopic.php?id=2045

Offline

Board footer

Powered by FluxBB