Copying more files to an existing rootfs image

  1. Check rootfs image
    e2fsck -f myimage.ext2
  2. Resize it
    resize2fs myimage.ext2 400M
  3. mount it
    mkdir myimage
    mount myimage.ext2 myimage
  4. copy new content
    cp newcontent myimage
This entry was posted in Linux commandline and tagged , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *