Skip to content

Instantly share code, notes, and snippets.

View imperzer0's full-sized avatar

ImperZer0 imperzer0

View GitHub Profile
@imperzer0
imperzer0 / resize_disk_image.md
Created September 6, 2022 18:55 — forked from joseluisq/resize_disk_image.md
How to resize a qcow2 disk image on Linux

How to resize a qcow2 disk image on Linux

This example takes olddisk.qcow2 and resizes it into newdisk.qcow2, extending one of the guest's partitions to fill the extra space.

1. qcow2 format

1.1. Verify the filesystems of olddisk.qcow2

@imperzer0
imperzer0 / create container
Last active September 13, 2022 06:30
filestorage typical environment configuration
#!/bin/bash
dd if=/dev/random of=filestorage_container bs=1M count=<megabytes>
mkfs.ext4 filestorage_container
sudo mount --mkdir filestorage_container storage/
ls -alshp storage/
sudo umount $(realpath filestorage_container)
@imperzer0
imperzer0 / fabricmod.tut.md
Last active February 7, 2024 20:49
Fabric mod tutorial