DD a partition in fastboot or recovery? - ONE Q&A, Help & Troubleshooting

Hello, is there any way I can dd a partition from fastboot or recovery? I have accidentally advanced wipe my internal SD card, I don't want to flash anything yet so I can recover my files from mmcblk0p28. I have been searching everywhere but I cannot find the answer. Thanks.

Related

is it possible to recreate the Data partition ?

Hello everyone,
i bricked my a511 because i had the stupid idea to set go back factory defaults with the old cwm.
so, i know that the problem is the damaged data partition, is it possible to recreate this partition ?
I had the same Problem. I flashed a data.img. This works. you can even mount the system partition? and the cache?
The Fastboot commands are "fastboot flash userdata C:\[your path to the data.img]" and "fastboot flash system C:\[your path to the data.img]"
and "fastboot flash cache C:\[your path to the data.img]"
Webitu
No, it's not the partition that's damaged, but the NAND chip itself.

[Q] How to push in adb when device not found?

Solved already, used different recovery that has an option to mount sdcard to pc so that I can move the rom for flashing.
Hi,
I have a china phone(oppo finder) that I have accidentally unmount the sdcard using miui recovery. The phone only comes with an internal storage. When I reboot the phone, it will only boot in recovery due to unmounted sd card. I cant use adb due to device not found. I tried searching for the driver but cant found anything that will make adb usable. I am able to go to fastboot and can still flash custom recovery.
Is there a way to push a rom to the sdcard or to remount the sdcard? Anyway I can utilize the fastboot?
Appreciate any help I can get! Thanks for your time in advance!

"CM Lockscreen has stopped" turns OPO into bootloop, how to backup /sdcard to pc?

"CM Lockscreen has stopped" turns OPO into bootloop, how to backup /sdcard to pc?
I got the "CM lockscreen has stopped" message, and now my phone keeps rebooting. I can put the phone into stock recovery mode and maybe fastboot mode(yet to try). All i wanted now is to backup all my files in internal storage before "sideload" the older firmeware(33R) to fix the phone.
I just learned how to use adb and fastboot.
in stock recovery mode------> apply update-----> adb, only "adb sideload mode" is allowed, i can't use adb pull command in here.
Question is: How to backup all the files in internal storage(/sdcard) to my pc.
should i just sideload the older firmware and fix the rebooting issue first?
but i am worrying this method won't works or the internal storage will get formatted.
Thank you
Just flash a custom ROM using TWRP. Your files won't be erased from internal sd card.
No need to use fastboot. Don't forget to wipe in twrp.
zephiK said:
Just flash a custom ROM using TWRP. Your files won't be erased from internal sd card.
No need to use fastboot. Don't forget to wipe in twrp.
Click to expand...
Click to collapse
But i didn't install TWRP on my phone. To install TWRP now, i think i have to unlock the bootloader first, but this will wipe all the data(including internal sd scard). Am i right?

Problem with partition sdcard after fail flash

Hello,
That last night I wanted to flash a new ROM from 4.4 to 5.0.1.
I had some bugs, like my full SD card, therefore i installed nothing like apps or pictures .
So I try to re-flash the ROM again after a factory reset.
But, i can not reflash since it has wipe my SD card ..
So I managed to reconnect my phone and flash a recovery.
However, when I install a ROM (official google, or custom), it no longer detects my SD card
when the flash rom: E: unknown volume for path / sd-ext.
I try everything, I do not know how to repartition as originally my SD card.
I hope she is not dead as impossible to get out of my phone ...
I manage to mount the SD card, but still the sd-ext partition that does not exist ...
I just followed here: http://forum.xda-developers.com/goo...o-repairing-corrupted-data-partition-t2577447
everything works, but again, the sd-ext partition ..
I manage to get to the bootloader, recovery, I can flash a ROM anyway!
However, when I want to take a picture / install / sms .... I get an error "No SD card" or not avaialble space.
I need your help, since yesterday I have no phone ..
Best Regards,
sleakerz said:
Hello,
That last night I wanted to flash a new ROM from 4.4 to 5.0.1.
I had some bugs, like my full SD card, therefore i installed nothing like apps or pictures .
So I try to re-flash the ROM again after a factory reset.
But, i can not reflash since it has wipe my SD card ..
So I managed to reconnect my phone and flash a recovery.
However, when I install a ROM (official google, or custom), it no longer detects my SD card
when the flash rom: E: unknown volume for path / sd-ext.
I try everything, I do not know how to repartition as originally my SD card.
I hope she is not dead as impossible to get out of my phone ...
I manage to mount the SD card, but still the sd-ext partition that does not exist ...
I just followed here: http://forum.xda-developers.com/goo...o-repairing-corrupted-data-partition-t2577447
everything works, but again, the sd-ext partition ..
I manage to get to the bootloader, recovery, I can flash a ROM anyway!
However, when I want to take a picture / install / sms .... I get an error "No SD card" or not avaialble space.
I need your help, since yesterday I have no phone ..
Best Regards,
Click to expand...
Click to collapse
Easiest way to solve is just to flash a factory image - follow ALL the instructions on this page: https://developers.google.com/android/nexus/images
Have a read of RootSU's post about file system issues after updating - explains how and why this happens, and how to fix. I would just do the above though, just so you know you're totally back to stock.
http://forum.xda-developers.com/google-nexus-5/general/sdcard-problems-upgrading-android-t2938749
it looks run, I can now see my sd card, install applications ...
However, some problem:
- In aborescence I have : sdcard, then 0 / legacy / OBB
Is it the same for you? Is like this for 5.0?
- When flash: E unknown volume to path sd-ext. Unable to unmount or mount /system, but I was able to boot; and it seems to work ..
- Clean master does not detect anything (unnecessary file or anything ..) Why?
- What recovery do you recommend?
- In storage: Various weighs 5.68gb, but there is nothing on it, how to clean?
sleakerz said:
it looks run, I can now see my sd card, install applications ...
However, some problem:
- In aborescence I have : sdcard, then 0 / legacy / OBB
Is it the same for you? Is like this for 5.0?
- When flash: E unknown volume to path sd-ext. Unable to unmount or mount /system, but I was able to boot; and it seems to work ..
- Clean master does not detect anything (unnecessary file or anything ..) Why?
- What recovery do you recommend?
- In storage: Various weighs 5.68gb, but there is nothing on it, how to clean?
Click to expand...
Click to collapse
- go to general > stick roll-up and find my data loss/recovery thread it explains all the /sdcard quirks
- you don't have sd-ext, that's why. you can't mount /system if its already mounted
- who knows?
- TWRP
- again check my recovery /loss thread and also my "sdcard problems" thread in general. particularly the part about lost Nandroid backups
Your best bet is to read those threads, find any lost backups and wipe storage via TWRP
"you don't have sd-ext, that's why. you can't mount /system if its already mounted"
It is normal ? Or it's a problem ? How can i fix it ?
I don't have any Nandroid backup, mine didn't worked ..
sleakerz said:
"you don't have sd-ext, that's why. you can't mount /system if its already mounted"
It is normal ? Or it's a problem ? How can i fix it ?
I don't have any Nandroid backup, mine didn't worked ..
Click to expand...
Click to collapse
Its normal.
Please find and read those threads.
I'm french, and so i didn't understand all , i'm in which case ?
If i understand well, i just have to wipe "data" partition ?
As you say, i have sdcard\0\0\0
Which one i have to moove ?
sleakerz said:
I'm french, and so i didn't understand all , i'm in which case ?
If i understand well, i just have to wipe "data" partition ?
As you say, i have sdcard\0\0\0
Which one i have to moove ?
Click to expand...
Click to collapse
Go to /data/media/0. That's where everything should be. When you're in /data/media/0, you shouldn't see any more "0" folders. If you do, take everything out of those "0" folders and put it all in /data/media/0
So for example you should have your photos in /data/media/0/DCIM. If you have /data/media/0/0/0/0/DCIM, obviously that is wrong.
Sometimes its easiest to wipe everything a d start fresh so copy any data you want to keep to PC, then flash the 5.0.1 full factory image, wiping your device back to default completely.
I just did this, i flashed a full factory image this morning, it was the same ..
I made a factory, wipe a new ROm, always the same, i made everything, nothing work .
the sdcard is boring me ..
I don't know what to do ..
sleakerz said:
I just did this, i flashed a full factory image this morning, it was the same ..
I made a factory, wipe a new ROm, always the same, i made everything, nothing work .
the sdcard is boring me ..
I don't know what to do ..
Click to expand...
Click to collapse
It can't be the same if you flash the full factory image. Please explain the exact steps you took to flash full factory image.
I downloaded : hammerhead-lrx22c-factory-0f9eda1b.tgz
I unzipped , to get the flash-all.bat script (http://forum.xda-developers.com/google-nexus-5/general/tutorial-how-to-flash-factory-image-t2513701)
I make a factory reset
-- E : unknown volume for path [/sd-ext]
I launch the script : http://i.gyazo.com/177625d0c7f9ba60bc207e39536b0b31.png i've got this ..
What i can do now ?
sleakerz said:
I downloaded : hammerhead-lrx22c-factory-0f9eda1b.tgz
I unzipped , to get the flash-all.bat script (http://forum.xda-developers.com/google-nexus-5/general/tutorial-how-to-flash-factory-image-t2513701)
I make a factory reset
-- E : unknown volume for path [/sd-ext]
I launch the script : http://i.gyazo.com/177625d0c7f9ba60bc207e39536b0b31.png i've got this ..
What i can do now ?
Click to expand...
Click to collapse
Unpack all the .img files and do this
fastboot erase system
fastboot flash system system.img
fastboot erase userdata
fastboot flash userdata userdata.img
fastboot flash boot boot.img
Read general > sticky roll-up> adb and fastboot.... If you get stuck with that
fastboot flash bootloader C:/image-hammerhead-krt16m/bootloader.img
fastboot reboot-bootloader
fastboot flash radio C:/image-hammerhead-krt16m/radio.img
fastboot reboot-bootloader
fastboot flash system C:/image-hammerhead-krt16m/system.img
fastboot flash userdata C:/image-hammerhead-krt16m/userdata.img
(Note: this command will wipe your device (including /sdcard), EVEN if your bootloader is already unlocked.)
fastboot flash boot C:/image-hammerhead-krt16m/boot.img
fastboot flash recovery C:/image-hammerhead-krt16m/recovery.img
fastboot erase cache
And it's seems to work, like you can see : http://i.gyazo.com/f84948dd6d444a47b114437b8878a314.png
Now i have a factory image, what can i do to use a new ROM / get root and unlock bootloader (if it's not done ?)
sleakerz said:
fastboot flash bootloader C:/image-hammerhead-krt16m/bootloader.img
fastboot reboot-bootloader
fastboot flash radio C:/image-hammerhead-krt16m/radio.img
fastboot reboot-bootloader
fastboot flash system C:/image-hammerhead-krt16m/system.img
fastboot flash userdata C:/image-hammerhead-krt16m/userdata.img
(Note: this command will wipe your device (including /sdcard), EVEN if your bootloader is already unlocked.)
fastboot flash boot C:/image-hammerhead-krt16m/boot.img
fastboot flash recovery C:/image-hammerhead-krt16m/recovery.img
fastboot erase cache
And it's seems to work, like you can see : http://i.gyazo.com/f84948dd6d444a47b114437b8878a314.png
Now i have a factory image, what can i do to use a new ROM / get root and unlock bootloader (if it's not done ?)
Click to expand...
Click to collapse
You didn't do the commands I said. The erase was important
You would need to fastboot flash a custom recovery and either flash a custom ROM from that recovery or flash SuperSU from recovery depending if you want a new ROM or just root
i didn't do the command, but as you can see in the screen, just after "fastboot flash system C:/image-hammerhead-krt16m/system.img"
there is : "erasing system.. OKAY"
So i think it's good no ?
sleakerz said:
i didn't do the command, but as you can see in the screen, just after "fastboot flash system C:/image-hammerhead-krt16m/system.img"
there is : "erasing system.. OKAY"
So i think it's good no ?
Click to expand...
Click to collapse
I just wanted you to do it manually yourself, for userdata
Really thank for your help rootSU !
Now, everything works like a charm : )
sleakerz said:
Really thank for your help rootSU !
Now, everything works like a charm : )
Click to expand...
Click to collapse
Great news. Thanks for letting us know
No SD Card
Sorry if wrong thread but, my problem is:
If I'm in twrp it sees the sdcard and all things on it.
In system it doesn't see the things on the SD card.
Please don't return that I have to do a factory reflash.
If I try to download sth. It gives a toast "No Sd Card" .
I can't take it out because I've got a Nexus 4.
Pls. Help me.

Is it possible to restore dd backups with fastboot?

Hello every one,i recently became familiar with the "dd" command which can backup any partition on ur device e.g you can backup the recovery image to your sd card using dd if=/dev/block/mmcblk0p21 of=/sdcard/recovery.img now my question is,since my phone (Vodafone smart grand 6 vf-696) doesn't have a custom recovery and root and can't restore using "dd of=" since this one writes partitions and requires root,can i make "dd backup" images of my system partition and restore them using fastboot since they are image files?
mabaso said:
Hello every one,i recently became familiar with the "dd" command which can backup any partition on ur device e.g you can backup the recovery image to your sd card using dd if=/dev/block/mmcblk0p21 of=/sdcard/recovery.img now my question is,since my phone (Vodafone smart grand 6 vf-696) doesn't have a custom recovery and root and can't restore using "dd of=" since this one writes partitions and requires root,can i make "dd backup" images of my system partition and restore them using fastboot since they are image files?
Click to expand...
Click to collapse
yes, but you arent going to be able to pull the img's without root.
Alright thanks for the answer..my last question:.. I have a Sony Xperia C with Cwm recovery,i wiped it recently and now i can't mount data,cache and system and in the log in says "cant mount /system:invalid argument".. Can i use the " dd command" on another xperia c to copy the data,cache and system partitions in /dev/block to restore them on my device?
mabaso said:
Alright thanks for the answer..my last question:.. I have a Sony Xperia C with Cwm recovery,i wiped it recently and now i can't mount data,cache and system and in the log in says "cant mount /system:invalid argument".. Can i use the " dd command" on another xperia c to copy the data,cache and system partitions in /dev/block to restore them on my device?
Click to expand...
Click to collapse
sure, but there is no guarantee it will work, and im more leaning towards not.

Categories

Resources