• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root Can't recovery, error formatting /system

koral

Newbie
Dec 7, 2011
10
1
Hello guyz..

Didn't want to trouble you but i just seem to be stuck with my HTC Desire S. Got it s-off and rooted a while ago, everything was fine, did a couple of backups every now and then after deleting some stock apps, overall it worked perfect. Untill today, it just froze and I had to pull the battery, after that it wouldn't go any further than boot animation. So I went to the Revolutionary recovery and tried to restore the latest backup, got an error about wrong md5 sum. Mounted the sdcard and rebuilt the md5 sum manually. Now the error is Error formatting /system, no matter what I do I get some sort of error.

I just don't have a clue where to go from here, should I look for stock rom, or somehow use my recovery image? I'm fairly new to android. So any help would be greatly appreciated!

Every recovery launch prints:

Revolutionary CWM v4.0.1.4
E:Can't mount /cahce/recovery/command
E:Can't mount /cahce/recovery log
E:Can't open /cache/recovery/log
E:Can't mount /cahce/recovery/last_log
E:Can't open /cache/recovery/last_log
 
Hello guyz..

Didn't want to trouble you but i just seem to be stuck with my HTC Desire S. Got it s-off and rooted a while ago, everything was fine, did a couple of backups every now and then after deleting some stock apps, overall it worked perfect. Untill today, it just froze and I had to pull the battery, after that it wouldn't go any further than boot animation. So I went to the Revolutionary recovery and tried to restore the latest backup, got an error about wrong md5 sum. Mounted the sdcard and rebuilt the md5 sum manually. Now the error is Error formatting /system, no matter what I do I get some sort of error.

I just don't have a clue where to go from here, should I look for stock rom, or somehow use my recovery image? I'm fairly new to android. So any help would be greatly appreciated!

Every recovery launch prints:

Revolutionary CWM v4.0.1.4
E:Can't mount /cahce/recovery/command
E:Can't mount /cahce/recovery log
E:Can't open /cache/recovery/log
E:Can't mount /cahce/recovery/last_log
E:Can't open /cache/recovery/last_log

It isn't good, I'll tell you that much.

Look into emmc problems with the desire s.

Possible fix (if its just corrupted cache partitions) is to flash, say 4ext recovery, then format the cahce partition to ext3/4, I also read that you can then clear all partitions also dalvIk cache then re install your ROM and hope your emmc isn't fried
 
Upvote 0
Okay, so according to the output of
Code:
adb shell
dmesg | grep mmc0
which is
Code:
<3>[    7.737213] mmc0: No card detect facilities available
<6>[    7.737823] mmc0: Qualcomm MSM SDCC at 0x00000000a0500000 irq 98,0 dma 7
<6>[    7.737976] mmc0: Platform slot type: MMC
<6>[    7.738189] mmc0: 4 bit data mode disabled
<6>[    7.738311] mmc0: 8 bit data mode enabled
<6>[    7.738555] mmc0: MMC clock 144000 -> 50000000 Hz, PCLK 96000000 Hz
<6>[    7.738677] mmc0: Slot eject status = 0
<6>[    7.738800] mmc0: Power save feature enable = 1
<6>[    7.739044] mmc0: DM non-cached buffer at ffa0f000, dma_addr 0x0ba03000
<6>[    7.739166] mmc0: DM cmd busaddr 0x0ba03000, cmdptr busaddr 0x0ba03300
<6>[    7.892547] mmc0: new high speed MMC card at address 0001
<6>[    7.894256] mmcblk0: mmc0:0001 M4G2DE 2.10 GiB
the eMMC is okay and still breathing.

I'll try and push 4ext recovery image and see if formatting to ext4 will make any differece...
 
Upvote 0
Not so far no, i just can't make 4ext replace the revolutionary recovery.

Installing from zip:
Code:
installing...
assert failres: write_raw_image("/tmp/recovery.img", "recovery")
E:Error in /sdcard/PG88IMG.zip
(Status 7)
Installation aborted

Using adb to do the same:
Code:
/sbin/sh: su not found

After manual install of superuser zip it says everything went fine and install was completed, but it writes binaries to /system, which is of course, inaccessable.

And I can't make fastboot work, it just says <waiting for devices>, although adb devices can see the phone.

Thought of returning to stock Hboot, but the current hboot version is 6.98.2002 so i can't downgrade. Might try to install the 2.0.2002 hboot, the latest htc upgrade version 2.3.5 i think it was, but not sure if i should.

I'm just running out of ideas.
 
Upvote 0
Not so far no, i just can't make 4ext replace the revolutionary recovery.

Installing from zip:
Code:
installing...
assert failres: write_raw_image("/tmp/recovery.img", "recovery")
E:Error in /sdcard/PG88IMG.zip
(Status 7)
Installation aborted

Using adb to do the same:
Code:
/sbin/sh: su not found

After manual install of superuser zip it says everything went fine and install was completed, but it writes binaries to /system, which is of course, inaccessable.

And I can't make fastboot work, it just says <waiting for devices>, although adb devices can see the phone.

Thought of returning to stock Hboot, but the current hboot version is 6.98.2002 so i can't downgrade. Might try to install the 2.0.2002 hboot, the latest htc upgrade version 2.3.5 i think it was, but not sure if i should.

I'm just running out of ideas.

You haven't put your phone into fastboot yet.

Boot into hboot and press the power button once after it scans your memory card.

Don't try change your hboot. you'll lose s off. and it won't help your problem.
 
Upvote 0
Well it goest to fastboot, and it says fastboot usb, but from the terminal i still get <waiting for devices>.

Okay, now, after tons of dmesg text, reading and googling various output, i finally bumped into:
Code:
mmc0: reinit card 
mmc0: Starting deferred resume 
mmc0: Deferred resume failed
Whenever i try to wipe to factory from revol recovery i get that message first and then tons of:
Code:
<3>[  248.048217] end_request: I/O error, dev mmcblk0, sector 2919244
<3>[  248.048309] end_request: I/O error, dev mmcblk0, sector 2919245
<3>[  248.048492] end_request: I/O error, dev mmcblk0, sector 2919246
<3>[  248.048614] end_request: I/O error, dev mmcblk0, sector 2919247
As Ghul stated on XDA
The only thing that we know fur sure (or at least with a very very high probability) is that only emmc chips with the name M4G2DE are effected.
And mine is exactly that one. So I guess this is it then, gonna try and return it on warranty, do you think they won't be too happyt about me getting it s-off and stuff?
 
  • Like
Reactions: FoX777
Upvote 0
Well it goest to fastboot, and it says fastboot usb, but from the terminal i still get <waiting for devices>.

Okay, now, after tons of dmesg text, reading and googling various output, i finally bumped into:
Code:
mmc0: reinit card 
mmc0: Starting deferred resume 
mmc0: Deferred resume failed
Whenever i try to wipe to factory from revol recovery i get that message first and then tons of:
Code:
<3>[  248.048217] end_request: I/O error, dev mmcblk0, sector 2919244
<3>[  248.048309] end_request: I/O error, dev mmcblk0, sector 2919245
<3>[  248.048492] end_request: I/O error, dev mmcblk0, sector 2919246
<3>[  248.048614] end_request: I/O error, dev mmcblk0, sector 2919247
As Ghul stated on XDA

And mine is exactly that one. So I guess this is it then, gonna try and return it on warranty, do you think they won't be too happyt about me getting it s-off and stuff?

If you don't return it to stock say bye bye warranty. let's hope you still can return to stock.

check the how to root your desire s thread section 2.
 
Upvote 0
I've encountered this error. It was due to corrupt partition. Here's how I solved the problem.

1. Backup your SD card onto your PC
2. Using Gparted, delete your EXT partition
3. Recreated the EXT partition and format it to EXT3 or 4 or whatever you need
Now try mounting the EXT partition in recovery. If it works, then your partition is ok and you can try restarting.

If it does not mount, then you may have to format your entired SD card and redo the partition.

1. Format the SD card using Windows
2. Using Gparted partition your SD card into 2 primary partition the first FAT32 and second EXT (whatever you need)
3. Mount EXT to test whether it works. If you get no error message that's good.
4. Copy back your SD card contents
5. Try recovering your backup
 
Upvote 0
I've encountered this error. It was due to corrupt partition ...

Yeah some people say that solves their problem. Although if you take the memory card out and try to start the phone, you get the same message. In my case it hasn't got anything to do with the mc. I got my phone returned to me today from HTC, everything replaced and new (UK/BT)

And the chip is exactly the same as i had before
Code:
$ cat /sys/devices/platform/msm_sdcc.2/mmc_host/mmc0/mmc0:0001/name
M4G2DE
 
Upvote 0
I had exactly the same problems as you did a few weeks ago. Corrupted partition, couldn't instll 4ext. Couldn't dowgrade the boot manager, couldn't do anything etc etc.

I've come to the conclusion the 'desire S' is an unstable phone once s-off'd and rooted. Probably why on the HTCDEV site they haven't listed it as a phone which can have the bootloader unlocked when all the other models are listed.

Did the same as you, sent to HTC, just waiting now for it to come back. I don't think they are even charging me as I would have had an email by now.
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones