Skip to content

Instantly share code, notes, and snippets.

@displague
Created August 11, 2015 02:56
Show Gist options
  • Save displague/73fb564cffe06b0f3d88 to your computer and use it in GitHub Desktop.
Save displague/73fb564cffe06b0f3d88 to your computer and use it in GitHub Desktop.
apt-get update; apt-get -y install qemu-system-x86
dd if=/dev/zero of=fs bs=100M count=6
mkfs -t btrfs fs
mount fs -o compress=zlib /mnt
curl http://9front.org/iso/9front-4661.a15f0069aa9d.iso.bz2 | bunzip2 -c > /mnt/9front.iso
ip addr show
qemu-system-x86_64 -drive file=/dev/sda -cdrom /mnt/9front.iso -boot d -vnc :0
qemu-system-x86_64 -drive file=/dev/sda -m 512 -curses -vnc :0
# esc+2 quit
grub> ls
(hd0) (hd0,gpt2,plan3) (hd0,gpt2,plan2) (hd0,gpt2,plan1) (hd0,gpt2) (hd0,gpt1)
grub> set root=(hd0,gpt2,plan1)
grub> chainloader +1
grub> boot
# hmm, dead in the water
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment