Results 1 to 2 of 2

Thread: Adding files to a mounted system.img raw img Ubuntu

  1. #1
    Join Date
    Feb 2016
    Beans
    1

    Adding files to a mounted system.img raw img Ubuntu

    Hi All,

    Have successfully used all the tools and guide here (http://forum.xda-developers.com/show....php?t=2600364) to mount an RAW EXT4 .img from Android.

    However, while I have managed to get read/write access to the mounted raw partition (i.e. I can delete files) everytime I try to add a file (no matter how small) it claims there is no space available.

    Thinking this is a permission issue - any ideas? As far as I know I have full permissions.

    Process I've used to get permissions is to mount using instructions in the terminal

    simg2img system.img system.raw.img
    mkdir system_mnt
    mount -t ext4 -o loop system.raw.img system_mnt

    (above as per the thread instructions).
    then had to use sudo su to get chown on the mount point to add my user and group to the /system_mnt/ and also any specific folders underneath.

    Help appreciated (nb - have tried to search for answers without success)
    Last edited by deadflowr; February 15th, 2016 at 06:51 PM. Reason: resized font to standard/ fixed link

  2. #2
    Join Date
    Nov 2008
    Location
    Metro Boston
    Beans
    15,615
    Distro
    Kubuntu Development Release

    Re: Adding files to a mounted system.img raw img Ubuntu

    I believe the mounted image has a fixed size identical to the size of the image on the disk. You can try copying all the files to another location on your system, manipulating that, then building a new image. The easiest method to copy the entire disk is to use rsync:
    Code:
    cd ~
    mkdir linux_image
    rsync -av /path/to/system_image/ linux_image/
    If you ask for help, do not abandon your request. Please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •