a guest Jun 16th, 2018 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. losetup -f
  2. losetup /dev/loop0 /home/tk/build/output/images/Armbian_5.46_Tinkerboard_Debian_stretch_next_4.14.47.img
  3. partprobe /dev/loop0
  4. mount /dev/loop0p2 /mnt/new-rootfs/
  5. wget -O /mnt/new-rootfs/etc/fstab
  6. losetup -f
  7. losetup /dev/loop1 /home/tk/OMV_4_Raspberry_Pi_2_3_3Plus.img
  8. partprobe /dev/loop1
  9. mkfs.ext4 -q -m 2 /dev/loop1p2
  10. tune2fs -o journal_data_writeback /dev/loop1p2
  11. mount /dev/loop1p2 /mnt/omv4/
  12. rsync -arltD --stats /mnt/new-rootfs/ /mnt/omv4
  13. chmod 755 /mnt/omv4
  14. dd if=/dev/zero of=/mnt/omv4/lala bs=1M || (sync ; rm /mnt/omv4/lala)
  15. umount /mnt/omv4/
  16. losetup -d /dev/loop1
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand