The officially official Devuan Forum!

You are not logged in.

#1 2020-06-25 14:48:58

jdev
Member
Registered: 2020-06-09
Posts: 22  

How to boot the minimal-live from USB?

I can't boot the minimal-live from USB.

I dd-ed it on a USB stick:

Device     Boot Start    End Sectors  Size Id Type
/dev/sdd1  *       64 940031  939968  459M 17 Hidden HPFS/NTFS

But the stick isn't bootable with my UEFI-BIOS.

No problems with the desktop-live, on the other hand:

Device Boot Start     End Sectors  Size Id Type
/dev/sdd1   *       64 2366367 2366304  1.1G  0 Empty
/dev/sdd2          588    3467    2880  1.4M ef EFI (FAT-12/16/32)

It can be booted, but seems to have a different structure.

How do I get a bootable minimal-live?

Offline

#2 2020-06-25 15:12:21

HevyDevy
Member
Registered: 2019-09-06
Posts: 358  

Re: How to boot the minimal-live from USB?

How do you clear the usb stick before you dd the iso?

Try below and see if works.

sudo wipefs --all /dev/sdX

sudo gdisk /dev/sdX

choose option X for expert menu then Z to Zap

Zap (destroy) the GPT data structures and exit. Use this option if you want to repartition a GPT disk using  fdisk  or
              some  other GPT-unaware program.  You'll be given the choice of preserving the existing MBR, in case it's a hybrid MBR
              with salvageable partitions or if you've already created new MBR partitions and want to erase the remnants of your GPT
              partitions.  If  you've  already  created  new MBR partitions, it's conceivable that this option will damage the first
              and/or last MBR partitions! Such an event is unlikely, but could occur if your new MBR partitions overlap the old  GPT
              data structures.

Last edited by HevyDevy (2020-06-25 15:17:29)

Offline

#3 2020-06-25 15:17:58

jdev
Member
Registered: 2020-06-09
Posts: 22  

Re: How to boot the minimal-live from USB?

HevyDevy wrote:

How do you clear the usb stick before you dd the iso?

Not at all, dd overwrites all contents.

Offline

#4 2020-06-25 15:23:44

jdev
Member
Registered: 2020-06-09
Posts: 22  

Re: How to boot the minimal-live from USB?

I can boot on an old PC with non-UEFI BIOS, so it seems minimal-live isn't prepared for UEFI-BIOS?

Offline

#5 2020-06-25 15:32:00

HevyDevy
Member
Registered: 2019-09-06
Posts: 358  

Re: How to boot the minimal-live from USB?

The usb you are using might have an invalid signature.

What is the output of sudo wipefs /dev/sdX

sdX being your usb drive etc

Offline

#6 2020-06-25 16:41:06

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

Re: How to boot the minimal-live from USB?

The minimal-live is not set up to boot uefi. If you have another linux set up on the machine, you can boot the minimal-live on usb from grub command-line. It's also possible to install it as is and use the first linux to boot this one.

If you want this to be the main or only linux, you would need to install grub-efi-amd64 before you run refractainstaller.

If you don't have another linux to boot this, it might be possible to do it with two usb sticks - one with desktop-live to get to a grub command line and one with the minimal live. I didn't try that.

Press c at grub boot menu to get to command prompt and enter the following commands.

set root=(hd0)     # Your motherboard might call it hd1. Tab-complete will help you.
linux /live/vmlinuz boot=live username=devuan
initrd /live/initrd.img
boot

Offline

#7 2020-06-25 16:59:16

jdev
Member
Registered: 2020-06-09
Posts: 22  

Re: How to boot the minimal-live from USB?

fsmithred wrote:

The minimal-live is not set up to boot uefi.

That's what I figured by now.

fsmithred wrote:

If you have another linux set up on the machine, you can boot the minimal-live on usb from grub command-line.

Thanks for the hint, but this is a pain in the ass.

Is there a script or documentation on how to create an iso image? I can mount iso9660 on a different machine and could take the boot and efi directory of the desktop-live and the live directory of the minimal-live to create a minimal-live that boots with uefi.

I have to edit boot/grub/grub.cfg, of course. (And I don't know about efiboot.img.)

Offline

#8 2020-06-25 17:42:01

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

Re: How to boot the minimal-live from USB?

Look at the xorriso command around line 1078 - https://gitea.devuan.dev/devuan/refract … tasnapshot

Mount the iso, rsync copy it to a different directory, add the efi files, run xorriso. I don't think it's less pain in the ass to do it that way. Quite the opposite.

Also easier than explaining how to make an iso is to make one, which I am doing right now. I'll let you know if it boots and where you can download it.

Offline

#9 2020-06-25 18:30:24

jdev
Member
Registered: 2020-06-09
Posts: 22  

Re: How to boot the minimal-live from USB?

Well, I seem to have almost made it. My new iso image boots ... but instead of the grub menu I immediately end up in a grub command line.

Offline

#10 2020-06-25 18:39:59

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

Re: How to boot the minimal-live from USB?

This one boots uefi:
https://get.refracta.org/files/experime … l-live.iso

sha256sum:

8655c89c68a454458e3d9ea1c2e0b266315f72a2f81f6e043309a4d334d0a893  devuan_beowulf_3.0.0_amd64_uefi_minimal-live.iso

Edit: I didn't modify the grub menu, so it does not have the same choices as the normal minimal-live. The first choice is the same.

Sounds like you didn't make a grub.cfg.

Offline

#11 2020-06-25 20:00:54

jdev
Member
Registered: 2020-06-09
Posts: 22  

Re: How to boot the minimal-live from USB?

fsmithred wrote:

This one boots uefi:

It does. Thank you very much.

fsmithred wrote:

Sounds like you didn't make a grub.cfg.

I actually did.

For test purposes, I just changed the grub.cfg of your image, xorriso-ed it and this new iso image still boots, so it seems that creating the iso wasn't my problem.

I thought that the isolinux directory is only for non-UEFI legacy booting, but when deleting it, grub ends up in its command line. There is one reference to isolinux in grub's boot loader (/isolinux/isolinux.cfg).

Offline

#12 2020-06-25 20:22:13

jdev
Member
Registered: 2020-06-09
Posts: 22  

Re: How to boot the minimal-live from USB?

Indeed!

You can delete everything in /isolinux but isolinux.cfg (and even everything in isolinux.cfg) in order to get grub's menu.

Offline

#13 2020-06-25 20:26:20

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

Re: How to boot the minimal-live from USB?

jdev wrote:

Indeed!

You can delete everything in /isolinux but isolinux.cfg (and even everything in isolinux.cfg) in order to get grub's menu.

Yeah, grub looks for isolinux.cfg just to find the right location. It doesn't care what's inside it. I forgot about that.

Offline

#14 2022-08-05 02:48:08

auanta
Member
Registered: 2022-08-03
Posts: 45  

Re: How to boot the minimal-live from USB?

Writing to confirm for anyone else out there that in 2022 the minimal-live still does not boot on eufi, as I tried on different machines. It will show the boot menu but you can't actually do anything, hitting enter on any of the options results in errors such as "you need to load a kernel first".

Last edited by auanta (2022-08-05 03:24:42)


Devuan GNU/Linux, the sysadmin secret sauce
> "I use Hyperbola btw" my favorite BSD wink

Disclaimer: If I give you any technical advice, always double check it, because even though I used GNU/Linux many years, I'm still learning, just like you. I try to help, but I could be wrong! Empower yourself!

Offline

#15 2022-08-05 02:51:21

golinux
Administrator
Registered: 2016-11-25
Posts: 3,137  

Re: How to boot the minimal-live from USB?

It might boot UEFI though.  wink

couldn't resist . . .

Offline

#16 2022-08-05 05:08:25

auanta
Member
Registered: 2022-08-03
Posts: 45  

Re: How to boot the minimal-live from USB?

golinux wrote:

It might boot UEFI though.  wink

couldn't resist . . .

I don't get it, but now having also tried the desktop live I have the same problem so I'll have to open a new thread, possibly I have an unrelated issue


Devuan GNU/Linux, the sysadmin secret sauce
> "I use Hyperbola btw" my favorite BSD wink

Disclaimer: If I give you any technical advice, always double check it, because even though I used GNU/Linux many years, I'm still learning, just like you. I try to help, but I could be wrong! Empower yourself!

Offline

#17 2022-08-05 09:27:12

etech
Member
From: France - South West
Registered: 2022-03-13
Posts: 23  

Re: How to boot the minimal-live from USB?

On my machines, I always disable 'Secure Boot' before installing a Linux Distro. Is it the reason why it failed for you?

Offline

#18 2022-08-05 13:15:54

auanta
Member
Registered: 2022-08-03
Posts: 45  

Re: How to boot the minimal-live from USB?

etech wrote:

On my machines, I always disable 'Secure Boot' before installing a Linux Distro. Is it the reason why it failed for you?

No, I don't have secure boot (actually one of them has coreboot) and I had installed other Linux distros on them previously without any problems.


Devuan GNU/Linux, the sysadmin secret sauce
> "I use Hyperbola btw" my favorite BSD wink

Disclaimer: If I give you any technical advice, always double check it, because even though I used GNU/Linux many years, I'm still learning, just like you. I try to help, but I could be wrong! Empower yourself!

Offline

#19 2022-08-05 14:20:36

golinux
Administrator
Registered: 2016-11-25
Posts: 3,137  

Re: How to boot the minimal-live from USB?

auanta wrote:
golinux wrote:

It might boot UEFI though.  wink

couldn't resist . . .

I don't get it . . .

I was poking at your typo.

Offline

Board footer