Help Making .PIT file backup, and Debrick.img - AT&T, Rogers, Bell, Telus Samsung Galaxy S III

I follow the instructions to install BusyBox and Terminal Emulator for Android. (I am rooted).
For backing up the .PIT partition file I type into Terminal Emulator:
su
dd if=/dev/block/mmcblk0 of=/sdcard/out.pit bs=8 count=580 skip=2176
Click to expand...
Click to collapse
For creating the debrick.img (for use in sdcard booting a hard brick):
su
busybox dd if=/dev/block/mmcblk0 of=/sdcard/debrick.img bs=1M count=128
Click to expand...
Click to collapse
After each of these lines are entered, it states that the files have been saved (PIT is like 4000bytes) (Debrick.img is like 100mb).
I check the root directory of both the internal sd and the external micro sd card to copy the files to my PC but the files are not to be found.
Am I looking in the wrong place?

Strange, should be created in the root directory of the internal storage.

Turns out it was in the root directory. I just had to unplug my phone for it to refresh even though I clicked refresh on windows explorer.

Related

[Q] Developers help. Need to mount external SD to /sd

if you have adb and superuser (h**p://forum.xda-developers.com/showpost.php?p=7239659&postcount=3 you need to grand permission from the phone when you type su)
Code:
adb shell
su
mount -o bind /sdcard/external_sd /sdcard/sd
this should last until you reboot.
why don't you just remove the app and reinstall? it's way safer, if you don't know about the previous commands.
I will try this thank you very much for your reply!
I tried to install the app again but there is no difference.
It continues to search for the resource files at /sdcard/sd :S
What is the problem via simply simlinking external_sd
to sd? I.e. using ln -s?
sdcard is vfat, so ln doesn't work

Recover images from internal sdcard

Is it possible to recover deleted images from the internal sdcard?
I deleted my images/videos by mistake (using Gallery). I haven't touch the internal sdcard since so hopfully I can still recover most of the deleted files. Since the internal card cannot be mounted as UMS, tools such as "recuva" won't work. Can I use "dd" to create an image of my internal card then use recuva to recover from the image dump?
My mount points:
/dev/fuse on /mnt/sdcard type fuse (rw,nosuid,nodev,noexec,relatime,user_id=1023,group_id=1023,default_permissions,allow_other)
/dev/block/vold/179:97 on /mnt/extSdCard type vfat (rw,dirsync,nosuid,nodev,noexec,noatime,nodiratime,uid=1000,gid=1023,fmask=0002,dmask=0002,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro)
I am not familiar with file system type "fuse" so I don't know if dd would work. Any help would be greatly appreciated.
Thanks.
Most it in a computer or laptop with sd adaptor and download pandora recovery. It's free and I've used it for in the past with sd cards. Works great
Sent from my SAMSUNG-SGH-I747 using xda premium
waiters said:
Most it in a computer or laptop with sd adaptor and download pandora recovery. It's free and I've used it for in the past with sd cards. Works great
Sent from my SAMSUNG-SGH-I747 using xda premium
Click to expand...
Click to collapse
I think this only works if I deleted files from the external sdcard. For the internal scard, I don't think this is possible.
I have tried to do dd if=/dev/fuse of=/mnt/extSdCard/image.img but dd says that it cannot work with file system type "fuse". I have tried to use dd with other partition (user, data, system) and can confirm that it is possible to recover from the DD image.
As long as I can get the DD image of the /dev/fuse then I would be all set I think.
Just a quick update to say that it is possible to recover the files. All you have to do is to do
dd if=/dev/block/mmcblk0p15 of=/mnt/extSdCard/file.img
This is because from what I understand, the fuse partition is just a write-through for /data (which is ext4) with some security restrictions. If you have root access then you can dump the /data and mount it. Once it is mounted, you can use PhotoRec to recover stuffs.

[Q] sdcard in /dev?

I need a developer's help!
I am trying to use dd in terminal to write an image file to an sd card. I'm a novice linux user. The command I'm trying to use is:
dd if=/sdcard/SDCardImage14.img of=/dev/?
If it helps, the only mention of extSdCard when executing "mount" command is /dev/block/void/179:17 /storage/extSdCard ETC ETC ETC
if the "df" command is helpful, I didn't see anything listed after executing it that looked like a reference to a sd card.
I am running rooted stock 4.1.2 on my i317.

[MOD][Howto] Move folders from internal to external sd card

Here is the script i use to mount folders from my external sd card over folders on the internal one. This makes it possible to transfer the most space consuming files off the internal memory, so you have more space for installing other applications.
this method requires some basic linux skills, if you dont know how to use the linux command line, you better try the foldermount app. as always, use this method on your own risk.
this works with the mount --bind command, nothing new, similar scripts are documented for the galaxy s3, galaxy tab and also used by the foldermount app. one advantage over the foldermount app is, that this script is launched by init.d very early in the boot process, so no app is started at the time of mounting (not finding the files they expect).
1. you need a kernel with init.d support. tested with adam 1.3.2 and perseus alpha1. (alpha0 did not work for me).
2. get a root command promt on your phone, i recommend adb shell, a local terminal emulator will work too.
3. you may need to type "su" in the console to get a root shell
4. create the init directory by typing "mkdir /etc/init.d" and "chmod 777 /etc/init.d"
5. create the file "/etc/init.d/02mountbind" by using your favorite text editor. you may also create it on sdcard first and then copy it over. make sure to do a "chmod 777 /etc/init.d/02mountbind" on it.
6. the content of the script depends on your requirements. also, it does not move any files, you have to do that yourself. I recommend to test with the first mount -o bind test line. then comment in the other two lines after you have moved the files over to your external sdcard.
Code:
#!/system/bin/sh
echo "started mount script" >/data/local/tmp/init.d_log.txt
#start the volume manager
vold
#mount the external sd card, its not there at boot time
mount -t vfat -o umask=0000,uid=1000,gid=1023 /dev/block/vold/179\:9 /storage/extSdCard/ 2>&1 >> /data/local/tmp/init.d_log.txt
#this is a test, you can use it to confirm everything is working before you start to move files. if all is fine, you can write files to the folder "test" on your internal sdcard and see the changes on the external one.
mount -o bind /storage/extSdCard/test/ /data/media/0/test 2>&1 >> /data/local/tmp/init.d_log.txt
#mount the Android directory of the extSdCart to the internal one. Move all files from your internal sdcard to the external one first
#mount -o bind /storage/extSdCard/Android/ /data/media/0/Android 2>&1 >> /data/local/tmp/init.d_log.txt
#also mount the obb directory. its not on the "internal sdcard" but also on your internal storage. it holts the most data of games like gta3, max payne and so on.
#mount -o bind /storage/extSdCard/Android/obb /data/media/obb/ 2>&1 >> /data/local/tmp/init.d_log.txt
echo "done mount script" >> /data/local/tmp/init.d_log.txt
after placing the script and making it chmod 777, try to reboot and see if it works. if not, check the file /data/local/tmp/init.d_log.txt for log informations.
i have some games installed, had a full internal memory and were able to free up 6Gb space on my using this method.
Feedback welcome.
raw235 said:
Here is the script i use to mount folders from my external sd card over folders on the internal one. This makes it possible to transfer the most space consuming files off the internal memory, so you have more space for installing other applications.
this method requires some basic linux skills, if you dont know how to use the linux command line, you better try the foldermount app. as always, use this method on your own risk.
this works with the mount --bind command, nothing new, similar scripts are documented for the galaxy s3, galaxy tab and also used by the foldermount app. one advantage over the foldermount app is, that this script is launched by init.d very early in the boot process, so no app is started at the time of mounting (not finding the files they expect).
1. you need a kernel with init.d support. adam kernel has it, others may have it too.
2. get a root command promt on your phone, i recommend adb shell, a local terminal emulator will work too.
3. you may need to type "su" in the console to get a root shell
4. create the init directory by typing "mkdir /etc/init.d" and "chmod 777 /etc/init.d"
5. create the file "/etc/init.d/02mountbind" by using your favorite text editor. you may also create it on sdcard first and then copy it over. make sure to do a "chmod 777 /etc/init.d/02mountbind" on it.
6. the content of the script depends on your requirements. also, it does not move any files, you have to do that yourself. I recommend to test with the first mount -o bind test line. then comment in the other two lines after you have moved the files over to your external sdcard.
Code:
#!/system/bin/sh
echo "started mount script" >/data/local/tmp/init.d_log.txt
#start the volume manager
vold
#mount the external sd card, its not there at boot time
mount -t vfat -o umask=0000,uid=1000,gid=1023 /dev/block/vold/179\:9 /storage/extSdCard/ 2>&1 >> /data/local/tmp/init.d_log.txt
#this is a test, you can use it to confirm everything is working before you start to move files. if all is fine, you can write files to the folder "test" on your internal sdcard and see the changes on the external one.
mount -o bind /storage/extSdCard/test/ /data/media/0/test 2>&1 >> /data/local/tmp/init.d_log.txt
#mount the Android directory of the extSdCart to the internal one. Move all files from your internal sdcard to the external one first
#mount -o bind /storage/extSdCard/Android/ /data/media/0/Android 2>&1 >> /data/local/tmp/init.d_log.txt
#also mount the obb directory. its not on the "internal sdcard" but also on your internal storage. it holts the most data of games like gta3, max payne and so on.
#mount -o bind /storage/extSdCard/Android/obb /data/media/obb/ 2>&1 >> /data/local/tmp/init.d_log.txt
echo "done mount script" >> /data/local/tmp/init.d_log.txt
after placing the script and making it chmod 777, try to reboot and see if it works. if not, check the file /data/local/tmp/init.d_log.txt for log informations.
i have some games installed, had a full internal memory and were able to free up 6Gb space on my using this method.
Feedback welcome.
Click to expand...
Click to collapse
can you plz make a app for this coz its very difficult for ameture like Me.Thanks
@palash_6670 Why dont you use the foldermount app from the market
grgsiocl said:
@palash_6670 Why dont you use the foldermount app from the market
Click to expand...
Click to collapse
I use it
It is amazing ^_^
Sent from my GT-I9500 using Tapatalk 4 Beta
palash_6670 said:
can you plz make a app for this coz its very difficult for ameture like Me.Thanks
Click to expand...
Click to collapse
bhai, use FOlderMount (https://play.google.com/store/apps/details?id=com.devasque.fmount) ! awesome application !
greatricky said:
bhai, use FOlderMount (https://play.google.com/store/apps/details?id=com.devasque.fmount) ! awesome application !
Click to expand...
Click to collapse
Yeah Bro Using it Thanks for the suggestion
Guys, wouldnt be easier to simply edit the root\etc\vold.fstab and change the montpoints of internal memory and external microsd?
Pistolaobr said:
Guys, wouldnt be easier to simply edit the root\etc\vold.fstab and change the montpoints of internal memory and external microsd?
Click to expand...
Click to collapse
i have tried that, there is no mount point for the internal one in vold.fstab. instead i have modified the init.rc config (by repacking the kernel) to mount the external one in place of the internal one and ignore the external moint point, but that caused the camera application to hang (i think it checks for both sdcards). also, my script does not only mount the large Android folder from one sd to the other, it is also able to mount the /data/media/obb folder, which neither on the internal nor on the external sdcard, to the external sdcard. simple mountpointswapping would'nt make this possibe. that obb folder was 3,5GB large for me, containing the most data of my games.
palash_6670 said:
Yeah Bro Using it Thanks for the suggestion
Click to expand...
Click to collapse
How much space did you save doing that?
drziddo said:
How much space did you save doing that?
Click to expand...
Click to collapse
u can put the game file on sd card[OBB,game files] and mount it.it will work like as a Mobile memory. [sorry for the english]
Hi
Is it possible to find a way through CWM Flash ?
azoojeddah said:
Hi
Is it possible to find a way through CWM Flash ?
Click to expand...
Click to collapse
Probably yes, but it woulb be one for each cwm custom rom or for each custom kernel.
xperia z
pls folder mount doesnt work with xperia z any suggestions pls???
johnemone said:
pls folder mount doesnt work with xperia z any suggestions pls???
Click to expand...
Click to collapse
What does it say?
mw86 said:
What does it say?
Click to expand...
Click to collapse
it shows me d green pin but wen I try to start d game it doesn't start
raw235 said:
Here is the script i use to mount folders from my external sd card over folders on the internal one. This makes it possible to transfer the most space consuming files off the internal memory, so you have more space for installing other applications.
this method requires some basic linux skills, if you dont know how to use the linux command line, you better try the foldermount app. as always, use this method on your own risk.
Click to expand...
Click to collapse
Nice work...Keep it up
Click to expand...
Click to collapse
Looks Greattttt.....Keep It Up :good:
is this will work on galaxy s3?

Please help, unbrick with sd card

Please help, I've bricked my phone, if anyone have backup of starting sda partition? In .img file .
If anyone can prepare file from own z2 play xt1710? Instructions is below, need root. Please help me
Do a complete factory reset on the phone. If a custom recovery is installed, use it to wipe data, cache, and internal storage.
While the sdcard is in the phone, run the follow commands via adb
adb shell
su
dd if=/dev/block/mmcblk0 of=/storage/sdcard1/backup.img bs=512 count=30535646
The size of the backup.img is around 16 GB, However, if compressed would be about 2 GB.

Categories

Resources