Skip to content

No GPT/partition parser: cannot coexist on a partitioned real disk #428

Description

@eKisNonos

There is no GPT or MBR partition-table parser anywhere (repo-wide grep finds only READMEs); the system reads and writes raw absolute LBAs. Persistence is whole-disk: fs/blockfs/format.rs:24 writes a crypto-block superblock at a computed header LBA and stores nodes as raw LBAs, and hardware/block_device/select.rs picks NVMe/AHCI/VirtioBlk by nonzero capacity.

So NONOS assumes it owns the entire disk. On a real machine with a partitioned drive it cannot read the EFI System Partition or any FAT/ext4/NTFS, cannot boot from or coexist with a partitioned disk, and blockfs would either fail geometry validation or overwrite the partition layout at LBA 0.

Widening: add a read-only GPT parser plus a partition-scoped LBA remap so blockfs lives inside a partition instead of clobbering the disk. This is the prerequisite for installing NONOS alongside another OS or onto a normal disk.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions