The officially official Devuan Forum!

You are not logged in.

#1 2022-02-24 08:18:18

terryc
Member
Registered: 2018-06-27
Posts: 5  

[SOLVED] How to blow away efi partition using live-install iso?

A previous attempt to install Devuan chimaera on new, clean hardware  crashed.

As this system has a amdgpu installed installed it isn't possible to simple attempt a fresh install as the graphics are scambled and unreadable. Previously, i could swap out the gpu to something non-amd, but I have no other gpu/videos ion stock and it would be about a fortnight delay and rather expensive.

Unfortunatly, there is nothing of the kernel.image.vmlinuz installed so I can not follow the set-root/linux/initrd/boot proceedure and I know of no way of moving file via the grub prompt.

So, I'm trying to get a system installed via the devuan-live iso install script.
The problem is an efi boot partition and once again, efi booting will not work.
So I need to wipe out the efi-boot setting and hopefully replace it with a legacy-grub boot.
Unfortunately, repeated attempts to do this alway reach a stage where it wants to set an efit boot. at which point i exit and try again.

Can anyone give me some tips to overcome this?  T.I.A.

Offline

#2 2022-02-24 09:47:50

hevidevi
Member
Registered: 2021-09-17
Posts: 230  

Re: [SOLVED] How to blow away efi partition using live-install iso?

Depends on your bios settings i think. Do you have the bios set to boot via legacy mbr?

I dont quite understand what you need to do, you say here:

As this system has a amdgpu installed installed it isn't possible to simple attempt a fresh install as the graphics are scambled and unreadable

So are you looking to wipe the hard drive clean an install a new devuan chimaera system or no?

If you are looking to clear partitions on the drive and start again, use below command.

sudo sgdisk -Z /dev/sda

-Z, --zap-all   zap (destroy) GPT and MBR data structures

Last edited by hevidevi (2022-02-24 10:00:08)

Offline

#3 2022-02-24 10:02:04

Camtaf
Member
Registered: 2019-11-19
Posts: 408  

Re: [SOLVED] How to blow away efi partition using live-install iso?

Normally you just need to wipe the boot sectors of the disk - I do it using dd.

sudo dd if=/dev/zero of=dev/sda bs=4M count=1

Offline

#4 2022-02-24 11:05:06

terryc
Member
Registered: 2018-06-27
Posts: 5  

Re: [SOLVED] How to blow away efi partition using live-install iso?

Thank you for you ideas, but no go.
There is no bootable system on the SDDs/HDD and there is no sudo on a chimaera-live iso.
Unfortunately this HW ASUS B350 motherboard does not have a clear efi or legacy boot setting.

I had another go at an install with live iso, blowing all the previous install away and all I ended yo was GRUB being continually streamed across the screen, which required a power olf to clear it.

Offline

#5 2022-02-24 11:06:50

fsmithred
Administrator
Registered: 2016-11-25
Posts: 2,409  

Re: [SOLVED] How to blow away efi partition using live-install iso?

Are you using the minimal-live or the desktop-live iso? The desktop-live already has firmware-amd-graphics installed. If that doesn't work for you, I'd like to know, thanks. How new is your hardware?

Offline

#6 2022-02-24 12:37:17

rolfie
Member
Registered: 2017-11-25
Posts: 1,047  

Re: [SOLVED] How to blow away efi partition using live-install iso?

Can you specify your hardware exactly? It should be possible to install Chimaera per netinstall in efi mode. I would first just install the basic system without DE, make sure all drivers for the HW are present, and then add a DE. This approach should help to overcome all issues.

BTW: I have stumbled across an effect that Chimaera in efi mode does not mount the efivars on first real boot. You have to do that manually once I think, then it works.

rolfie

Last edited by rolfie (2022-02-24 12:38:16)

Online

#7 2022-02-24 14:03:38

Camtaf
Member
Registered: 2019-11-19
Posts: 408  

Re: [SOLVED] How to blow away efi partition using live-install iso?

Re UEFI installs, I had to create & mark a UEFI partition, before installing from the Devuan Live, (so maybe that was the problem).

Offline

#8 2022-02-24 14:54:40

fsmithred
Administrator
Registered: 2016-11-25
Posts: 2,409  

Re: [SOLVED] How to blow away efi partition using live-install iso?

Oh, no sudo. Then it's the minimal-live. Root password is toor and you should use 'su -' to get root, not just 'su' or else log in as root to begin with.

If a newer kernel is needed try one of the daedalus isos or try this iso with a backports kernel that I made for testing new hardware: https://get.refracta.org/files/experime … 0_2148.iso

Offline

#9 2022-02-24 18:33:56

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 3,125  
Website

Re: [SOLVED] How to blow away efi partition using live-install iso?

terryc wrote:

Can anyone give me some tips to overcome this?

Please stop posting vague, confusing descriptions. Instead post clear explanations of what you actually see.

Do not ask about XY problems. Instead simply state the actual issue, which in this case is that your AMD graphics are not working. UEFI has *nothing* to do with that and installing a non-UEFI system will not help. Please change the thread title to reflect this and help prevent further confusion and noise.

@fsmithred's suggestion to try a newer kernel might help. Brand new hardware might not be supported by chimaera's six month old kernel.

Unfortunately though the AMD graphics firmware hasn't been updated since 2021-08-18, even in ceres, so you might have to draw it directly from upstream:

apt install git
git clone https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git
cp -r linux-firmware/amdgpu /lib/firmware

Brianna Ghey — Rest In Power

Offline

#10 2022-02-25 04:19:57

terryc
Member
Registered: 2018-06-27
Posts: 5  

Re: [SOLVED] How to blow away efi partition using live-install iso?

I eventually 'solved it'/worked around it by continually bashing it to delete/clear a partition that was marked as efi boot. It took repeated starts of the desktop-live iso, then something clicked and I tried the  installer iso again and it went through.

Some how,when I first used the installer iso, it didn't actually install the basic system and the amd-firmware files, so when it came back to reboot/finish the install, it hung up with the scrambled amd graphics problem. At best. I could get a grub prompt which enabled me to see that there was no kernel, etc files.

The  problem then was that every time I tried the installer iso, it was scrambled graphics, which was why I was using attempting an install with the desktop-live, which also kept on failing.

The motherboard is an ASUS B550M-A and I expected it to be like the ASUS B350 which has a very clear bios setting of legacy or UEFI boot. Lucked out there with the new motherboard.  I've stuck with legacy boot as previous attempts to use UEFI boots have been repeatedly unsuccessful.

I usually stick with stable as this is my main/only "work" computer and I have tasks to carry out.
Went to backports  when the 'present" was a AMD RX 5700 XT gpu with dual 2K monitors. Really could have used that decades ago when crunching text/documents.

Any way, thanks everyone for their ideas. As usual, a solution is eventually arrived at..

Offline

Board footer