If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.
I am looking to resize image file I dumped through RKAndroidtools 2.3 . (discussed here)
Please tell me which method is appropriate because using dd in linux, some says you have to create raw image and then clone current android images files into it. Some case you can use directly resizefs directly. Even there some says that simply add desired MBs of space to image using dd command and append operator.
Anyone who have done this please suggest most appropriate method.
Well, I want to increase system.img size as well as userdata.img size.
That also means that have to decrease size of user.img .
Actually I have mk8094K tv stick with only 1024MB of internal storage however user.img ie. internal SD card image is 5GB+. Using Rk3xxx firmware tool , I can edit parameter file.
Now what I need is that resize affected partitions ie.
system.img (make it 1.5 GB from 768 MB)
userdatea.img (make it 4.5 GB from 1GB)
user.img (reduce to about 1.3GB from 5.2 GB (approx))
Now as you said, we basically appending 128mb space to system.img using dd
Code:
dd if=/dev/zero bs=1M count=128 >> system.img
Then check file system integrity :
Code:
e2fsck -f system.img
Then resize filesystem
Code:
resize2fs system.img
I will try it and let you,however, what shrinking size of user.img , I guess I can simply create raw image of desired size, copy content of current user.img into it by mounting as loopback device. What do you advice ?
We process personal data about users of our site, through the use of cookies and other technologies, to deliver our services, personalize advertising, and to analyze site activity. We may share certain information about our users with our advertising and analytics partners. For additional details, refer to our Privacy Policy.
By clicking "I AGREE" below, you agree to our Privacy Policy and our personal data processing and cookie practices as described therein. You also acknowledge that this forum may be hosted outside your country and you consent to the collection, storage, and processing of your data in the country where this forum is hosted.
Comment