Displaying 4 results from an estimated 4 matches for "create_partition_boot_sector".
2019 Apr 22
0
Installing syslinux on a purely virtual disk
...is also used by
the installer itself.
If you want to use a fixed SYSLINUX version you can use pre-patched
files. I tried that and got "ldlinux.sys" running but it failed to load
ldlinux.c32.
I used "syslinux_mbr" in "create_mbr" and made the partition bootable.
"create_partition_boot_sector" was modified to use "syslinux_bootsect"
with Sect1Ptr0 = 0x80 and Sect1Ptr1 = 0. The value 0x80 was chosen
because the plugin put the first file (ldlinux.sys) there.
"ldlinux.sys" itself was pre-patched by the official installer.
Therefore I created a compatible temporary...
2019 Apr 18
4
Installing syslinux on a purely virtual disk
I'm trying to add boot support to
https://github.com/libguestfs/nbdkit/tree/master/plugins/floppy
This NBD server plugin generates a completely virtual FAT filesystem
and partition table. Nothing is ever written to a file, and it must
run without anything needing to be root, loop mounting etc. Running
"syslinux --install <something>" is a non-starter.
So I've looked at
2018 Oct 28
0
[PATCH nbdkit 4/4] Add floppy plugin.
...stat *statbuf, size_t di, struct virtual_floppy *floppy);
+static int visit_file (const char *dir, const char *name, const struct stat *statbuf, size_t di, struct virtual_floppy *floppy);
+static int create_mbr (struct virtual_floppy *floppy);
+static void chs_too_large (uint8_t *out);
+static int create_partition_boot_sector (const char *label, struct virtual_floppy *floppy);
+static int create_fsinfo (struct virtual_floppy *floppy);
+static int create_fat (struct virtual_floppy *floppy);
+static void write_fat_file (uint32_t first_cluster, uint32_t nr_clusters, struct virtual_floppy *floppy);
+static int create_region...
2018 Oct 28
6
[PATCH nbdkit 0/4] Add floppy plugin.
Add nbdkit-floppy-plugin, “inspired” by qemu's VVFAT driver, but
without the ability to handle writes.
The implementation is pretty complete, supporting FAT32, LFNs, volume
labels, timestamps, etc, and it passes both ‘make check’ and ‘make
check-valgrind’.
Usage is simple; to serve the current directory:
$ nbdkit floppy .
Then using guestfish (or any NBD client):
$ guestfish --ro