!oNSIfazDqEcwhcOjSL:matrix.org

disko

368 Members
disko - declarative disk partitioning - https://github.com/nix-community/disko93 Servers

Load older messages


SenderMessageTime
13 Dec 2023
@matthewcroughan:defenestrate.itmatthewcroughanamazing18:28:15
@matthewcroughan:defenestrate.itmatthewcroughan lassulus: after the past 3-4 hours of debugging, it turns out that the raspberry pi 3 needs the fat32 partition to be the first partition which is impractical to work around with disko atm 20:27:32
@matthewcroughan:defenestrate.itmatthewcroughanditching gpt is the only sensible way, even with hybrid mbr it's just totally messed up 20:27:50
@matthewcroughan:defenestrate.itmatthewcroughansgdisk --hybrid puts the protective mbr (0xee) as the first partition, but the pi's firmware (bootcode.bin) doesn't like that20:28:58
@lassulus:lassul.uslassulusThere is priority20:31:09
@lassulus:lassul.uslassulusAnd you shouldn't put the protective mbt first20:31:37
@lassulus:lassul.uslassulus* And you shouldn't put the protective mbr first20:31:52
@matthewcroughan:defenestrate.itmatthewcroughansgdisk -h seems to do that for us20:31:55
@lassulus:lassul.uslassulus-h takes a mapping?20:32:09
@matthewcroughan:defenestrate.itmatthewcroughanomg..20:34:08
@matthewcroughan:defenestrate.itmatthewcroughan

ou may optionally specify a final partition "EE" to indicate that the EFI GPT (type 0xEE) should be placed last in the table, otherwise it will be placed first

20:34:17
@matthewcroughan:defenestrate.itmatthewcroughan *

You may optionally specify a final partition "EE" to indicate that the EFI GPT (type 0xEE) should be placed last in the table, otherwise it will be placed first

20:34:20
@matthewcroughan:defenestrate.itmatthewcroughanIt was even in the PR I was trying to refactor, clearly my mind is somewhere else 20:34:30
@matthewcroughan:defenestrate.itmatthewcroughan
Command (m for help): M

Entering protective/hybrid MBR disklabel.

Command (m for help): p
Disk /dev/sda: 14.89 GiB, 15987638272 bytes, 31225856 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: 0x00000000

Device     Boot Start     End Sectors    Size Id Type
/dev/sda1        2048   63487   61440     30M  c W95 FAT32 (LBA)
/dev/sda2       63488 6289407 6225920      3G 83 Linux
/dev/sda3           1    2047    2047 1023.5K ee GPT
20:53:22
@matthewcroughan:defenestrate.itmatthewcroughanyep, that put it on the end 20:53:25
@matthewcroughan:defenestrate.itmatthewcroughan Okay, looks like it's futile anyway lassulus although U-Boot works now, it behaves differently when the disk is GPT and ignores MBR, so hybrid breaks it a little bit. 21:24:21
@matthewcroughan:defenestrate.itmatthewcroughanI'm going to be able to work around it, but hybrid is very confusing 21:24:50
@lassulus:lassul.uslassulusYeah hybrid is weird21:25:05
@lassulus:lassul.uslassulusSo you think msdos would be better?21:25:15
@matthewcroughan:defenestrate.itmatthewcroughanI think it'd be really great if disko supported both, because it allows you to reproduce things you need to support embedded21:25:35
@matthewcroughan:defenestrate.itmatthewcroughanotherwise, you're forced to deal with hybrid which is a middle/purgatory that is difficult to be in, new territory21:25:51
@matthewcroughan:defenestrate.itmatthewcroughanyou can easily follow raspberry pi docs if you have access to the older msdos tools, otherwise you run into weird edge cases21:26:19
@matthewcroughan:defenestrate.itmatthewcroughan * you can easily follow raspberry pi docs if you have access to the older msdos tools, otherwise you run into weird edge cases with hybrid21:26:21
@lassulus:lassul.uslassulusAlright. We can add an msdos type and then deprecate the legacy type21:26:24
@lassulus:lassul.uslassulus* Alright. We can add an msdos type and then deprecate the legacy table type21:26:51
@lassulus:lassul.uslassulussgdisk can't do msdos and the other tools suck21:31:29
@matthewcroughan:defenestrate.itmatthewcroughanit's a nightmare, a real nightmare21:31:41
@lassulus:lassul.uslassulusA google search just revealed http://www.rodsbooks.com/gdisk/mbr2gpt.html#gpt2mbr21:31:55
@matthewcroughan:defenestrate.itmatthewcroughan If I want to do hybrid, I actually have to recompile u-boot to disable EFI mode, because it's entering EFI mode due to the existence of gpt on disk. 21:32:03
@lassulus:lassul.uslassulusMaybe we can do an msdos type with more constraints21:32:15

Show newer messages


Back to Room ListRoom Version: 10