A single sector Linux bootloader that can handle initrd
Switch branches/tags
Nothing to show
Clone or download
owenson Merge pull request #6 from marler8997/fixHddlba
fix bug: hddLBA should be 32-bit
Latest commit e0b7921 May 29, 2018
Failed to load latest commit information.
LICENSE Initial commit Oct 8, 2014
README.md upd Oct 8, 2014
bsect.asm fix bug: hddLBA should be 32-bit May 28, 2018
build.sh fixed initrd load bug. Aug 21, 2016
config.inc initial Oct 8, 2014
gdbscr license rdme Oct 8, 2014



A x86 single sector Linux bootloader that can handle initrd. This bootloader expects to find the kernel immediately after it at sector 1, followed immediately by the initrd. Any partitions must start after this.


  • No partition table needed
  • Easy to convert to an obfuscated loader (think anti-forensics for crypted disks)
  • Easy to modify for a custom experience
  • Useful in embedded devices


To build, you need to:

  1. Edit build.sh and set paths to your kernel + initrd
  2. Edit config.inc to set your kernel cmd line (keep it <15chars for the moment, disabling debug makes more room)
  3. Run build.sh
  4. Now you can dd this onto your disk, if you have a partition table already, then do not overwrite bytes 446-510 on the first sector (so use dd twice).

Your system should now boot with the new kernel.


You can use qemu to boot the image by running:

qemu-system-x86 disk

and you can also connect the VM to gdb for actual debugging. There's an included gdb script to get you started.