when im typing adb shell, i get error device "null" not found... but i know my fastboot tool is working with my phone
Hi, I followed all the steps but stuck at the unable to set the superblock flags:
C:\>adb shell
~ # ←[6ne2fsck /dev/block/platform/msm_sdcc.1/by-name/persist
e2fsck /dev/block/platform/msm_sdcc.1/by-name/persist
e2fsck 1.41.14 (22-Dec-2010)
/dev/block/platform/msm_sdcc.1/by-name/persist: recovering journal
Superblock needs_recovery flag is clear, but journal has data.
Run journal anyway<y>? y
y
yes
e2fsck: unable to set superblock flags on /dev/block/platform/msm_sdcc.1/by-name/persist
also the "make" command is not working
anyone found the solution for this so far?
thanks!
How did you fix it? My nexus 6 has wifi/bluetooth not working issue after a M update..so i did everything in the guide but now my wifi wont turn back on
EDIT: Nvm I fixed it
$ adb shell
id: unknown ID 2000
[email protected]:/ $ su
su
[email protected]:/ # e2fsck /dev/block/platform/msm_sdcc.1/by-name/persist
e2fsck /dev/block/platform/msm_sdcc.1/by-name/persist
e2fsck 1.42.9 (28-Dec-2013)
e2fsck: Permission denied while trying to open /dev/block/platform/msm_sdcc.1/by-name/persist
You must have r/w access to the filesystem or be root
$ adb shell
~ # [6ne2fsck /dev/block/platform/msm_sdcc.1/by-name/persist
e2fsck /dev/block/platform/msm_sdcc.1/by-name/persist
e2fsck 1.42.9 (28-Dec-2013)
/dev/block/platform/msm_sdcc.1/by-name/persist: clean, 15/1024 files, 1109/4096 blocks
~ # [6nmake_ext4fs /dev/block/platform/msm_sdcc.1/by-name/persist
make_ext4fs /dev/block/platform/msm_sdcc.1/by-name/persist
Creating filesystem with parameters:
Size: 16777216
Block size: 4096
Blocks per group: 32768
Inodes per group: 1024
Inode size: 256
Journal blocks: 1024
Label:
Blocks: 4096
Block groups: 1
Reserved block group size: 7
Created filesystem with 11/1024 inodes and 1102/4096 blocks
[email protected]:/ # e2fsck /dev/block/platform/msm_sdcc.1/by-name/persist
e2fsck 1.41.14 (22-Dec-2010)
e2fsck: Attempt to read block from filesystem resulted in short read while tryin
g to open /dev/block/platform/msm_sdcc.1/by-name/persist
Could this be a zero-length partition?
8|[email protected]:/ #
same issue here.How did you fix it? My nexus 6 has wifi/bluetooth not working issue after a M update..
You're doing it right. You need to show hidden files, though. The two files have a . as the first character. Mac (and UNIX and Linux) see . as a hidden file.When I download the .rar file and extracted it, the file was empty. Im using a mac, does anybody still have that file or am I doing something wrong?
Big thanks, found it!You're doing it right. You need to show hidden files, though. The two files have a . as the first character. Mac (and UNIX and Linux) see . as a hidden file.
Sent from my TARDIS
My Nexus 5 has same issue. But, i don't known how to Root it.What is the persist partition?
Persist is partition mounted at /persist. It has ext4 file system. DRM releated files, sensor reg file (sns.reg), wifi and bluetooth mac addresses are stored there.
If you experience the following issues:
then your persist partition have to be fixed.
- Can't access to internal storage.
- No signal even after formating cache and fastboot flash cache.img
- IMEI number is lost even after formating cache and fastboot flash cache.img
- Boot loop on Lollipop 5.0 and above
- You get "e: cannot mount /persist" in recovery
Requirements to proceed:
- Ability to use adb command.
- TWRP or Philz touch recovery.
- Universal Naked Driver for recovery. (Windows users)
- Root.
Setting up adb, rooting and installing drivers are not part of this guide. If you have to do that then please use @rootSU's great thread to find the guides you need.
Let's start!
- Reboot your phone to recovery.
- Connect USB cable.
- Open CMD or Terminal application.
- Enter following commands in CMD or Terminal application:
You should be prompted to repair or fix errors. Keep pressing enter until the process finishes.
If you are not prompted for repair or you still have problems then follow my instructions.
- Get to that point again when you entered the adb shell command then type the following command:
- Reboot your phone.
Now all your problems should be gone now, but your wifi and bluetooth addresses should be fixed to prevent further problems or bugs.
- Download this rar file.
- Extract it.
- (Linux users should enable show hidden files)
- Open .bdaddr with a hexeditor.
- You should see following:
- Change the last three 00 to something else.
- You can use 0-9 numerals and A-F letters.
- Save the modified .bdaddr.
- Open .macaddr with a hexeditor.
- You should see the following:
- Change the last three 00 to something else.
- You can use 0-9 numerals and A-F letters.
- Save the modified .macaddr.
- Copy both files to your sdcard.
- Enable USB debugging on the phone.
- Open CMD or Terminal application. (If you closed it)
- Enter following commands in CMD or Terminal application:
- Grant access on the phone.
Reboot your phone. All your problems should have gone now. You can delete .bdaddr and .macaddr from your sdcard.
About the other files:
SNS.reg will be regenrated, but the DRM releated files will not. Nobody ever complained about the missing DRM files, but I still want to make it possible to restore them. If anyone could make an md5 checksum about the files on the persist partition that would be great.