Mounting nandroid .img file as drive - myTouch 3G, Magic Android Development

Is there a possibility to directly mount for example data.img yaff2 partitions in windows or some sort of an application doing this (with GUI)?
Thanks

Related

[Q] please help! what can i do if i format all by mistake using CWM?

I have formatted my /boot /sdcard /system /cache ....everythings by mistake using CWM 3.0.0.5.
how can i do to copy my backup (i have it on my laptop) to sdcard and use CWM to restore it again?
thanks in advance for help
kittipol2 said:
I have formatted my /boot /sdcard /system /cache ....everythings by mistake using CWM 3.0.0.5.
how can i do to copy my backup (i have it on my laptop) to sdcard and use CWM to restore it again?
thanks in advance for help
Click to expand...
Click to collapse
In mounts and storage select mount USB storage. Plug your phone into your computer and it will pop up as USB storage and now you'll need to do a quick couple of folder creations as follows:
clockworkmod needs to be the root folder, inside that a folder called backup and then inside that put your backup (assuming you just have the folder for your backup and not the whole cascade of folders.
Once you've done that simply restore the backup and you're golden.
Also, thank you for posting this in the correct section!

ext, app2sd & strange behaviour

I have a complex problem i'm trying to get around to for month now. Maybe someone has a tip for me:
When installing a new ROM, there are always preinstalled programs turning up that are not part of the ROM. I assume those are on my SDCard because of the Apps2SD/Link2SD setups i have been running for awhile. Was still a bit wondering why they are turning up, because they are not "linked" (didnt reinstall apps2sd or link2sd), but they are available nevertheless ...
What remains is that i need to check/fix my apps2sd setup, but i cant access the linux partitions from my PC because of USB/cardreader problems..
Is there an app out there that lets me access (and maybe even change) my ext partitions content ? Commandline stuff is fine for me.
System: CM7 XT70, 16GB SD with SWAP and Ext3
Ps.: If i can even change to ext4 that way, that would be awesome.
One thing you can do is make an nandroid backup of the "SD Data" partition (that's what nandroid calls the ext partition). For that partition, nandroid backs everything up into a *.tar and a *.md5. You can then copy the tar file to your computer, extract it, modify it etc. When you're done create a new *.tar file and a corresponding *.md5 and use nandroid to restore your new *.tar. When nandroid restores the "SD Data" partiton, it first reformats the entire partition to ext2 and then extracts the tar onto it. If you use XT720 OpenRecovery there's a "SD utilities" function that you can use to convert the existing ext2 to ext3 or ext4 (be aware that ext4 requires ROM support--I think most of the recent ones do...). The regular OpenRecovery does not support ext4 (you won't be able to make a nandroid of "SD Data")--you next XT720 OpenRecovery.
If you want to repartition... I don't know if that can be done on the phone itself.
If you want to just disable app2ext, look inside /system/etc/init.d and find the script that mounts /sd-ext and then move/delete/rename it.
i reclaimed control over my phone! thx
it turned out all /data/app was linked to the ext3 partition ... another reason why my phone was slow.

fstab.qcom modification

I just got my first Android Device (Moto E) and tried to get around the small internal memory by using the sdcard instead of the internal memory for /data. As the KitKat mounting procedure does not seem to be based on vold.fstab anymore, the usual guides to doing that don't apply.
So my idea was to format the sdcard with ext4 and modify the /fstab.qcom file to mount the sdcard as /data instead of the internal data partition. But here's where I don't know how to proceed, as adb shell don't seem to have access to the proper partition during flashboot (though having mounted the rootfs parition which should contain those files?) and is unable to write to the file once the system is running.
I'd appreciate if anyone can point me in the right direction on how to do that.
lunaticat said:
I just got my first Android Device (Moto E) and tried to get around the small internal memory by using the sdcard instead of the internal memory for /data. As the KitKat mounting procedure does not seem to be based on vold.fstab anymore, the usual guides to doing that don't apply.
So my idea was to format the sdcard with ext4 and modify the /fstab.qcom file to mount the sdcard as /data instead of the internal data partition. But here's where I don't know how to proceed, as adb shell don't seem to have access to the proper partition during flashboot (though having mounted the rootfs parition which should contain those files?) and is unable to write to the file once the system is running.
I'd appreciate if anyone can point me in the right direction on how to do that.
Click to expand...
Click to collapse
A little late in the game (I am trying to do the same), but I come across this:
http://forum.xda-developers.com/showthread.php?t=443994
boot partition populates the rootfs. So hack the boot.img (unpack to analyze), and you may find your answer. Hope this helps.
I will give it a shot in the next week.

[Q] Move /data to SD card

I have a Galaxy GIO, which is a fairly old low-end phone. On factory reset, I have about 100MB memory free for apps, and the phone seems to start complaining as soon as I hit the 50MB mark; that's about one or 2 installed applications.
Because I would like to actually be able to, well, use my phone for anything else than calling, I want to move the /data partition to my SD card. I know this'll be slow, but slow still is better than not working at all.
I have done a bit of research, and came around plenty of scripts which claim to mount the second partition of the sd card as /data; none of these scripts work. I have tried 'INT2EXT', 'D2EXT', and I've heard about something called 'A2SD' but I have yet to find a copy of it . To install these scripts I've extracted them, and copied the scripts to '/system/etc/init.d/', after mounting '/system', using ADB.
I for an instant thought maybe my second partition isn't formatted properly, but using adb I am able to successfully mount the ext2 partition as /sd-ext, so I don't see why mounting them as /data should be a problem.
I have also tried to symbollicly link /data to /sd-ext/data and automatically mount my /sd-ext on boot. Obviously this didn't work, because the symbolic link isn't actually saved to disk.
How would I go about moving my data partition to my sd card? I am not affraid of doing some dirty work manually. I am running Cyanogenmod 11.
Binero said:
I have a Galaxy GIO, which is a fairly old low-end phone. On factory reset, I have about 100MB memory free for apps, and the phone seems to start complaining as soon as I hit the 50MB mark; that's about one or 2 installed applications.
Because I would like to actually be able to, well, use my phone for anything else than calling, I want to move the /data partition to my SD card. I know this'll be slow, but slow still is better than not working at all.
I have done a bit of research, and came around plenty of scripts which claim to mount the second partition of the sd card as /data; none of these scripts work. I have tried 'INT2EXT', 'D2EXT', and I've heard about something called 'A2SD' but I have yet to find a copy of it . To install these scripts I've extracted them, and copied the scripts to '/system/etc/init.d/', after mounting '/system', using ADB.
I for an instant thought maybe my second partition isn't formatted properly, but using adb I am able to successfully mount the ext2 partition as /sd-ext, so I don't see why mounting them as /data should be a problem.
I have also tried to symbollicly link /data to /sd-ext/data and automatically mount my /sd-ext on boot. Obviously this didn't work, because the symbolic link isn't actually saved to disk.
How would I go about moving my data partition to my sd card? I am not affraid of doing some dirty work manually. I am running Cyanogenmod 11.
Click to expand...
Click to collapse
I will introduce how to COPY(NOT MOVING) /data partition to /sdcard.
1. You should ROOT First.
2. Use Rootexplorer to Copy /data to /sdcard (WARNING:If your sdcard emulated with /data, Data WON'T copy to SDCARD --You need external Sdcard!)
2-1. if you don't want to use RootExplorer, you can use Android Debugging Bridge(adb)
(Youshould download Android sdks from developer.android.com)
--Command : adb shell su -C cp /data /sdcard/data
3. That's all.
Jason Hyunwoo said:
I will introduce how to COPY(NOT MOVING) /data partition to /sdcard.
1. You should ROOT First.
2. Use Rootexplorer to Copy /data to /sdcard (WARNING:If your sdcard emulated with /data, Data WON'T copy to SDCARD --You need external Sdcard!)
2-1. if you don't want to use RootExplorer, you can use Android Debugging Bridge(adb)
(Youshould download Android sdks from developer.android.com)
--Command : adb shell su -C cp /data /sdcard/data
3. That's all.
Click to expand...
Click to collapse
Thanks, but that's not entirely what I meant. I can manage to move my data to the SD card no problem, but I want my phone to actually use my second partition on my sd card, as the /data partition.
Binero said:
Thanks, but that's not entirely what I meant. I can manage to move my data to the SD card no problem, but I want my phone to actually use my second partition on my sd card, as the /data partition.
Click to expand...
Click to collapse
Oops.. Sorry about that!
First, I am not sure that will work or not, maybe you should try to edit init.*.rc. Which is from boot.mg. I think, maybe mounting sdcard as data is impossible, but you may try editing init.rc(or init.*.rc, * is manufacture). You could unpack your boot img, and you could edit mounting point which is from init.rc!
I hope this thing will help you..
Jason Hyunwoo said:
Oops.. Sorry about that!
First, I am not sure that will work or not, maybe you should try to edit init.*.rc. Which is from boot.mg. I think, maybe mounting sdcard as data is impossible, but you may try editing init.rc(or init.*.rc, * is manufacture). You could unpack your boot img, and you could edit mounting point which is from init.rc!
I hope this thing will help you..
Click to expand...
Click to collapse
I have looked into init.rc, but that only seemed to create the /data mountpoint, but not actually mount to it. I've no idea how to edit the boot image, or what that even is. Is that the filesystem that is built into the kernel?
Binero said:
I have looked into init.rc, but that only seemed to create the /data mountpoint, but not actually mount to it. I've no idea how to edit the boot image, or what that even is. Is that the filesystem that is built into the kernel?
Click to expand...
Click to collapse
Umm.. You should download unpackbootimg or dsixda's Android Kitchen to edit boot.mg. You cannot edit init.rc on Root explore. Use unpack boot.img menu which is from Android Kitchen!
Jason Hyunwoo said:
Umm.. You should download unpackbootimg or dsixda's Android Kitchen to edit boot.mg. You cannot edit init.rc on Root explore. Use unpack boot.img menu which is from Android Kitchen!
Click to expand...
Click to collapse
I'll try that out. Still not sure where to look though. As I said, init.rc does not contain any commands mounting /data.
Binero said:
I'll try that out. Still not sure where to look though. As I said, init.rc does not contain any commands mounting /data.
Click to expand...
Click to collapse
or you could edit look at other *.rc files!
Isn't this what you're looking for?
http://forum.xda-developers.com/galaxy-s2/themes-apps/tool-directorybind-data-to-externalsd-t1410262
sndsnd said:
Isn't this what you're looking for?
http://forum.xda-developers.com/galaxy-s2/themes-apps/tool-directorybind-data-to-externalsd-t1410262
Click to expand...
Click to collapse
I want to mount my sd card to my /data. That simply creates a symbolic link.
Jason Hyunwoo said:
or you could edit look at other *.rc files!
Click to expand...
Click to collapse
There is only 2 rc files, and one of them is specific to my recovery image.

[Q] Data Recovery from .RAW file Internal Memory

Hi there,
I have created a .Raw image from my Internal memory to recover deleted files from, using this tutorial successively:
http://forum.xda-developers.com/galaxy-nexus/general/guide-internal-memory-data-recovery-yes-t1994705
Now the problem rises because I am using windows 8, and the internal memory image is Linux EXT4 partition.
I have used many software to mount the image including : " Diskinternals, OSFMount, Ext2Fsd ... " but the problem arises because the data recovery software doesn't show the mounted partition even-though it is showing in My Computer.
I also have used many data recovery software that support Linux partitions such as: " Testdisk, PhotoRec, R-studio, Easeus, Geeksnerds, UFS, Active Undelete..." but all are only showing the files that are already there, and I need to recover the deleted files from this ext4 partition!

Categories

Resources