Skip to content

document how to partition a disk - #117

Merged
mika merged 1 commit into
grml:masterfrom
anarcat:patch-1
Sep 24, 2026
Merged

mika merged 1 commit into
grml:masterfrom
anarcat:patch-1

Conversation

@anarcat

@anarcat anarcat commented Sep 21, 2026

Copy link
Copy Markdown
Contributor

This is rather silly, but I keep forgetting how to format a disk just so. Having it built into grml2usb would be the best, but the next best thing is having an example in the manual.

This was tested on a Framework 12 laptop running UEFI.

@mika mika left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, thanks - ping @zeha :)

Comment thread grml2usb.8.adoc Resolved
This is rather silly, but I keep forgetting how to format a disk *just* so. Having it built into grml2usb would be the best, but the next best thing is having an example in the manual.

This was tested on a Framework 12 laptop running UEFI.

@mika mika left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lovely, thanks!

@zeha

zeha commented Sep 23, 2026

Copy link
Copy Markdown
Member

I dunno about the esp on part, but if it works lets do it.

@anarcat

anarcat commented Sep 23, 2026

Copy link
Copy Markdown
Contributor Author

I dunno about the esp on part, but if it works lets do it.

it's necessary for the disk to boot on a UEFI system. on my Framework 12, it wouldn't even detect the drive as bootable without that flag.

the real question is whether set boot on is required, because grub gives me all sorts of warnings about MBR when i follow those two commands. so it's possible legacy doesn't work and set boot on is the one that doesn't do anything!

@mika
mika merged commit 541398a into grml:master Sep 24, 2026
0 of 2 checks passed
@anarcat
anarcat deleted the patch-1 branch October 29, 2026 00:53
@anarcat

anarcat commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor Author

it's necessary for the disk to boot on a UEFI system. on my Framework 12, it wouldn't even detect the drive as bootable without that flag.

looks like i was wrong about this. i've been struggling to find a full grml2usb invocation that builds a thumb drive that the FW12 actually boots, the stuff I documented here doesn't actually work on this thumb drive.

so it's either a faulty thumb drive, or the instructions here are wrong. but the thumbdrive is good, because it does boot when i flash it with:

dd bs=4M status=progress conv=fdatasync if=grml-full-2026.09-amd64.iso of=/dev/sda

here are the two commands I ran:

parted /dev/sda --script mklabel gpt mkpart P1 fat32 0 100% set 1 boot on set 1 esp on
grml2usb --format grml-full-2026.09-amd64.iso /dev/sda1

i also tried:

grml2usb --format --bootloader=syslinux grml-full-2026.09-amd64.iso /dev/sda1
grml2usb --format --skip-mbr grml-full-2026.09-amd64.iso /dev/sda1
grml2usb --format --bootloader=efi grml-full-2026.09-amd64.iso /dev/sda1

none of those boot.

@mika

mika commented Oct 29, 2026

Copy link
Copy Markdown
Member

@anarcat ah, just noticed that one tricky issue I also stumbled upon is that a dd-ed ISO leaves ISO9660/GPT stuff behind :-/ So make sure to wipe old signatures (e.g. wipefs -a /dev/sda), before using grml2usb.

What about:

parted /dev/sda --script mklabel msdos mkpart primary fat32 1MiB 100% set 1 boot on
grml2usb --verbose --format grml-full-2026.09-amd64.iso /dev/sda1

Does this work for you then? 🤔

@anarcat

anarcat commented Oct 29, 2026

Copy link
Copy Markdown
Contributor Author

that shows up in the bootloard, but failed to boot:

error: invalid arch-independent ELF magic
Unknown command `normal`.
E: Could not find root device (for /conf/bootfile_grmlfullamd64_...)
error: invalid archi-indenendent ELF magic.
grub rescue>

copied by hand, might be typos.

@anarcat

anarcat commented Oct 29, 2026

Copy link
Copy Markdown
Contributor Author

@anarcat ah, just noticed that one tricky issue I also stumbled upon is that a dd-ed ISO leaves ISO9660/GPT stuff behind :-/ So make sure to wipe old signatures (e.g. wipefs -a /dev/sda), before using grml2usb.

THAT ACTUALLY WORKED!

should we add the wipefs step here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants