Title here
Summary here
File Formats Containing File Systems:
.cpio.gz
.img
.iso
File System Formats:
.cpio.gz
:.img
:20-04-rootfs
is a folder containing the Ubuntu file system and should also have the EVL library.rm rros.img
dd if=/dev/zero of=rros.img bs=1M count=2048
mkfs.ext4 rros.img
mkdir rros-mount
mount rros.img rros-mount/
cp -rfp 20-04-rootfs/* rros-mount/
umount rros-mount/
e2fsck -f rros.img
resize2fs -M rros.img
qemu-img resize
can modify the size of an .img
file. However, adjusting the size to 8GB previously did not work because it changed the entire disk size without recognizing the disk partition format. Therefore, the disk partition size needs to be rebuilt.qemu-size
.fdisk /dev/vda2
.vda2
).sda
in the blog should be changed to vda
.