I have european version t6 16gb. Can someone give me a mmcblk0 dump, i have brick my phone hard, service center can't help. I think the dump, you can to make so
( i found this instruction on ru thread, but nobody has uploaded a dump
In general, you first need to put the Root and Busybox Pro. Then observe and record Root explorer path where installed. It so happens that is placed in / system / bin / busybox and sometimes in the / system / xbin / busybox. Then download Cygwin start the installation, specify the installation path C: \ cygwin64
Further, during the installation himself appears the list of packages in which it is necessary to select the following items:
- In paragraph Devel all sub-items whose name begins with the letters gcc (they go in a row = 10 pieces)
- In paragraph Debug sub pv-debugininfo
- In paragraph Utils sub pv
Download the add-on for Cygwin, which is called Netcat here:
unzip all the files in the directory C: \ cygwin. The main thing that would be located in the archive, in the bin folder, file nc.exe
move to the folder C: \ cygwin \ bin. I took the version 1.12 Then download the ADB
Unpack the archive in the folder C: \ cygwin \ bin in the folder C: \ cygwin create a folder called, for example, the VHD.
Download the file VHDtool.exe https: //drive.google.c...hGeEE/view usp = sharing?
Copy it into the folder C: \ cygwin \ VHD This initial training is completed.
Connect your phone to a computer and run Cygwin.bat
Next, enter the following text line by line (Note:
In order to avoid being tortured on the clave, you can copy-paste to copy this sdes line and Cygwin-e klatsat on cap
window, right-click - edit - paste)
adb forward tcp: 5555 tcp: 5555
adb shell
su
/ System / xbin / busybox nc -l -p 5555 -e / system / xbin / busybox dd if = / dev / block / mmcblk0 (and here we must remember where
busybox installed in xbin or bin, which should be the correct.)
This window does not close.
Open another Cygwin terminal (Cygwin.bat) and enter:
adb forward tcp: 5555 tcp: 5555
cd / VHD
nc64 127.0.0.1 5555 | pv -i 0.5> mmcblk0.img
replace 127.0.0.1 ip phone on the network (if connected on Wi-Faya look at the connection properties)
Note: Look carefully at the command input terminal. Sometimes when copying slips such prefix: [Gi EEE should be washed.
After all this is completed will dump up in the folder C: \ cygwin \ VHD. File mmcblk0.img if it enters the 9008 port to write to a micro SD program (run as administrator)
Recording to a USB flash drive. Further instructions on the USB flash drive and then the computer can be formatnut a normal file system only on Linux or formatnut on the phone. Wind will not see her.
Related
V10K root guide (for advanced windows and linux users)
Download requiement apps:
LGExtract-0.2.1
DZDecryptor_v1.0b
UPDATE-SuperSU-v1.10
Download V10K firmware:
http://lg-phone-firmware.com/index.php?id_mod=13
I. Unpack KDZ file
1. Unpack LGExtract-0.2.1.zip to C:/LGExtract-0.2.1
2. Copy V10K_00.kdz file to extracted folder
3. Open command prompt
cd C:/LGExtract-0.2.1
LGExtract -kdz V10K_00.kdz
4. Unpack V10K_00.cab with WinRAR
5. Rename LGP700AT-00-V10k(...).dz to V10K_00.dz
II. Unpack DZ file
1. Unpack DZDecryptor_v1.0b to C:/DZDecryptor_v1.0b
2. Copy V10K_00.dz to C:/DZDecryptor_v1.0b
3. Move V10K_00.dz file on DZDecrypt.exe
4. Open command prompt
cd C:/DZDecryptor_v1.0b
dzdecrypt V10K_00.dz
5. Now you have "system.img.ext" file
III. Mount and edit system image under linux (ubuntu)
1.Copy "system.img.ext" to desktop
2. Open command prompt
sudo mkdir /mnt/system/
sudo mount -o loop /home/ubuntu/Desktop/system.img.ext /mnt/system
3. Now unpack system folder from "UPDATE-SuperSU-v1.10.zip" to desktop
sudo cp /home/ubuntu/Desktop/system/xbin/su /mnt/system/xbin
sudo cp /home/ubuntu/Desktop/system/app/Superuser.apk /mnt/system/app
sudo chown 0.0 /mnt/system/xbin/su
sudo chmod 06755 /mnt/system/xbin/su
sudo chown 0.0 /mnt/system/app/Superuser.apk
sudo chmod 644 /mnt/system/app/Superuser.apk
sudo umount /mnt/system
Now replace system.img.ext4 file under flashing nad enjoy rooted phone
Move your system.img.ext4 to C:\ProgramData\LGMOBILEAX\ and start updating V10K_00.kdz
Wait untill KDZ create Phone folder and create other system.img.ext4. When file reach 483MB move file to desktop
Then move your system.img.ext4 from C:\ProgramData\LGMOBILEAX\ to C:\ProgramData\LGMOBILEAX\Phone\
Wait to end update
Thanks, I'll try that out asap!
One thing, though - are you sure your chmod invocation is correct? "755" octal doesn't set the SUID bit on the executable; don't you need "4755" (for /mnt/system/bin/su) there?
Where do I get the KDZ file from - is it possible to copy that off/extract it out of my phone somehow? If I have to download it from some filehosting site, does it matter which version I get? (My phone is unbraded, bought without simlock or a contract, and I'd like to retain that status.)
This is method for rooting all (branded, unbranded, other country) V10K firmware (latest version)
Firmware download link added to thread
Linux terminal commands corrected
OK, I prepared the filesystem image like you said and planted the binaries with SETUID/SETGID bits set and owned by root:root. Everything went fine so far - pardon my ignorance when I ask, though - how do I get that filesystem Image into a "kdz" file in order to flash it onto the phone now?
You must flash system image like custom rom (by swap system image when kdz file is flashed)
With DZCreator_v1.0c maybe we can create dz file (next compress into cab and encrypt into kdz) but we don't have some info about original dz file (like dz split size, sub files offset etc)
That superuser.apk , the permission are 655, is that correct permission?
chmod 655 are set to rw-r-xr-x , meanwhile system app must set to rw-r--r-- (644)
Anyone have idea how to add init.d and script to install busybox and delete itself ?
I got V20A jellybean rooted
Note: I'm just sharing the work of the XDA member.This guide was tested on Galaxy Y GT-S5360.Here's a little introduction:
scandiun said:
INFORMATION
This guide is intended to make a full backup of your android phone (the entire memory block with all partitions) or a single partition (including sdcards, etc) directly to your computer, in either
Block level (with dd): for single partitions or whole memory block (all partitions in one piece). The backup always has the same size which is the size of the partition.
File level (with tar): only for individual partitions. This only includes files and folders, so occupies much less space, depending on how much filled is the partition.
It can be done with the phone powered on or from ClockWorkMod Recovery (from both ADB works, while in Fastboot doesn't so won't apply). Unless specified the commands meant to be used from Windows. For Linux and Unix is similar.
REQUIREMENTS
Rooted Android Phone
Busybox installed on your phone
If you are using Linux / OS X you have native tools, for Windows download Cygwin, and install with it netcat, pv and util-linux. Get them from Cygwin's setup.exe
ADB installed.
Make sure adb.exe is in your windows' path. See here and here, or use Path Manager.
Android phone with USB Debugging enabled, and the proper drivers installed on Windows so the phone is recognized. Typing 'adb devices' on a terminal should show your device.
PARTITION IDENTIFICATION
You now have to identify the partition or block device that you want to backup. For a single partition you can use either tar or dd, while for the entire memory block you can only use dd.
For example, on Galaxy Nexus you have the list of partitions here and for Galaxy S2 here.
Usually on android, the entire block containing all partitions is located at /dev/block/mmcblk0 and the data partitions is a subpartition of it. You can push parted with GPT support to your device and see all information on a partition or block.
Whole phone memory -> /dev/block/mmcblk0 (may vary, in some phones this is the sdcard)
Subpartitions -> depends on each device. Usually at /dev/block/platform/dw_mmc/by-name/ there are listed by name linking to the real device.
Back up of the whole memory block (via adb)
Connect the phone in ADB mode and unlock the screen.
Open one Cygwin Terminal and enter (replace mmcblk0 if needed):
Code:
adb forward tcp:5555 tcp:5555
adb shell
su
/system/xbin/busybox nc -l -p 5555 -e /system/xbin/busybox dd if=/dev/block/mmcblk0
You will see the cursor blinking at the left. Now the phone is waiting to send the block over the network.
Open another Cygwin terminal and type:
Code:
adb forward tcp:5555 tcp:5555
cd /path/to/store/the/backup
nc 127.0.0.1 5555 | pv -i 0.5 > mmcblk0.raw
You will see how the image size is growing until it finishes. Now you have the whole phone backed up in raw format. You can see the contents of the GPT partition with gptfdisk tool, available for windows, linux and such. See official website and sourceforge to get it. You can do it the same from ClockWorkMod Recovery but you have to mount first the /system partition since the busybox included with clockworkmod does not come with netcat and you have to use the one from the system partition.
With further linux tools you could edit or extract single partitions from the whole block.
You can use adb via wifi as well with applications like WiFi ADB.
Back up of the whole memory block (via wifi)
Original post: [Q] Nandroid directly to computer w/o sdcard
We need to install a FTP server on the computer or the other device, configure a user with a password if we want to, and set some port. It uses by default 21 but this example uses 40. We must set a home dir for the user with write permissions.
Usually is a good idea to put myfifo in /cache not in /data because we may overwrite sensitive data in case we want to use that raw image for data recovery.
Open one Cygwin terminal
Code:
adb shell
su
mkfifo /cache/myfifo
ftpput -v -u user -p pass -P 40 COMPUTER_IP block.raw /cache/myfifo
Open another Cygwin terminal
Code:
adb shell
su
dd if=/dev/block/mmcblk0p12 of=/cache/myfifo
Tips:
- Fifos only can be made on linux native filesystems, for example on a FAT partition is not possible.
- Reading from a partition does not modify it.
Now check on Filezilla Server the speed
Back up of the whole memory block (USB tethering, Wifi tethering)
To use tethering you have to disconnect the computer from all networks and connect it only to the phone with the type of connection you want.
Once you connect it, you can view the IP of the computer and the IP of the phone from connection properties. The ip is the computer ip and the gateway is the phone's ip.
Wifi Tethering: Computer Phone Internet
USB Tethering:
Computer Phone Internet
Conputer Phone Internet
This is exactly the same as via wifi, except that the transfer speed is much higher because the computer and the phone are directly connected, instead of using a router as a gateway. In this case, the gateway is the phone. USB tethering has the highest transfer rate.
Back up of a single partition (raw = every bit of the partition)
It is exactly the same as the the previous but replacing mmcblk0 by the corresponding partition. You can use in this particular case several software to read the partition from windows, depending on partition filesystem: DiskInternals Linux Reader, Ext2Read, Ext2 File System Driver for Windows, Ext4Explore, plugin for Total Commander and ImDisk Virtual Disk Driver. You can also use recovery software on individual partitions like Recuva in combination with VHD Tool or command line tools included with operating systems.
Back up of a single partition (tar = only files and folders)
In this case, you need the partition mounted. To see the list of mounted partitions type on Cygwin Terminal
Code:
adb shell mount
Now you need to know where is mounted the partition you want to backup, for example the firmware is mounted on /system, which is the ROM.
In this case you will have to open three terminals, because of android limitations:
Open one Cygwin terminal and create a fifo, in /cache, for example, and redirect the tar there
Code:
adb forward tcp:5555 tcp:5555
adb shell
su
/system/xbin/busybox mkfifo /cache/myfifo
/system/xbin/busybox tar -cvf /cache/myfifo /system
We have to do it this way because redirecting the tar to stdout (with - ) is broken on android and will corrupt the tar file.
Open a second Cygwin terminal and type:
Code:
adb forward tcp:5555 tcp:5555
adb shell
su
/system/xbin/busybox nc -l -p 5555 -e /system/xbin/busybox cat /cache/myfifo
Open a third Cygwin terminal and type:
Code:
adb forward tcp:5555 tcp:5555
cd /path/to/store/the/backup
nc 127.0.0.1 5555 | pv -i 0.5 > system.tar
You can browse the tar file with Winrar, Total Commander, PeaZip and almost any compression tool. Note that you shouldn't extract files or edit it since the tar format saves the permission and owner data for each file, that is lost when extracted to FAT / NTFS partitions and you will mess things when restoring.
LINKS
[GUIDE] Internal Memory Data Recovery - Yes We Can!
How to Create and Attach a Virtual Hard Disk in Windows 7
[Guide] Types of Android backups
Click to expand...
Click to collapse
Original Thread : http://forum.xda-developers.com/showthread.php?t=1818321
And here is the guide to make nandroid backup through terminal app in android with switching off the phone in sdcard!!!
http://forum.xda-developers.com/showthread.php?t=1620255
Loyal AMLOGIC fanboy here messing around with a CS918 for only the third time . . . .
I am trying to run a shell to unpack an archive, there's a smali file that downloads the archive to /sdcard/Android/data, this part works fine.
The SH should then unpack to the same directory, this part fails.
My question is, does the directory path format require changing depending on your action (even though it's all going to the same place)?
I unpacked the rom's IMG file to see how other scripts are interacting with the filesystem and am seeing the following paths used by different files - but they all go to the same place:
/data/user/0/
/mnt/sdcard/Android/data/
/data/data/
Here is what the .sh file is trying to accomplish:
tar -xf /sdcard/Android/data/settings.tar -C /sdcard/Android/data/
rm /sdcard/Android/data/settings.tar
For the record, this works flawlessly on AMLOGIC using the path:
/storage/emulated/legacy/Android/data
Just incase anyone comes across this via searching:
The correct path is /mnt/sdcard/Android/data/ - but you have to run the batch as root
Hi!
So i create a simple batch so like that we can copy a directory by drag and drop to any location.
Nothing expecial untill now but, the bacth do this:
Spoiler: Copy Options
If Source is a directory or contains wildcards and Destination does not exist, xcopy assumes Destination specifies a directory name and creates a new directory. Then, xcopy copies all specified files into the new directory. By default, xcopy prompts you to specify whether Destination is a file or a directory.
Copies directories and subdirectories.
Copies all subdirectories, even if they are empty.
Verifies each file as it is written to the destination file to make sure that the destination files are identical to the source files.
Copies files and retains the read-only attribute on Destination files if present on the Source files. By default, xcopy removes the read-only attribute.
Copies files with read-only attribute.
Copies files with hidden and system file attributes. By default, xcopy does not copy hidden or system files.
Copies file ownership and discretionary access control list (DACL) information.
Copies file audit settings and system access control list (SACL) information (implies /o).
Copies files without buffering. Recommended for very large files.
Like this we can do full copy with full tree and files attributes.
Batch works like Drag and drop over the batch and only will request to write/paste destination.
This is the batch:
Spoiler: Xcopy_Full_directory.bat
Code:
@echo off & @echo.
:: BatchGotAdmin
:-------------------------------------
REM --> Check for permissions
IF "%PROCESSOR_ARCHITECTURE%" EQU "amd64" (
>nul 2>&1 "%SYSTEMROOT%\SysWOW64\cacls.exe" "%SYSTEMROOT%\SysWOW64\config\system"
) ELSE (
>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
)
REM --> If error flag set, we do not have admin.
if '%errorlevel%' NEQ '0' (
@echo. & @echo [31mRequesting administrative privileges...[0m
goto UACPrompt
goto UACPrompt
) else ( goto gotAdmin )
:UACPrompt
echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
set params= %*
echo UAC.ShellExecute "cmd.exe", "/c ""%~s0"" %params:"=""%", "", "runas", 1 >> "%temp%\getadmin.vbs"
"%temp%\getadmin.vbs"
del "%temp%\getadmin.vbs"
exit /B
:gotAdmin
rem :To CD to the location of the batch script file (%0)
CD /d "%~dp0"
for %%a in (%*) do (
set "Sname=%~$PATH:1"
set "Dname=%~n1"
set /p root=" Write destination root here: "
)
@echo.
Xcopy /i /s /e /v /f /k /r /h /o /x /j "%Sname%" "%root%\%Dname%"
pause
I created so like this i can copy the files from Windows 11 that are in pendrived created by Media Creation Tool without lossing files propertys.
I hope this helps you to!
@jenneh check this bat, maybe helps you with something.
@persona78 You have no idea how much your posts have helped me. Some people do not understand that there are those of us that learn differently and are brand new, so you taking the time helps weirdos like me learn :>
1 month ago I was using win 11 and when I entered this computer, the images downloaded and other disks were visible, then I used linux for 1 month, 1 month later I realized that linux was not for me and went back to win 11. I installed the latest win 11 iso file, and when I go to this computer folder, only the local disk folder appears, not the folders such as downloads images. how can i solve this problem?
Delete all partitions and create only one ntfs.
I suppose the method of installation you have done was wrong, CLEAN install the W11 using NTFS, when there's question asking to select partition when installation screen, delete all drive including RESERVED bla bla bla .. make sure there's only 1 drive while installing W11 ..
the rest of the standard partition and folders will be created automatically, do post the new screenshot after you have done those ..
This may cause because you have not set the file permission for windows 11 and you have deleted your linux os, in this scneario you can try the attrib command for this.
Attrib -r *.* — to change file permissions on all files in folder recursively.
Attrib
Displays, sets, or removes the read-only, archive, system, and hidden attributes assigned to files or directories. Used without parameters, attrib displays attributes of all files in the current directory.
Syntax
attrib [{+r|-r}] [{+a|-a}] [{+s|-s}] [{+h|-h}] [[Drive:][Path] FileName] [/s[/d]]
Top of page
Parameters
+r : Sets the read-only file attribute.
-r : Clears the read-only file attribute.
+a : Sets the archive file attribute.
-a : Clears the archive file attribute.
+s : Sets the system file attribute.
-s : Clears the system file attribute.
+h : Sets the hidden file attribute.
-h : Clears the hidden file attribute.
You can also refer to the following article that might help you Folder Access Denied Error on Windows 11