Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2020
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  2. DO NOT COPY ANY OF THE LINES DIRECTLY (may not work) Also, use the proper undercase capitalization, word just capitalized the first letter of each line. NEVER try to boot/mount a mounted/booted filesystem, it will corrupt the file.
  3. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  4. mkdir tmp
  5. mkdir tmp/<last name here>
  6. apt install p7zip-full
  7. 7z x fun.vdi.7z
  8. cp fun.vdi /root/tmp/
  9. modprobe nbd max_part=15
  10. ls -l /dev/nbd*
  11. ^ That command should return a list of NBDs. Check for nbd existence if getting end of file errors.
  12. apt install qemu-utils
  13. alias c='qemu-nbd -c /dev/nbd0 /root/tmp/fun.vdi'
  14. type the command <c>
  15. alias m='mount /dev/nbd0p1 /root/tmp/<last name here>'
  16. type the command <m>
  17. ls /root/tmp/<last name here>
  18. ^ there should be a filesystem there.
  19. alias u='umount /root/tmp/roper'
  20. type the command <u>
  21. alias d='qemu-nbd -d /dev/nbd0'
  22. type the command <d>
  23. alias b='qemu-system-i386 /root/tmp/fun.vdi -m 512'
  24. apt install qemu-system-x86
  25. type the command <b>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement