bootloading to mega

i am trying to burn bootloader on uno and mega 2560 using another uno

my connection are
5v <--> 5v
gnd <--> gnd
sck <--> sck
miso <--> miso
mosi <--> mosi
pin-10 <--> reset

i am able burn bootloader on uno

but while burning bootloader on mega i got the following error:

avrdude: verifying ...
avrdude: verification error, first mismatch at byte 0x1e000
         0xff != 0x0d
avrdude: verification error; content mismatch
avrdude: Send: Q [51]   [20] 
avrdude: Recv: . [14] 
avrdude: Recv: . [10] 

avrdude done.  Thank you.

How are you preventing auto-reset on the UNO? I usually use a 1 to 1-0 microfarad capacitor between Reset (+) and Gnd (-).

i have tried using a 10uf capacitor but it didn't worked

The Arduino MEGA needs an ISP device capable of using the STK500 V2 protocol. I don't think the ArduinoISP sketch supports that protocol.

You should probably buy an inexpensive ISP device like the USBasp, available through eBay for under $4.