aboutsummaryrefslogblamecommitdiffhomepage
path: root/content/2021-12-02-toying-with-virtio/build_ext2.sh
blob: 6e6bff814b27eb7eb193d88f886bccf6a3ba170c (plain) (tree)
1
2
3
4
5
6
7






                                           
#!/bin/bash

dd if=/dev/zero of=blk.ext2 bs=1M count=128
mkfs.ext2 blk.ext2
sudo mount -t ext2 -o loop blk.ext2 /mnt
echo world | sudo tee /mnt/hello
sudo umount /mnt