Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to actually describe MBR partition table? #889

Open
RadxaYuntian opened this issue Nov 21, 2024 · 0 comments
Open

How to actually describe MBR partition table? #889

RadxaYuntian opened this issue Nov 21, 2024 · 0 comments
Labels
question Not a bug or issue, but a question asking for help or information

Comments

@RadxaYuntian
Copy link

Amlogic based devices must use MBR partition table, as their bootloader will overlap with GPT partition table. However, when I used type = "table", I got the infamous read-only error. What option do I have here?

(Yes this layout is mirroring GPT EFI layout because U-Boot will boot EFI bootloader found on a MBR disk.)

{
  disko.devices = {
    disk = {
      main = {
        device = "/dev/disk/by-id/TARGET-DEVICE";
        type = "disk";
        content = {
          type = "table";
          format = "msdos";
          partitions = [
            {
              name = "ESP";
              start = "16M";
              end = "516M";
              bootable = true;
              content = {
                type = "filesystem";
                format = "vfat";
                mountpoint = "/boot";
              };
            }
            {
              name = "root";
              start = "516M";
              end = "100%";
              content = {
                type = "filesystem";
                format = "btrfs";
                mountpoint = "/";
                mountOptions = [ "compress=zstd" ];
              };
            }
          ];
        };
      };
    };
  };
}
@iFreilicht iFreilicht added the question Not a bug or issue, but a question asking for help or information label Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Not a bug or issue, but a question asking for help or information
Projects
None yet
Development

No branches or pull requests

2 participants