You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mkdir data
cd data
echo"hello world">> text.txt
curl -o image.png https://images.unsplash.com/photo-1649181817796-6d1ec9524754?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=683&q=80
cd ..
zip data.zip ./data/*# ir e voltar com o arquivo
dd if=data.zip of=data.iso
dd if=data.iso of=data2.zip
# criando uma iso com o arquivo text.txt e image.png dentro
dd if=/dev/zero of=test.iso bs=1M count=20
sudo losetup /dev/loop10 test.iso
sudo mkfs.ext4 /dev/loop10
sudo mount /dev/loop10 /mnt
cp ./data/* ./mnt
cd ..
sudo umount -R ./mnt
sudo losetup -d /dev/loop
Usando C para gerar esse .iso randômico (como usando o /dev/random)