[Nexus 5 Q&A, Help & Troubleshooting] workonyou:
Hi everyone,

So I got a nexus 5 from a friend that he said was broken. He told me that he was doing and update and was taking too long so he rebooted his phone. Now the phone is stuck in a boot loop. Everything is stock on the phone and he said he never rooted it. I followed the steps on this thread(method 2 manually flashing each img) http://xdaforums.com/google-nexus-5/general/tutorial-how-to-flash-factory-image-t2513701 Here is the output from the CMD window:

C:\Users\brad\Desktop\hammerhead-lrx22c-factory-0f9eda1b\hammerhead-lrx22c>fastb

oot flash bootloader bootloader.img

target reported max download size of 1073741824 bytes

sending 'bootloader' (2579 KB)...

OKAY [ 0.298s]

writing 'bootloader'...

OKAY [ 0.515s]

finished. total time: 0.813s

C:\Users\brad\Desktop\hammerhead-lrx22c-factory-0f9eda1b\hammerhead-lrx22c>fastb

oot reboot bootloader

usage: fastboot [ <option> ] <command>

commands:

update <filename> reflash device from update.zip

flashall flash boot + recovery + system

flash <partition> [ <filename> ] write a file to a flash partition

erase <partition> erase a flash partition

format <partition> format a flash partition

getvar <variable> display a bootloader variable

boot <kernel> [ <ramdisk> ] download and boot kernel

flash:raw boot <kernel> [ <ramdisk> ] create bootimage and flash it

devices list all connected devices

continue continue with autoboot

reboot reboot device normally

reboot-bootloader reboot device into bootloader

help show this help message

options:

-w erase userdata and cache (and format

if supported by partition type)

-u do not first erase partition before

formatting

-s <specific device> specify device serial number

or path to device port

-l with "devices", lists device paths

-p <product> specify product name

-c <cmdline> override kernel commandline

-i <vendor id> specify a custom USB vendor id

-b <base_addr> specify a custom kernel base address.

default: 0x10000000

-n <page size> specify the nand page size. default:

2048

-S <size>[K|M|G] automatically sparse files greater th

an

size. 0 to disable

C:\Users\brad\Desktop\hammerhead-lrx22c-factory-0f9eda1b\hammerhead-lrx22c>fastb

oot reboot-bootloader

rebooting into bootloader...

OKAY [ 0.016s]

finished. total time: 0.016s

C:\Users\brad\Desktop\hammerhead-lrx22c-factory-0f9eda1b\hammerhead-lrx22c>fastb

oot flash radio radio.img

target reported max download size of 1073741824 bytes

sending 'radio' (45521 KB)...

OKAY [ 1.622s]

writing 'radio'...

OKAY [ 3.120s]

finished. total time: 4.743s

C:\Users\brad\Desktop\hammerhead-lrx22c-factory-0f9eda1b\hammerhead-lrx22c>fastb

oot reboot-bootloader

rebooting into bootloader...

OKAY [ 0.000s]

finished. total time: 0.016s

C:\Users\brad\Desktop\hammerhead-lrx22c-factory-0f9eda1b\hammerhead-lrx22c>fastb

oot flash system system.img

target reported max download size of 1073741824 bytes

erasing 'system'...

OKAY [ 1.065s]

sending 'system' (981472 KB)...

OKAY [ 31.005s]

writing 'system'...

OKAY [ 66.272s]

finished. total time: 98.341s

C:\Users\brad\Desktop\hammerhead-lrx22c-factory-0f9eda1b\hammerhead-lrx22c>fastb

oot flash userdata userdata.img

target reported max download size of 1073741824 bytes

erasing 'userdata'...

OKAY [ 13.676s]

sending 'userdata' (137318 KB)...

OKAY [ 4.514s]

writing 'userdata'...

OKAY [ 9.179s]

finished. total time: 27.369s

C:\Users\brad\Desktop\hammerhead-lrx22c-factory-0f9eda1b\hammerhead-lrx22c>fastb

oot flash boot boot.img

target reported max download size of 1073741824 bytes

sending 'boot' (8852 KB)...

OKAY [ 0.485s]

writing 'boot'...

OKAY [ 0.749s]

finished. total time: 1.233s

C:\Users\brad\Desktop\hammerhead-lrx22c-factory-0f9eda1b\hammerhead-lrx22c>fastb

oot flash recovery recovery.img

target reported max download size of 1073741824 bytes

sending 'recovery' (9552 KB)...

OKAY [ 0.517s]

writing 'recovery'...

OKAY [ 0.782s]

finished. total time: 1.299s

C:\Users\brad\Desktop\hammerhead-lrx22c-factory-0f9eda1b\hammerhead-lrx22c>fastb

oot erase cache

******** Did you mean to fastboot format this partition?

erasing 'cache'...

OKAY [ 0.452s]

finished. total time: 0.452s

C:\Users\brad\Desktop\hammerhead-lrx22c-factory-0f9eda1b\hammerhead-lrx22c>

Now when I select recovery after I flashed everything the phone turns off and doesn't come back on until I push the power button. Is that normal?(Not sure if this matters as well but sometimes when I push the power button + volume up and down the phone won't turn on. I have to just push the power button and let it boot loop, turn if off with the power button and try getting into fast boot again.) So I pushed the power button and load back into fastboot go into recovery and get the droid with the red exclamation mark. Push power + volume up and get into the options.

At the bottom of the screen it says:

E:failed to mount /cache (Invalid argument)

E:Can't mount /cache/recovery / log

E:Can't open /cache/recovery / log

E:failed to mount / cache (Invalid argument)

E:Can't mount /cache/recovery/last_log

E:Can't open /cache/recovery/last_log

E:failed to mount /cache (Invalid argument)

E:Can't mount /cache/recovery/last_install

E:Can't open /cache/recovery/last_install

E:failed to mount /cache (Invalid argument)​

When I try wipe data/factory reset I get:

--Wiping data...

Formatting /data...

E:failed to mount /cache (Invalid argument)

Formatting /cache...

E:failed to mount /cache (Invalid argument)

E:Can't mount /cache/recovery / log

E:Can't open /cache/recovery / log

E:failed to mount / cache (Invalid argument)

E:Can't mount /cache/recovery/last_log

E:Can't open /cache/recovery/last_log

E:failed to mount /cache (Invalid argument)

E:Can't mount /cache/recovery/last_install

E:Can't open /cache/recovery/last_install

Data wipe complete.

E:failed to mount /cache (Invalid argument)

E:Can't mount /cache/recovery / log

E:Can't open /cache/recovery / log

E:failed to mount / cache (Invalid argument)

E:Can't mount /cache/recovery/last_log

E:Can't open /cache/recovery/last_log

E:failed to mount /cache (Invalid argument)

E:Can't mount /cache/recovery/last_install

E:Can't open /cache/recovery/last_install

E:failed to mount /cache (Invalid argument)

So I tried to wipe cache partition command and basically get the same thing as above the only string that is different is:

E:Failed closing /dev/block/platform/msm_sdcc.1/by-name/mis(I/O error)

Anyone know where I can go from here?