[Nexus 5 General] jineshpatel30:
I see lots of confusion going on in many Roms & other threads for rooting 6.0 specially due to that System-less SuperSU.

so i'm sharing what i have done to root 6.0 & update SuperSU through 2.61 to 2.64.

now before we begin be clear on that System-less SuperSU patches only kernel & ramdisk for root.

Still making Full Backup/nandroid is always a good thing before trying something new, it'll save you if anything goes wrong.

Rooting Marshmallow 6.0+ 1st time

1) Be on Marshmallow Rom ( stock / custom) with unlocked boot loader..... i have tested this stock & Cataclysm.

Click below to see how to Unlock Bootloader.

Beware : it'll wipe your device entierly to factory reset state ( all things will be wiped out : contacts , apps , music, videos & your personal files etc. so backup every thing.

reboot into boot loader & use bellow command for unlocking boot loader

fastboot oem unlock

2) Download latest version of SuperSU ( currently 2.64) from Here & Place it in Phone Storage

2B) (optional) if you want to use Custom kernel (like ElementalX) then download it's falshable zip & pace it in Phone Storage as well

3) Download TWRP 2.8.7.1 from Here. & flash it with fastboot command.

fastboot flash recovery twrp-2.8.7.1-hammerhead.img

4) after flashing TWRP inter into recovery without Rebooting Phone . ( why ? open hidden content ;) ) {PS: smart people make nandroid backup at this step}

if you reboot phone just after flashing twrp & then try to enter in to recovery mode, you will see stock recovery instead of TWRP. bcz TWRP was flashed only as temporary recovery without root.

4B) (optional) if you want to use custom kernel then flash it now ! ( yes before rooting bcz it needs to be patched) ( not needed.... you can flash custom kernel after completing entire root process bcz it turns out that SuperSU just patch ramdisk, not kernel so custom kernel can be flashed after rooting without any problem. btw i still flash custom kernel before rooting and never had problem so it's your call when to flash custom kernel )

5) Now Flash SuperSU.zip in TWRP which you have from link in 2nd point.

6) Click Reboot System in TWRP. It will tell you your device isn't rooted & ask your permission for rooting it. DO NOT ( I repeat Do not) swipe to grant it, always Select NO ( it says so bcz twrp still don't detect system-less root )

7) Remember 6th point after Flashing any other zip in future as well.

PS: If you change your kernel after rooting you need to flash SuperSU.zip again after it

Updating SuperSU for already rooted Marshmallow 6.0+

all steps are important for properly updating SuperSu so don't skip any of them. Otherwise already patched Kernel or ramdisk will give you an error while flashing updated SuperSu!

1) Open SuperSU app. Click "Full Unroot" & wait until auto reboot completes. ( this step will remove root & restore your original kernel that was auto backup while rooting 1st time.)

2) Flash Stock boot.img from factory image via fastboot command. ( important step for those who used custom kernel while/after rooting )

fastboot flash boot boot.img

(you can get boot.img by extracting image-hammerhead-xxxxx, from factory image.)

3)Reboot Phone.

4) Now follow

Rooting Marshmallow 6.0+ 1st time

method from step 2. ( you can skip step 3 if you already have TWRP )

.........................................................................................................................

Cataclysm specific info