yashsingh1/xdaforums huggingface dataset:
[One (M7) Q&A, Help & Troubleshooting] basv81:
No problem :) I have to go to sleep too because of the same.

cat /proc/emmc responds as follows:

C:\Users\Bas\Desktop\HTC_One_files\HTCOneRoot\HTCOneRoot>adb shell
adb server is out of date. killing...
* daemon started successfully *
~ # ←[6ncat /proc/emmc
cat /proc/emmc
dev: size erasesize name
mmcblk0p19: 000ffa00 00000200 "misc"
mmcblk0p34: 00fffe00 00000200 "recovery"
mmcblk0p33: 01000000 00000200 "boot"
mmcblk0p35: 73fffc00 00000200 "system"
mmcblk0p26: 00140200 00000200 "local"
mmcblk0p36: 27fffe00 00000200 "cache"
mmcblk0p37: 680000000 00000200 "userdata" <<----------
mmcblk0p22: 01400000 00000200 "devlog"
mmcblk0p24: 00040000 00000200 "pdata"
mmcblk0p27: 00010000 00000200 "extra"
mmcblk0p31: 04b00200 00000200 "radio"
mmcblk0p16: 03c00400 00000200 "adsp"
mmcblk0p15: 00100000 00000200 "dsps"
mmcblk0p17: 007ffa00 00000200 "radio_config"
mmcblk0p20: 00400000 00000200 "modem_st1"
mmcblk0p21: 00400000 00000200 "modem_st2"
mmcblk0p28: 00100000 00000200 "cdma_record"
mmcblk0p18: 02000000 00000200 "reserve_1"
mmcblk0p30: 034ffa00 00000200 "reserve_2"
mmcblk0p32: 05fffc00 00000200 "reserve_3"
mmcblk0p29: 06069e00 00000200 "reserve"

~ # ←[6nmount
mount
rootfs on / type rootfs (rw)
tmpfs on /dev type tmpfs (rw,nosuid,relatime,mode=755)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)

I don't dare to format the partition yet (http://xdaforums.com/showthread.php?t=2504542&page=9&p=47046727 and onwards). I'm online in the vicinity of my phone again tomorrow night after 8/9PM CET and Thursday night. After that it will be after the weekend.
[One (M7) Q&A, Help & Troubleshooting] nkk71:
Anyway back to your thread, so /data isn't mounting, even if encrypted it should mount, but not be readable.

Here's what I'd like you to do, reboot to recovery, then:

adb shell

# e2fsck -v -f /dev/block/mmcblk0p37

and let's see if it ask for repair of any kind
[One (M7) Q&A, Help & Troubleshooting] basv81:
This first part is working by the way: adb push worked when I used another USB port on my PC. I can see the two zip files I pushed, but cannot install them.
[One (M7) Q&A, Help & Troubleshooting] basv81:
~ # ←[6ne2fsck -v -f /dev/block/mmcblk0p37
e2fsck -v -f /dev/block/mmcblk0p37
e2fsck 1.41.11 (14-Mar-2010)
e2fsck: Superblock invalid, trying backup blocks...
e2fsck: Bad magic number in super-block while trying to open /dev/block/mmcblk0p37

The superblock could not be read or does not describe a correct ext2
filesystem. If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>

I think I know what happened: I got my work e-mail on the phone, so the storage is encrypted. That's probably the reason that I don't see any files in there. Only problem is that I can't boot the phone to undo the encryption.
[One (M7) Q&A, Help & Troubleshooting] nkk71:
Yeah, I understand.

Now, let's look at your current situation:

1- either /data is really corrupted

2- /data is encrypted and you can't access it because you have no functioning ROM

case 1: you'll have to either "fix" it, or "real format" it

case 2: use adb sideload to get a ROM installed (hopefully), and it might ask you to unlock the filesystem. like I said, I've never used encrypted fs before so I cant really answer that.

I guess if you want to try, go for adb sideloading a ROM and see how that turns out. since you were able to push files, but not flash them, sideload may actually end up doing the job.
[One (M7) Q&A, Help & Troubleshooting] basv81:
adb sideload is not working, device in twrp says:

E:Unable to mount '/data'

PC says:

C:\Users\Bas\Desktop\HTC_One_files\HTCOneRoot\HTCOneRoot>adb sideload cm-10.1.3-m7ul.zip
error: closed

Maybe I can give adb install a shot?
[One (M7) Q&A, Help & Troubleshooting] nkk71:
Don't know "adb install", never tried (or heard) of that, but honestly mate, don't think anything short of formatting it is going to work. If you recheck the other post: http://android-revolution-hd.blogspot.com/2013/10/fix-data-htc-one.html

It's obvious /data is not getting mounted AT ALL, so I (again I as in me personally) can think of only two reasons:

1- hardware fault :( bad, has to go to repair

2- partition corrupt, and could be fixed by a "real format" not just a wipe.
[One (M7) Q&A, Help & Troubleshooting] basv81:
Any idea how to real format the internal storage without being able to mount from twrp? In multiple threads I see that people mount the internal storage and format the internal storage from windows to fat32 and after that they are able to install a rom from twrp...
[One (M7) Q&A, Help & Troubleshooting] nkk71:
Hey [MENTION=5527318]basv81[/MENTION], I'm leaving this for you cause I'm probably not going to be online tonight:

I don't think you will be able to do this. TWRP and CWM, although they say "format", what it actually does is only wipe the contents of the partition. Since TWRP is unable to mount it, means it's really corrupt. not only /data/media (internal storage), but the whole /data partition.

If you read through this post: http://android-revolution-hd.blogspot.com/2013/10/fix-data-htc-one.html

You can clearly see it pretty much applies to your case: "E:Unable to mount '/data'" and e2fsck reporting error.

I would follow the repair instructions from that article, basically (while in recovery):

download this: http://goo.gl/pmZ9Mt, then

adb push mkfs.ext4 /tmp

adb shell

chmod 777 /tmp/mkfs.ext4

/tmp/mkfs.ext4 -b 4096 -O ^huge_file,^dir_nlink,^ext_attr,^resize_inode,^extra_isize -m 0 /dev/block/mmcblk0p37

(EDIT: there should not be a space in ^extra_isize, something to do with the forum)

/tmp/mkfs.ext4 -b 4096 -O ^huge_file,^dir_nlink,^ext_attr,^resize_inode,^extra_isize -m 0 /dev/block/mmcblk0p37

that last command is quite long and not the easiest :eek:, so I recommend you type is in very slowly, and be particularly careful with extra or missing spaces, check the link above to make sure it's correct. (it didn't work for the other guy I mentioned cause I told him to copy/paste it, but that introduced an extra space which we both overlooked; so we had to solve it using e2fsck, which in your case is not able to fix the filesystem :().

Once formatting is complete, you need to recreate the /data/media folder, so while still in the adb shell:

mount /data

mkdir -p /data/media/0

then you can use adb push or sideload to get your phone working.

Good luck, and post back with hopefully positive results :fingers-crossed:
[One (M7) Q&A, Help & Troubleshooting] basv81:
First of all: SOLVED! :victory:

Checked if my device was connected properly:

C:\Repair_HTC_One_m7ul>adb devices
adb server is out of date. killing...
* daemon started successfully *
List of devices attached
H*********** recovery

As that was the case I continued. First I read the topic nkk71 suggested: http://android-revolution-hd.blogspot.nl/2013/10/fix-data-htc-one.html

First of all I pushed the downloaded mkfs.ext4 file to my device:

C:\Repair_HTC_One_m7ul>adb push mkfs.ext4 /tmp

3255 KB/s (3537143 bytes in 1.061s)

After that, I changed the file's permissions and executed it with the long command:

C:\Repair_HTC_One_m7ul>adb shell
~ # ←[6nchmod 777 /tmp/mkfs.ext4
chmod 777 /tmp/mkfs.ext4
~ # ←[6n/tmp/mkfs.ext4 -b 4096 -O ^huge_file,^dir_nlink,^ext_attr,^resize_inode,^extra_isize -m 0 /dev/block/mmcblk0p37
/tmp/mkfs.ext4 -b 4096 -O ^huge_file,^dir_nlink,^ext_attr,^resize_inode,^extra_isize -m 0 /dev/block/mmcblk0p37
mke2fs 1.41.12 (17-May-2010)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
1703936 inodes, 6815744 blocks
0 blocks (0.00%) reserved for the super user
First data block=0
208 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000

Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 24 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.

I mounted the /data folder and made directory /data/media/0. After that I quitted the shell.

~ # ←[6nmount /data
mount /data
~ # ←[6nmkdir -p /data/media/0
mkdir -p /data/media/0
~ # ←[6nexit
exit

I pushed the latest stable Cyanogenmod ROM to my device, including the corresponding Google Apps (so my android keyboard keeps working when I install it):

C:\Repair_HTC_One_m7ul>adb push cm-10.1.3-m7ul.zip /data/media/0
3284 KB/s (187979506 bytes in 55.886s)

C:\Repair_HTC_One_m7ul>adb push gapps-jb-20130812-signed.zip /data/media/0
3516 KB/s (100751136 bytes in 27.981s)

In twrp:

install

navigated to CM10.1.3 zip-file

installed CM10.1.3 zip-file

Rebooted to bootloader, so I can flash the boot.img again (AFTER installing CM) ;)

C:\Repair_HTC_One_m7ul>fastboot flash boot boot.img
sending 'boot' (5558 KB)...
OKAY [ 0.993s]
writing 'boot'...
OKAY [ 0.514s]
finished. total time: 1.510s

Rebooted system to see if CM10.1.3 would start for first run. It did, YAY, so I rebooted to recovery again to install Google apps.

Entered recovery (twrp):

install

navigated to gapps zip-file

installed gapps zip-file

wiped cache/dalvik

Many, many thanks to [MENTION=2605798]nkk71[/MENTION] for all support you've given. Without you I'd still be hopelessy stuck!
[One (M7) Q&A, Help & Troubleshooting] nkk71:
Congrats mate !! :good::good: :victory::victory:

I've bookmarked your thread :D I've been lurking around this forum for quite some time, and this is the only other case I have seen with a completely corrupt /data partition. So thanks for posting all the details!!

Well done!!!

Can I just ask you to edit the main thread title to include [SOLVED] for others should they refer to it. Thanks

& have a good evening

EDIT: and most credit goes to [MENTION=1631739]mike1986.[/MENTION] for the excellent article!! thank you sir!!
[One (M7) Q&A, Help & Troubleshooting] TAM1m:
Can someone tell me how long it should take?

I'm stuck here for 15 minutes

/tmp/mkfs.ext4 -b 4096 -O ^huge_file,^dir_nlink,^ext_attr,^resize_inode,^
extra_isize -m 0 /dev/block/mmcblk0p37
mke2fs 1.41.12 (17-May-2010)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
1703936 inodes, 6815744 blocks
0 blocks (0.00%) reserved for the super user
First data block=0
208 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000

Writing inode tables: done
Creating journal (32768 blocks):
[One (M7) Q&A, Help & Troubleshooting] nkk71:
don't think it would take that long, but i never tried myself; you did check with e2fsck first right? and you made sure it's the correct partition number?
[One (M7) Q&A, Help & Troubleshooting] basv81:
I'm pretty sure this step was finished within 5-10 minutes. Maybe less than 5 minutes :)
[One (M7) Q&A, Help & Troubleshooting] jmotyka:
Can someone please uploade the mkfs.ext4 file of the tutorial. Ive searched everywhere for that file and all links are down. Im in a pickle here!!!!
[One (M7) Q&A, Help & Troubleshooting] only_love:
Not geeting Mounted data

WHen i Miunted data using comman it said error and when i push rom.zip said

C:\mini-sdk>adb push rom.zip /data/media/0

cannot read 'rom.zip': Input/output error

2462 KB/s (540278784 bytes in 214.264s)
[One (M7) Q&A, Help & Troubleshooting] bored_stupid:
There you go

https://www.dropbox.com/s/0gz9bzsmwkn3fqy/mkfs_ext4.rar

Sent from my HTC One using Xparent Skyblue Tapatalk 2
[One (M7) Q&A, Help & Troubleshooting] nassie:
Hi Guys

i have a similar problem but am a noob to all of this fastboot and coding can some one guide me through the steps from beginning my phone is stuck in softbrick because of a bad software upgrade i ask some to upgrade my device and they install the m8 custom rom instead of the m7 and now am brick. I stayed up all night last night trying to fix but i guess i only made it worst because recovery mood stop work i know this thread is close but i really need help most the things i read i dont understand and i really need my phone back up and running :crying: please help me.

i tried running fastboot flash recovery <twrp>.img and my result was (the system cannot find the file specified)

What am i doing wrong?

My Phone is in fast boot but in command promp it say fastboot is not recognize as an internal or external command

Some info on my mobile its the international unlock version was running 4.3 before bricking my hboot is 1. 5 5

my bootloader is unlock as the phone was rooted but recovery mood is corrupt and not working

Someone help me please
[One (M7) Q&A, Help & Troubleshooting] nkk71:
get this: http://www.androidfilehost.com/?fid=23329332407585867

extract the files using WinRAR into a separate folder

place all other downloaded files into that folder, for further use

then follow the instructions on page 3 of the Frequently Asked Question sticky (which you should check anyways).
[One (M7) Q&A, Help & Troubleshooting] nassie:
Thanks

Thanks so much bro am doing it now :o and will update you when am finish ;)

i tried fastboot flash recovery openrecovery-twrp-2.6.3.3-m7.img in cmd and it keeps telling me waiting for device

i think fastboot maybe corrupted on my device

how can i fix this ?

so i right click computer and went to device manager and saw my phone as android 1.0 with a yellow on it so am guessing maybe it could be driver related

i deleted the drive and try the code again and its still waiting for device so i guess its the phone i have tried other cable and same result please help

i saw online that you can run a ruu.exe but i cant find the one for my phone as its a latin america unlock version my cid is 332 the pn0711000 before it was brick i was on 4.3 root just some more info for anyone who wanna help me :)

something is very wrong i found the the htc one toolkit install the drivers and my phone still not being recognize by the pc and i try a nexus 7 and no problem i really need some help please anyone

finally got the phone to pick up and all i need now is a a copy of os

can you send me a link for a stock rom please for the unlock international version of m7 u modelid: PN0711000

Install java should fix the issue :)
[One (M7) Q&A, Help & Troubleshooting] nassie:
so am still up still soft brick and is in need of help very bad

i download a ruu file that was exe that did not work and now i got a zip one and i don't know how to install it when i extract it its all img files and my bootloader is also locked and i don't know how to open it back please help me please i really need back my phone am without out a phone for 2 days now going on 3
[One (M7) Q&A, Help & Troubleshooting] nassie:
help me bro please at least tell me how to find the right ruu for my device
[One (M7) Q&A, Help & Troubleshooting] nkk71:
there is no RUU for HTC__332 as far as I know, can you post output of your "fastboot getvar all" (excluding IMEI and s/n) and what is your goal
[One (M7) Q&A, Help & Troubleshooting] nassie:
ok bro

ok here is post of my fastboot getvarall

C:\Users\P\Desktop\mini-sdk-1.0.31-windows>fastboot getvar all

< waiting for device >

(bootloader) version: 0.5

(bootloader) version-bootloader: 1.55.0000

(bootloader) version-baseband:

(bootloader) version-cpld: None

(bootloader) version-microp: None

(bootloader) version-main:

(bootloader) version-misc:

(bootloader) serialno:

(bootloader) imei:

(bootloader) meid:

(bootloader) product: m7_u

(bootloader) platform:

(bootloader) modelid: PN0711000

(bootloader) cidnum: HTC__332

(bootloader) battery-status: good

(bootloader) battery-voltage: 4280mV

(bootloader) partition-layout: Generic

(bootloader) security: on

(bootloader) build-mode: SHIP

(bootloader) boot-mode: FASTBOOT

(bootloader) commitno-bootloader: dirty-e0349bfc

(bootloader) hbootpreupdate: 11

(bootloader) gencheckpt: 0

all: Done!

finished. total time: 0.041s

C:\Users\P\Desktop\mini-sdk-1.0.31-windows>^A

i found a back up online from some with my cidnum but i don't know what to do with it

i bin trying different exe ruu all nigh what do i do now my bootloader is lock
[One (M7) Q&A, Help & Troubleshooting] nkk71:
1- edit your post and remove IMEI and S/N

2- there is no RUU for your model

3- you may want to consider getting S-OFF

4- what do you want to achieve??
[One (M7) Q&A, Help & Troubleshooting] nassie:
thanks for helping me bro

i will do anything i just want my phone back up and running thanks for helping me could you send me a link on how to do s off and what to do after

until i have a working phone
[One (M7) Q&A, Help & Troubleshooting] nkk71:
to get s-off you'll need a working phone, and it's something you can consider later; if you don't know what s-off is and what it can do, maybe best to stay away from it, because you can seriously brick your phone.

but i don't understand the problem, if you follow the instructions on page 3 of the frequently asked questions thread, it has all the information about how to flash recovery, format your phone, push a ROM and install it.

you can find some nice ROMs in the Development section
[One (M7) Q&A, Help & Troubleshooting] nassie:
thanks bro

thanks bro quick question how will i know which rom will work and also how do i open back my bootloader thanks in advance
[One (M7) Q&A, Help & Troubleshooting] nkk71:
your bootloader should be UNLOCKED, if it's not then you use HTCdev to unlock it again (you get an unlocktocken.bin and use fastboot to unlock your phone: http://xdaforums.com/showthread.php?t=2260376 )

Here are a few popular ROMs:

http://xdaforums.com/showthread.php?t=2183023

http://xdaforums.com/showthread.php?t=2334294

http://xdaforums.com/showthread.php?t=2189373

http://xdaforums.com/showthread.php?t=2694142
[One (M7) Q&A, Help & Troubleshooting] nassie:
help me choose bro

hey bro recommend me a rom that will work on my device please i dont know which to choose
[One (M7) Q&A, Help & Troubleshooting] nkk71:
if you want close to stock use ARHD http://xdaforums.com/showthread.php?t=2183023
[One (M7) Q&A, Help & Troubleshooting] nassie:
thanks bro

thanks bro downloading now. i really appreciate your help bro and sorry if i annoy you thanks again

I just came back to say am up and running my phone is working perfectly and its all thanks to you :)
[One (M7) Q&A, Help & Troubleshooting] PEchiOnlajn:
pls help

i have the very same problem, i can only get to bootloader, no recovery no nothing, fastboot can see the device, adb can not ...

when i try

fastboot flash recovery <name-of-recovery>.img

FAILED: remote signature verify fail

is there any solution to this ? .... when i try to flash anything ... new recovery, new rom .. it allways fails the signature verify .... basically i cant do anything ... is there way to fix it ? Basically i need to unlock the phone again, im RELOCKED, while relocked .. i cant do nothing, cant flash rom cant flash recovery ... so basically i need to unlock it again .. i guess... but rly dont know how
[One (M7) Q&A, Help & Troubleshooting] Little K:
Requesting

Can you give me the link please coz the above link is broken.
[One (M7) Q&A, Help & Troubleshooting] nkk71:
it's here https://www.androidfilehost.com/?fid=23329332407589581

but you actually don't need it, check the FAQ Sticky in particular my post on page 3 under Point D

TWRP can fully format your phone, no need to do it manually, once you select "Format Data" (and type "yes") it does the full/real format
[One (M7) Q&A, Help & Troubleshooting] goitalone:
Anyone know what partition to format to get rid of the HTC logo bootloop where after install of RUU or ROM the logo pops up and stays there and/or bootloops and also shows no baseband problem?
[One (M7) Q&A, Help & Troubleshooting] calypso888:
Hey were you able to fix your problem? I had the she thing happen to me when I tried updating my m7 after unroofing it. I can get into hboot normally but if I try to turn the phone on it sticks at HTC logo...
[One (M7) Q&A, Help & Troubleshooting] rakeshrinawa:
unbrick htc one m7 wls(sprint),No os,No backup

hello sir,

i have the same problem as mentioned in link below,

my details of fastboot getvar all are as below:

version: 0.5

version-bootloader: 1.44.0000

version-baseband: 1.00.20.0315

version-cpld: None

version-microp: None

version-main: 1.29.651.10

version-misc: PVT SHIP S-ON

serialno: FA357S916963

imei: 990001467239752

meid: 99000146723975

product: m7_wls

platform: HBOOT-8064

modelid: PN0720000

cidnum: SPCS_001

battery-status: good

battery-voltage: 4262mV

partition-layout: Generic

security: on

build-mode: SHIP

boot-mode: FASTBOOT

you are my last hope,please help me i just want my device do my normal things again and Thanks a lot for your time.
[One (M7) Q&A, Help & Troubleshooting] alray:
Remove your IMEI MEID and SERIALNO. Keep these numbers private.

Please describe your problem, its a really old thead and doesn't have time to read everything in this thread again. nvm, just saw you other post, will help you in the other thread where you described your problem.
[One (M7) Q&A, Help & Troubleshooting] digitaliism:
This might be the only related reply to this thread for quite a while.

I have been using the tips here to try to recover my /data partition. Every option I have used is exhausted. I am not able to mount or even unmount /data. All I receive each time is syntax error: unexpected "("

I am making sure that each partition is unmounted in recovery before proceeding.

Is my /data partition completely useless? I've tried mike1986's unbrick guide
[One (M7) Q&A, Help & Troubleshooting] Mr.JoKeR1103:
HTC One M7 Soft Bricked...

When i press recovery it shows the white screen with HTC logo and reboot after without any result and still in reboot-loop.

I've unlocked the bootloader and trying with TWRP recovery. It shows "Recovery" on the top of the white screen with HTC logo, and reboot after +/- 10 seconds, and return to the reboot-loop scene.

Any Help?