From 46ce42e9b13ce209c8c971084cfc849a83848270 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Mon, 5 Jul 2021 16:48:07 +0200 Subject: Added PCI, MBR, bugs and fixes --- run | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'run') diff --git a/run b/run index feaee4a..4142232 100755 --- a/run +++ b/run @@ -87,7 +87,10 @@ build() { PART="p1" $SUDO parted -s "$DEV" mklabel msdos mkpart primary ext2 32k 100% -a minimal set 1 boot on $SUDO mke2fs -b 1024 -q "$DEV$PART" - $SUDO dd if=build/boot.bin of="$DEV" conv=notrunc status=none + + # Write bootsector but jump over partition table (at 440 to 510) + $SUDO dd if=build/boot.bin of="$DEV" bs=1 count=440 conv=notrunc status=none + $SUDO dd if=build/boot.bin of="$DEV" bs=1 skip=510 seek=510 conv=notrunc status=none # Mount disk and copy files #mkdir -p mnt/ -- cgit v1.2.3