mount filesystem images dumped by nandroid - G1 Q&A, Help & Troubleshooting

is this possible ? I want to extract data from my data.img

Related

converting file systems

if i backup my rom and ext2 partition on my sdcard using switchrom then convert to ext3 then restore the rom and ext2 data on the new ext3 partition will this work or will the restore cough up on me because it was backed up as a earlier file system?

Lagfix and Nandriod back up

If I performed a Nandriod back-up while my file system was EXT4, can I restore it anytime or I should convert the file system from my phone to EXT4 before I restore ?

[Q] Mount Nandroid image?

As the title is it possible to mount the image Clockwork (nandroid?) .img files make. I have tested with deamon tools without any luck. Would be really great if someone could help me with this, i want to llok for files inside it.
Try renaming it to .Zip and open the archive
Sent from my LG-P990 using XDA Premium App
Not working
I was just wondering about the same thing, about how to mount the nandroid backup.
I have tried to rename the extension from .img to .zip, but Windows (winrar in my case) won't read the file.
Are there any other solutions on how to extract data from the backup under a Windows environment, or do I have to fire up a virtual linux machine to get my data?
They aren't archives, so WinZip/RAR isn't going to be able to handle them. You can mount them in Linux though.
Thanks for clarifying that for me. I'll do that then.
One last question: Are special tools required for mounting in linux? Or are there native support for the nandroid backup in linux?
It's all built in, Linux would be quite useless if it was unable to mount an EXT3/4 file system
I think the command (assuming EXT3 backup) is:
Code:
mount -t ext3 system.img /path/to/mount/folder -o loop
LOL, didn't realize that it was ext3/4. -I had an idea of that it was compressed to some special format.
Thanks again Rusty and thanks for the command.
are the images ext3 even though the system is yaffs2?
Just a thought, wouldn't it be possible (for us windows users) to mount the img files in android, then adb pull the files from the phone?
System isn't YAFFS on these, it's EXT3 or EXT4 if on MCR.

[Q] Best way to backup /sdcard?

Nandroid backup works for all the NAND partitions on the Bionic, dumping them to /sdcard-ext where they can be safely archived offline.
I'm looking for a way to perform a backup of the Bionic' internal sdcard (/sdcard). When the phone is fully booted, I can use tar, cpio, cp -Rp and so forth, but aren't some of the folders "live"? Is there a way to add something to the Nandroid backup script which executes a tar command for /sdcard?
Thanks!
Unless I'm missing something here; Can't you just plug it into your computer and copy the contents of your sd card?

[HELP]Problem resizing partitions

I have a problem. I have try to resize the partition using nvflash. I have use guide from modaco and also the preconfigured files. The problem is that /system is always at ~360mb (stock size). All other partitions are resized propertly.
Any help?
doctoralex said:
I have a problem. I have try to resize the partition using nvflash. I have use guide from modaco and also the preconfigured files. The problem is that /system is always at ~360mb (stock size). All other partitions are resized propertly.
Any help?
Click to expand...
Click to collapse
I'm facing the same problem. I think I know what the problem is but I cannot solve it!
I currently have installed Stefan 28G ics rom (2nd edition) and my goal is to add about 100mb to the system partition, reducing internal /sdcard.
If I use fdisk command from adb shell I find out that the partion IS actually resized, but the file system on it isn't!!
So: partition now is 650Mb, but file system on it is 550Mb!
That's because nvflash simply makes a dd of the system.img (which has the old partition size) to the partition so in my opinion there are two solutions:
a) open system.img in a linux environment, add some stuff to reach 650Mb on it and repack it with the new size
b) backup system data, formata the partition (which is already resized) to get 650Mb file system and then restore your system data
I think that all "resizing guide" doesn't talk about this second step because in that case the system.img has always the right size.
Any ideas?
Raffaele80 said:
I'm facing the same problem. I think I know what the problem is but I cannot solve it!
I currently have installed Stefan 28G ics rom (2nd edition) and my goal is to add about 100mb to the system partition, reducing internal /sdcard.
If I use fdisk command from adb shell I find out that the partion IS actually resized, but the file system on it isn't!!
So: partition now is 650Mb, but file system on it is 550Mb!
That's because nvflash simply makes a dd of the system.img (which has the old partition size) to the partition so in my opinion there are two solutions:
a) open system.img in a linux environment, add some stuff to reach 650Mb on it and repack it with the new size
b) backup system data, formata the partition (which is already resized) to get 650Mb file system and then restore your system data
I think that all "resizing guide" doesn't talk about this second step because in that case the system.img has always the right size.
Any ideas?
Click to expand...
Click to collapse
I solved my problem!
As explained before I have just added some stuff to the system.img file and then resized the file system:
dd if=/dev/zero bs=4096 count=35328 >> system.img
e2fsck -f system.img
resize2fs system.img
PS: bs and count depend on the partition size that you have set before in the .cfg file
Then NVFlashing again solve the problem!
doctoralex said:
I have a problem. I have try to resize the partition using nvflash. I have use guide from modaco and also the preconfigured files. The problem is that /system is always at ~360mb (stock size). All other partitions are resized propertly.
Any help?
Click to expand...
Click to collapse
Backup your rom with cwm.
Format /system in cwm.
Restore your cwm backup.
Sent from my LG-P990 using xda app-developers app

Categories

Resources